Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Docs: Style rules for glyphicons at narrow widths
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrottimark committed Apr 18, 2016
1 parent fc10288 commit 01881d3
Showing 1 changed file with 33 additions and 24 deletions.
57 changes: 33 additions & 24 deletions styles/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,38 +66,47 @@ p.correct + div > pre {
background-color: #f6fff6; /* light green hsl(120,100%,98%) */
}

@media (min-width: 768px) {
p.fixable:before,
p.incorrect:before,
p.correct:before {
font-family: "Glyphicons Halflings";
color: #4d4d4d; /* gray hsl(0,0%,30%) */
margin-right: 0.5em;
}

p.incorrect + div + div + div > pre:before, /* vars-on-top */
p.incorrect + div + div > pre:before, /* no-continue */
p.incorrect + div > pre:before {
content: "\e126"; /* thumbs-down */
font-family: "Glyphicons Halflings";
color: #4d4d4d; /* gray hsl(0,0%,30%) */
position: absolute;
left: -20px;
}
p.fixable:before {
content: "\e136"; /* wrench */
}

p.correct + div + div + div > pre:before, /* vars-on-top */
p.correct + div + div > pre:before, /* no-continue */
p.correct+div>pre:before {
content: "\e125"; /* thumbs-up */
font-family: "Glyphicons Halflings";
color: #4d4d4d; /* gray hsl(0,0%,30%) */
position: absolute;
left: -20px;
}
p.incorrect:before {
content: "\e126"; /* thumbs-down */
}

p.fixable:before {
content: "\e136"; /* wrench */
font-family: "Glyphicons Halflings";
color: #4d4d4d; /* gray hsl(0,0%,30%) */
p.correct:before {
content: "\e125"; /* thumbs-up */
}

@media (min-width: 768px) {

p.fixable:before,
p.incorrect:before,
p.correct:before {
position: absolute;
left: -20px;
}

p.fixable,
.highlighter-rouge {
p.incorrect,
p.correct {
position:relative;
}

}

@media (max-width: 767px) {

code {
white-space: normal;
}

}

0 comments on commit 01881d3

Please sign in to comment.