gitlab-org--gitlab-foss/app/assets/stylesheets/generic/typography.scss

115 lines
1.7 KiB
SCSS
Raw Normal View History

/**
* Headers
*
*/
2015-03-07 04:02:34 +00:00
.page-title {
2015-02-16 18:14:07 +00:00
margin-top: 0px;
2015-03-07 04:02:34 +00:00
line-height: 1.5;
font-weight: normal;
margin-bottom: 5px;
}
h1, h2, h3, h4, h5, h6 {
color: $gl-header-color;
font-weight: 500;
}
/** CODE **/
pre {
font-family: $monospace_font;
&.dark {
background: #333;
color: $background-color;
}
&.plain-readme {
background: none;
border: none;
padding: 0;
margin: 0;
font-size: 14px;
}
}
2012-11-23 04:24:09 +00:00
.monospace {
font-family: $monospace_font;
2012-11-23 04:24:09 +00:00
}
2013-01-10 16:09:12 +00:00
code {
&.key-fingerprint {
background: $body-bg;
color: $text-color;
}
}
a > code {
color: $link-color;
}
2013-01-10 16:09:12 +00:00
/**
* Wiki typography
*
*/
.wiki {
2013-03-04 19:34:26 +00:00
@include md-typography;
word-wrap: break-word;
/* Link to current header. */
h1, h2, h3, h4, h5, h6 {
position: relative;
a.anchor {
2015-05-06 22:38:43 +00: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;
}
&:hover > a.anchor {
$size: 16px;
position: absolute;
right: 100%;
top: 50%;
margin-top: -$size/2;
margin-right: 0px;
padding-right: 20px;
display: inline-block;
width: $size;
height: $size;
background-image: image-url("icon-link.png");
background-size: contain;
background-repeat: no-repeat;
}
}
ul {
padding: 0;
margin: 0 0 9px 25px !important;
}
2013-01-10 16:09:12 +00:00
}
2013-03-04 20:00:51 +00:00
.md-area {
@include md-typography;
}
2013-03-04 20:00:51 +00:00
.md {
@include md-typography;
}
/**
* Textareas intended for GFM
*
*/
textarea.js-gfm-input {
font-family: $monospace_font;
}
2014-11-05 20:45:18 +00:00
.md-preview {
font-family: $monospace_font;
}
2014-11-05 20:45:18 +00:00
.strikethrough {
text-decoration: line-through;
2015-02-16 18:14:07 +00:00
}