K
K
koi com2015-02-07 21:49:06
css
koi com, 2015-02-07 21:49:06

How to include css style from git hub?

Here is the direct css link. But when connected, they do not apply. I open the source code of the page, follow the link - everything is fine.

<link rel="stylesheet" type="text/css" href="http://raw.githubusercontent.com/Koi7/github-linker/master/fork-me.css">

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
koi com, 2015-02-07
@koi_jp

Already found a solution. You need to use a service from git - RawGit.
Service: raw git
Similar question on stack: question

A
Alexey Kos, 2015-02-07
@djalexsey

It's not easier to create a style file and add the contents of this style. The code is small.

.fork-me-link {
  display: block;
  position: absolute;
  top: 0;
  right: -95px;
  outline: none;
  -webkit-transition-property: right;
  -webkit-transition-duration: 1s;
  -moz-transition-property: right;
  -moz-transition-duration: 1s;
  -ms-transition-property: right;
  -ms-transition-duration: 1s;
  -o-transition-property: right;
  -o-transition-duration: 1s;
}
.fork-me-link:hover{
  right: 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question