Prevent top margin for first element in markdown/wiki/readme typography
This commit is contained in:
parent
2c6577a15e
commit
bd7e569f72
2 changed files with 12 additions and 4 deletions
|
@ -76,6 +76,10 @@
|
|||
}
|
||||
|
||||
@mixin md-typography {
|
||||
*:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
code { padding: 0 4px; }
|
||||
h1 { margin-top: 30px;}
|
||||
h2 { margin-top: 25px;}
|
||||
|
|
|
@ -94,12 +94,16 @@ a:focus {
|
|||
*
|
||||
*/
|
||||
.wiki {
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
@include md-typography;
|
||||
|
||||
.white .highlight pre { background: #f5f5f5; }
|
||||
ul { margin: 0 0 9px 25px !important; }
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
.white .highlight pre {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
ul {
|
||||
margin: 0 0 9px 25px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.md {
|
||||
|
|
Loading…
Reference in a new issue