liquid_feedback_frontend
diff style/mdl/typography/_typography.scss @ 1309:32cc544d5a5b
Cumulative patch for upcoming frontend version 4
| author | bsw/jbe |
|---|---|
| date | Sun Jul 15 14:07:29 2018 +0200 (2018-07-15) |
| parents | |
| children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/style/mdl/typography/_typography.scss Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -0,0 +1,301 @@ 1.4 +/** 1.5 + * Copyright 2015 Google Inc. All Rights Reserved. 1.6 + * 1.7 + * Licensed under the Apache License, Version 2.0 (the "License"); 1.8 + * you may not use this file except in compliance with the License. 1.9 + * You may obtain a copy of the License at 1.10 + * 1.11 + * http://www.apache.org/licenses/LICENSE-2.0 1.12 + * 1.13 + * Unless required by applicable law or agreed to in writing, software 1.14 + * distributed under the License is distributed on an "AS IS" BASIS, 1.15 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1.16 + * See the License for the specific language governing permissions and 1.17 + * limitations under the License. 1.18 + */ 1.19 + 1.20 +@import "../variables"; 1.21 +@import "../mixins"; 1.22 + 1.23 +@if $target-elements-directly == true { 1.24 + html, body { 1.25 + font-family: $performance_font; 1.26 + font-size: 14px; 1.27 + font-weight: 400; 1.28 + line-height: 20px; 1.29 + } 1.30 + 1.31 + h1, h2, h3, h4, h5, h6, p { 1.32 + margin: 0; 1.33 + padding: 0; 1.34 + } 1.35 + 1.36 + /** 1.37 + * Styles for HTML elements 1.38 + */ 1.39 + 1.40 + h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { 1.41 + @include typo-display-3($colorContrast: true); 1.42 + 1.43 + font-size: 0.6em; 1.44 + } 1.45 + 1.46 + h1 { 1.47 + @include typo-display-3; 1.48 + 1.49 + margin-top: 24px; 1.50 + margin-bottom: 24px; 1.51 + } 1.52 + 1.53 + h2 { 1.54 + @include typo-display-2; 1.55 + 1.56 + margin-top: 24px; 1.57 + margin-bottom: 24px; 1.58 + } 1.59 + 1.60 + h3 { 1.61 + @include typo-display-1; 1.62 + 1.63 + margin-top: 24px; 1.64 + margin-bottom: 24px; 1.65 + } 1.66 + 1.67 + h4 { 1.68 + @include typo-headline; 1.69 + 1.70 + margin-top: 24px; 1.71 + margin-bottom: 16px; 1.72 + } 1.73 + 1.74 + h5 { 1.75 + @include typo-title; 1.76 + 1.77 + margin-top: 24px; 1.78 + margin-bottom: 16px; 1.79 + } 1.80 + 1.81 + h6 { 1.82 + @include typo-subhead; 1.83 + 1.84 + margin-top: 24px; 1.85 + margin-bottom: 16px; 1.86 + } 1.87 + 1.88 + p { 1.89 + @include typo-body-1; 1.90 + 1.91 + margin-bottom: 16px; 1.92 + } 1.93 + 1.94 + a { 1.95 + color: $text-link-color; 1.96 + font-weight: 500; 1.97 + } 1.98 + 1.99 + blockquote { 1.100 + @include typo-blockquote; 1.101 + } 1.102 + 1.103 + mark { 1.104 + background-color: #f4ff81; 1.105 + } 1.106 + 1.107 + dt { 1.108 + font-weight: 700; 1.109 + } 1.110 + 1.111 + address { 1.112 + @include typo-caption; 1.113 + 1.114 + font-style: normal; 1.115 + } 1.116 + 1.117 + ul, ol { 1.118 + @include typo-body-1; 1.119 + } 1.120 +} 1.121 + 1.122 +/** 1.123 + * Class Name Styles 1.124 + */ 1.125 + 1.126 +.mdl-typography--display-4 { 1.127 + @include typo-display-4; 1.128 +} 1.129 + 1.130 +.mdl-typography--display-4-color-contrast { 1.131 + @include typo-display-4($colorContrast: true); 1.132 +} 1.133 + 1.134 +.mdl-typography--display-3 { 1.135 + @include typo-display-3; 1.136 +} 1.137 + 1.138 +.mdl-typography--display-3-color-contrast { 1.139 + @include typo-display-3($colorContrast: true); 1.140 +} 1.141 + 1.142 +.mdl-typography--display-2 { 1.143 + @include typo-display-2; 1.144 +} 1.145 + 1.146 +.mdl-typography--display-2-color-contrast { 1.147 + @include typo-display-2($colorContrast: true); 1.148 +} 1.149 + 1.150 +.mdl-typography--display-1 { 1.151 + @include typo-display-1; 1.152 +} 1.153 + 1.154 +.mdl-typography--display-1-color-contrast { 1.155 + @include typo-display-1($colorContrast: true); 1.156 +} 1.157 + 1.158 +.mdl-typography--headline { 1.159 + @include typo-headline; 1.160 +} 1.161 + 1.162 +.mdl-typography--headline-color-contrast { 1.163 + @include typo-headline($colorContrast: true); 1.164 +} 1.165 + 1.166 +.mdl-typography--title { 1.167 + @include typo-title; 1.168 +} 1.169 + 1.170 +.mdl-typography--title-color-contrast { 1.171 + @include typo-title($colorContrast: true); 1.172 +} 1.173 + 1.174 +.mdl-typography--subhead { 1.175 + @include typo-subhead; 1.176 +} 1.177 + 1.178 +.mdl-typography--subhead-color-contrast { 1.179 + @include typo-subhead($colorContrast: true); 1.180 +} 1.181 + 1.182 +.mdl-typography--body-2 { 1.183 + @include typo-body-2; 1.184 +} 1.185 + 1.186 +.mdl-typography--body-2-color-contrast { 1.187 + @include typo-body-2($colorContrast: true); 1.188 +} 1.189 + 1.190 +.mdl-typography--body-1 { 1.191 + @include typo-body-1; 1.192 +} 1.193 + 1.194 +.mdl-typography--body-1-color-contrast { 1.195 + @include typo-body-1($colorContrast: true); 1.196 +} 1.197 + 1.198 +.mdl-typography--body-2-force-preferred-font { 1.199 + @include typo-body-2($usePreferred: true); 1.200 +} 1.201 + 1.202 +.mdl-typography--body-2-force-preferred-font-color-contrast { 1.203 + @include typo-body-2($colorContrast: true, $usePreferred: true); 1.204 +} 1.205 + 1.206 +.mdl-typography--body-1-force-preferred-font { 1.207 + @include typo-body-1($usePreferred: true); 1.208 +} 1.209 + 1.210 +.mdl-typography--body-1-force-preferred-font-color-contrast { 1.211 + @include typo-body-1($colorContrast: true, $usePreferred: true); 1.212 +} 1.213 + 1.214 +.mdl-typography--caption { 1.215 + @include typo-caption; 1.216 +} 1.217 + 1.218 +.mdl-typography--caption-force-preferred-font { 1.219 + @include typo-caption($usePreferred: true); 1.220 +} 1.221 + 1.222 +.mdl-typography--caption-color-contrast { 1.223 + @include typo-caption($colorContrast: true); 1.224 +} 1.225 + 1.226 +.mdl-typography--caption-force-preferred-font-color-contrast { 1.227 + @include typo-caption($colorContrast: true, $usePreferred: true); 1.228 +} 1.229 + 1.230 +.mdl-typography--menu { 1.231 + @include typo-menu; 1.232 +} 1.233 + 1.234 +.mdl-typography--menu-color-contrast { 1.235 + @include typo-menu($colorContrast: true); 1.236 +} 1.237 + 1.238 +.mdl-typography--button { 1.239 + @include typo-button; 1.240 +} 1.241 + 1.242 +.mdl-typography--button-color-contrast { 1.243 + @include typo-button($colorContrast: true); 1.244 +} 1.245 + 1.246 +.mdl-typography--text-left { 1.247 + text-align: left; 1.248 +} 1.249 + 1.250 +.mdl-typography--text-right { 1.251 + text-align: right; 1.252 +} 1.253 + 1.254 +.mdl-typography--text-center { 1.255 + text-align: center; 1.256 +} 1.257 + 1.258 +.mdl-typography--text-justify { 1.259 + text-align: justify; 1.260 +} 1.261 + 1.262 +.mdl-typography--text-nowrap { 1.263 + white-space: nowrap; 1.264 +} 1.265 + 1.266 +.mdl-typography--text-lowercase { 1.267 + text-transform: lowercase; 1.268 +} 1.269 + 1.270 +.mdl-typography--text-uppercase { 1.271 + text-transform: uppercase; 1.272 +} 1.273 + 1.274 +.mdl-typography--text-capitalize { 1.275 + text-transform: capitalize; 1.276 +} 1.277 + 1.278 +.mdl-typography--font-thin { 1.279 + font-weight: 200 !important; 1.280 +} 1.281 + 1.282 +.mdl-typography--font-light { 1.283 + font-weight: 300 !important; 1.284 +} 1.285 + 1.286 +.mdl-typography--font-regular { 1.287 + font-weight: 400 !important; 1.288 +} 1.289 + 1.290 +.mdl-typography--font-medium { 1.291 + font-weight: 500 !important; 1.292 +} 1.293 + 1.294 +.mdl-typography--font-bold { 1.295 + font-weight: 700 !important; 1.296 +} 1.297 + 1.298 +.mdl-typography--font-black { 1.299 + font-weight: 900 !important; 1.300 +} 1.301 + 1.302 +.material-icons { 1.303 + @include typo-icon; 1.304 +}