Changeset 3499:4f82fdafce03 for admin/style
- Timestamp:
- 01/04/17 10:20:59 (9 years ago)
- Branch:
- default
- Location:
- admin/style
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/style/default.css
r3468 r3499 245 245 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } 246 246 @media screen and (max-width: 26.5em) { 247 body {247 body.responsive-font { 248 248 font-size: 1.2rem; 249 249 line-height: 1.3; } } 250 250 @media screen and (min-width: 120em) { 251 body {251 body.responsive-font { 252 252 font-size: 1.6rem; 253 253 line-height: 1.5; } } 254 254 @media screen and (min-width: 26.5em) and (max-width: 120em) { 255 body {255 body.responsive-font { 256 256 font-size: calc( 1.2rem + 0.4 * (100vw - 42.4rem) / (192 - 42.4)); 257 257 line-height: calc( 1.3em + (1.5 - 1.3) * (100vw - 42.4rem) / (192 - 42.4)); } } -
admin/style/scss/partials/_common.scss
r3439 r3499 2 2 3 3 :root { 4 5 4 // May be superseed by user pref (typically from 50% to 75%, default 62.5%) 5 --html-font-size: #{$html-font-size}; 6 6 } 7 7 8 8 // base // 9 9 html { 10 11 10 font-size: $html-font-size; // html font-size for IE and Edge 11 font-size: var(--html-font-size); // html font-size for modern browsers 12 12 } 13 13 14 14 body { 15 font-size: $body-font-size; 16 line-height: 1.5; 17 @media screen and(max-width: $small-screen) { 18 font-size: $body-font-size-small; 19 line-height: 1.3; 20 } 21 @media screen and(min-width: $large-screen) { 22 font-size: $body-font-size-large; 23 line-height: 1.5; 24 } 25 @media screen and(min-width: $small-screen) and (max-width: $large-screen) { 26 font-size: calc( #{$body-font-size-small} + #{strip-unit($body-font-size-large - $body-font-size-small)} * (100vw - #{strip-unit(relative-to-screen($small-screen,$html-font-size))}rem) / (#{strip-unit(relative-to-screen($large-screen,$html-font-size))} - #{strip-unit(relative-to-screen($small-screen,$html-font-size))})); 27 line-height: calc( 1.3em + (1.5 - 1.3) * (100vw - #{strip-unit(relative-to-screen($small-screen,$html-font-size))}rem) / (#{strip-unit(relative-to-screen($large-screen,$html-font-size))} - #{strip-unit(relative-to-screen($small-screen,$html-font-size))})); 28 } 29 font-family: $sans-serif; 15 font-size: $body-font-size; 16 line-height: 1.5; 17 font-family: $sans-serif; 18 &.responsive-font { 19 @media screen and(max-width: $small-screen) { 20 font-size: $body-font-size-small; 21 line-height: 1.3; 22 } 23 @media screen and(min-width: $large-screen) { 24 font-size: $body-font-size-large; 25 line-height: 1.5; 26 } 27 @media screen and(min-width: $small-screen) and (max-width: $large-screen) { 28 font-size: calc( #{$body-font-size-small} + #{strip-unit($body-font-size-large - $body-font-size-small)} * (100vw - #{strip-unit(relative-to-screen($small-screen,$html-font-size))}rem) / (#{strip-unit(relative-to-screen($large-screen,$html-font-size))} - #{strip-unit(relative-to-screen($small-screen,$html-font-size))})); 29 line-height: calc( 1.3em + (1.5 - 1.3) * (100vw - #{strip-unit(relative-to-screen($small-screen,$html-font-size))}rem) / (#{strip-unit(relative-to-screen($large-screen,$html-font-size))} - #{strip-unit(relative-to-screen($small-screen,$html-font-size))})); 30 } 31 } 30 32 } 31 33 32 34 #wrapper { 33 34 35 35 @media screen and (max-width: $small-screen) { 36 font-size: 1.4em; 37 } 36 38 } 37 39 … … 44 46 h5, 45 47 h6 { 46 47 48 margin-top: 0; 49 margin-bottom: 1em; 48 50 } 49 51 50 52 h2 { 51 52 53 54 53 font-size: 1.5em; 54 font-weight: normal; 55 line-height: 1.25; 56 padding: 0 0 1.5em; 55 57 } 56 58 57 59 h3, 58 60 .as_h3 { 59 60 61 62 61 font-size: 1.34em; 62 font-weight: normal; 63 line-height: 1.5; 64 margin-top: 1em; 63 65 } 64 66 65 67 h4, 66 68 .as_h4 { 67 68 69 font-size: 1.16em; 70 line-height: 1.5; 69 71 } 70 72 71 73 h5 { 72 73 74 74 font-size: 1em; 75 line-height: 1.5; 76 font-weight: bold; 75 77 } 76 78 77 79 h6 { 78 79 80 font-size: 1em; 81 line-height: 1.5; 80 82 }
Note: See TracChangeset
for help on using the changeset viewer.