2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-12 21:10:47 +08:00

Small and big should be limited via rem so it works large font mode

This commit is contained in:
Sam 2018-01-22 14:22:30 +11:00
parent 83c549bd31
commit ce815276d0
2 changed files with 13 additions and 11 deletions

View file

@ -48,10 +48,10 @@ body {

// setting a static limit on big and small prevents nesting abuse
big {
font-size: 32px;
font-size: $font-up-5;
}
small {
font-size: 12px;
font-size: $font-down-2;
}

blockquote {

View file

@ -47,38 +47,40 @@
.cooked, .d-editor-preview {
word-wrap: break-word;
line-height: $line-height-large;
h1, h2, h3, h4, h5, h6 {
margin: 30px 0 10px;
line-height: $line-height-medium;
h1, h2, h3, h4, h5, h6 {
margin: 30px 0 10px;
line-height: $line-height-medium;
}

h1 {
font-size: $font-up-4;
}

h2 {
font-size: $font-up-3;
}

h3 {
font-size: $font-up-2;
}

h4 {
font-size: $font-up-1;
}

h5 {
font-size: $font-0;
}

h6 {
font-size: $font-down-1;
}

a { word-wrap: break-word; }
ins { background-color: dark-light-choose($success-low, scale-color($success, $lightness: -60%)); }
del { background-color: dark-light-choose($danger-low, scale-color($danger, $lightness: -60%)); }
big { font-size: 2rem; }
small { font-size: 0.75rem; }
}

.cooked, .d-editor-preview {