Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I add "fork me on gitlab" ribbon css? #558

Closed
larrycai opened this issue Feb 23, 2019 · 3 comments
Closed

How can I add "fork me on gitlab" ribbon css? #558

larrycai opened this issue Feb 23, 2019 · 3 comments
Labels
doc-wiki Items that might need a documentation/wiki update

Comments

@larrycai
Copy link

I want to add "Fork me on Gitlab" ribbon in the remark.js https://alvarolopezborr.gitlab.io/gitlab-fork-ribbon-css/

How can it be done?

Rgs, Larry

@noahp
Copy link

noahp commented Jun 10, 2019

For me, adding the .css like to my index.html like this (after copying into a local directory):

<!DOCTYPE html>
<html>
<head>
  <title>Title</title>
  <meta charset="utf-8">
  <style>
    /* file saved to local directory */
    @import url("gh-fork-ribbon.css");
    /* alternatively fetch from cdnjs */
    @import url("https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css");
...

And inserting this element on a slide:

<a class="gitlab-fork-ribbon" href="http://url.to-your.repo" title="Fork me on GitHub">Fork me on GitHub</a>

Worked!

(I used the css file from https://simonwhitaker.github.io/github-fork-ribbon-css)

@peterj
Copy link
Collaborator

peterj commented Dec 17, 2019

It might be useful to add this to a wiki page. @abelards what do you think of creating a Misc category in the wiki where we can add things like these there?

@peterj peterj added the doc-wiki Items that might need a documentation/wiki update label Dec 17, 2019
@abelards
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-wiki Items that might need a documentation/wiki update
Projects
None yet
Development

No branches or pull requests

4 participants