2012-08-30 02:09:42 -04:00
|
|
|
/**
|
2012-08-29 14:23:43 -04:00
|
|
|
* Headers
|
2012-08-30 02:09:42 -04:00
|
|
|
*
|
2012-08-29 14:23:43 -04:00
|
|
|
*/
|
2015-09-24 12:36:15 -04:00
|
|
|
|
|
|
|
body {
|
|
|
|
text-rendering: optimizeLegibility
|
|
|
|
}
|
|
|
|
|
2015-03-06 23:02:34 -05:00
|
|
|
.page-title {
|
2015-02-16 13:14:07 -05:00
|
|
|
margin-top: 0px;
|
2015-09-24 12:36:15 -04:00
|
|
|
line-height: 1.3;
|
|
|
|
font-size: 1.25em;
|
|
|
|
font-weight: 600;
|
|
|
|
margin: 12px 7px 12px 7px;
|
2012-11-21 02:14:15 -05:00
|
|
|
}
|
|
|
|
|
2015-09-03 09:46:13 -04:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
color: $gl-header-color;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
/** CODE **/
|
|
|
|
pre {
|
2012-12-01 07:49:21 -05:00
|
|
|
font-family: $monospace_font;
|
2012-08-29 14:23:43 -04:00
|
|
|
|
|
|
|
&.dark {
|
|
|
|
background: #333;
|
2015-03-17 21:01:33 -04:00
|
|
|
color: $background-color;
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
2015-07-09 05:36:09 -04:00
|
|
|
|
|
|
|
&.plain-readme {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
|
|
|
|
2012-11-22 23:24:09 -05:00
|
|
|
.monospace {
|
2012-12-01 07:49:21 -05:00
|
|
|
font-family: $monospace_font;
|
2012-11-22 23:24:09 -05:00
|
|
|
}
|
2013-01-10 11:09:12 -05:00
|
|
|
|
2015-06-03 17:54:16 -04:00
|
|
|
code {
|
|
|
|
&.key-fingerprint {
|
|
|
|
background: $body-bg;
|
|
|
|
color: $text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-31 17:44:16 -04:00
|
|
|
a > code {
|
|
|
|
color: $link-color;
|
|
|
|
}
|
|
|
|
|
2013-01-10 11:09:12 -05:00
|
|
|
/**
|
|
|
|
* Wiki typography
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
.wiki {
|
2013-03-04 14:34:26 -05:00
|
|
|
@include md-typography;
|
|
|
|
|
2014-09-10 11:30:29 -04:00
|
|
|
word-wrap: break-word;
|
2015-09-24 12:36:15 -04:00
|
|
|
padding: 7px;
|
2014-09-10 11:30:29 -04:00
|
|
|
|
2014-02-04 02:48:33 -05:00
|
|
|
/* Link to current header. */
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
position: relative;
|
2015-04-22 16:42:24 -04:00
|
|
|
|
|
|
|
a.anchor {
|
2015-05-06 18:38:43 -04:00
|
|
|
// Setting `display: none` would prevent the anchor being scrolled to, so
|
|
|
|
// instead we set the height to 0 and it gets updated on hover.
|
|
|
|
height: 0;
|
2015-04-22 16:42:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover > a.anchor {
|
2014-02-04 02:48:33 -05:00
|
|
|
$size: 16px;
|
|
|
|
position: absolute;
|
|
|
|
right: 100%;
|
2015-01-14 20:22:36 -05:00
|
|
|
top: 50%;
|
|
|
|
margin-top: -$size/2;
|
2014-02-04 02:48:33 -05:00
|
|
|
margin-right: 0px;
|
|
|
|
padding-right: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
2014-03-06 04:05:00 -05:00
|
|
|
background-image: image-url("icon-link.png");
|
2014-02-04 02:48:33 -05:00
|
|
|
background-size: contain;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-24 12:36:15 -04:00
|
|
|
ul,ol {
|
2013-12-30 20:15:58 -05:00
|
|
|
padding: 0;
|
2015-09-24 12:36:15 -04:00
|
|
|
margin: 6px 0 6px 18px !important;
|
|
|
|
}
|
|
|
|
ol {
|
|
|
|
color: #5c5d5e;
|
2013-07-29 14:24:38 -04:00
|
|
|
}
|
2013-01-10 11:09:12 -05:00
|
|
|
}
|
2013-03-04 15:00:51 -05:00
|
|
|
|
2015-09-18 14:33:16 -04:00
|
|
|
.md-area {
|
|
|
|
@include md-typography;
|
|
|
|
}
|
|
|
|
|
2013-03-04 15:00:51 -05:00
|
|
|
.md {
|
|
|
|
@include md-typography;
|
|
|
|
}
|
2014-03-21 14:14:11 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Textareas intended for GFM
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
textarea.js-gfm-input {
|
|
|
|
font-family: $monospace_font;
|
|
|
|
}
|
2014-11-05 15:45:18 -05:00
|
|
|
|
2015-09-21 10:30:19 -04:00
|
|
|
.md-preview {
|
|
|
|
font-family: $monospace_font;
|
|
|
|
}
|
|
|
|
|
2014-11-05 15:45:18 -05:00
|
|
|
.strikethrough {
|
|
|
|
text-decoration: line-through;
|
2015-09-24 12:36:15 -04:00
|
|
|
}
|