liquid_feedback_frontend
diff style/mdl/resets/_h5bp.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/resets/_h5bp.scss Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -0,0 +1,289 @@ 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 + 1.22 +/* 1.23 + * What follows is the result of much research on cross-browser styling. 1.24 + * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, 1.25 + * Kroc Camen, and the H5BP dev community and team. 1.26 + */ 1.27 + 1.28 +/* ========================================================================== 1.29 + Base styles: opinionated defaults 1.30 + ========================================================================== */ 1.31 + 1.32 +html { 1.33 + color: $text-color-primary; 1.34 + font-size: 1em; 1.35 + line-height: 1.4; 1.36 +} 1.37 + 1.38 +/* 1.39 + * Remove text-shadow in selection highlight: 1.40 + * https://twitter.com/miketaylr/status/12228805301 1.41 + * 1.42 + * These selection rule sets have to be separate. 1.43 + * Customize the background color to match your design. 1.44 + */ 1.45 + 1.46 +::selection { 1.47 + background: #b3d4fc; 1.48 + text-shadow: none; 1.49 +} 1.50 + 1.51 +/* 1.52 + * A better looking default horizontal rule 1.53 + */ 1.54 + 1.55 +hr { 1.56 + display: block; 1.57 + height: 1px; 1.58 + border: 0; 1.59 + border-top: 1px solid #ccc; 1.60 + margin: 1em 0; 1.61 + padding: 0; 1.62 +} 1.63 + 1.64 +/* 1.65 + * Remove the gap between audio, canvas, iframes, 1.66 + * images, videos and the bottom of their containers: 1.67 + * https://github.com/h5bp/html5-boilerplate/issues/440 1.68 + */ 1.69 + 1.70 +audio, 1.71 +canvas, 1.72 +iframe, 1.73 +img, 1.74 +svg, 1.75 +video { 1.76 + vertical-align: middle; 1.77 +} 1.78 + 1.79 +/* 1.80 + * Remove default fieldset styles. 1.81 + */ 1.82 + 1.83 +fieldset { 1.84 + border: 0; 1.85 + margin: 0; 1.86 + padding: 0; 1.87 +} 1.88 + 1.89 +/* 1.90 + * Allow only vertical resizing of textareas. 1.91 + */ 1.92 + 1.93 +textarea { 1.94 + resize: vertical; 1.95 +} 1.96 + 1.97 +/* ========================================================================== 1.98 + Browser Upgrade Prompt 1.99 + ========================================================================== */ 1.100 + 1.101 +.browserupgrade { 1.102 + margin: 0.2em 0; 1.103 + background: #ccc; 1.104 + color: #000; 1.105 + padding: 0.2em 0; 1.106 +} 1.107 + 1.108 +/* ========================================================================== 1.109 + Author's custom styles 1.110 + ========================================================================== */ 1.111 + 1.112 + 1.113 + 1.114 + 1.115 + 1.116 + 1.117 + 1.118 + 1.119 + 1.120 + 1.121 + 1.122 + 1.123 + 1.124 + 1.125 + 1.126 + 1.127 + 1.128 +/* ========================================================================== 1.129 + Helper classes 1.130 + ========================================================================== */ 1.131 + 1.132 +/* 1.133 + * Hide visually and from screen readers: 1.134 + */ 1.135 + 1.136 +.hidden { 1.137 + display: none !important; 1.138 +} 1.139 + 1.140 +/* 1.141 + * Hide only visually, but have it available for screen readers: 1.142 + * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility 1.143 + */ 1.144 + 1.145 +.visuallyhidden { 1.146 + border: 0; 1.147 + clip: rect(0 0 0 0); 1.148 + height: 1px; 1.149 + margin: -1px; 1.150 + overflow: hidden; 1.151 + padding: 0; 1.152 + position: absolute; 1.153 + width: 1px; 1.154 +} 1.155 + 1.156 +/* 1.157 + * Extends the .visuallyhidden class to allow the element 1.158 + * to be focusable when navigated to via the keyboard: 1.159 + * https://www.drupal.org/node/897638 1.160 + */ 1.161 + 1.162 +.visuallyhidden.focusable:active, 1.163 +.visuallyhidden.focusable:focus { 1.164 + clip: auto; 1.165 + height: auto; 1.166 + margin: 0; 1.167 + overflow: visible; 1.168 + position: static; 1.169 + width: auto; 1.170 +} 1.171 + 1.172 +/* 1.173 + * Hide visually and from screen readers, but maintain layout 1.174 + */ 1.175 + 1.176 +.invisible { 1.177 + visibility: hidden; 1.178 +} 1.179 + 1.180 +/* 1.181 + * Clearfix: contain floats 1.182 + * 1.183 + * For modern browsers 1.184 + * 1. The space content is one way to avoid an Opera bug when the 1.185 + * `contenteditable` attribute is included anywhere else in the document. 1.186 + * Otherwise it causes space to appear at the top and bottom of elements 1.187 + * that receive the `clearfix` class. 1.188 + * 2. The use of `table` rather than `block` is only necessary if using 1.189 + * `:before` to contain the top-margins of child elements. 1.190 + */ 1.191 + 1.192 +.clearfix:before, 1.193 +.clearfix:after { 1.194 + content: " "; /* 1 */ 1.195 + display: table; /* 2 */ 1.196 +} 1.197 + 1.198 +.clearfix:after { 1.199 + clear: both; 1.200 +} 1.201 + 1.202 +/* ========================================================================== 1.203 + EXAMPLE Media Queries for Responsive Design. 1.204 + These examples override the primary ('mobile first') styles. 1.205 + Modify as content requires. 1.206 + ========================================================================== */ 1.207 + 1.208 +@media only screen and (min-width: 35em) { 1.209 + /* Style adjustments for viewports that meet the condition */ 1.210 +} 1.211 + 1.212 +@media print, 1.213 + (min-resolution: 1.25dppx), 1.214 + (min-resolution: 120dpi) { 1.215 + /* Style adjustments for high resolution devices */ 1.216 +} 1.217 + 1.218 +/* ========================================================================== 1.219 + Print styles. 1.220 + Inlined to avoid the additional HTTP request: 1.221 + http://www.phpied.com/delay-loading-your-print-css/ 1.222 + ========================================================================== */ 1.223 + 1.224 +@media print { 1.225 + *, 1.226 + *:before, 1.227 + *:after, 1.228 + *:first-letter { 1.229 + background: transparent !important; 1.230 + color: #000 !important; /* Black prints faster: http://www.sanbeiji.com/archives/953 */ 1.231 + box-shadow: none !important; 1.232 + } 1.233 + 1.234 + a, 1.235 + a:visited { 1.236 + text-decoration: underline; 1.237 + } 1.238 + 1.239 + a[href]:after { 1.240 + content: " (" attr(href) ")"; 1.241 + } 1.242 + 1.243 + abbr[title]:after { 1.244 + content: " (" attr(title) ")"; 1.245 + } 1.246 + 1.247 + /* 1.248 + * Don't show links that are fragment identifiers, 1.249 + * or use the `javascript:` pseudo protocol 1.250 + */ 1.251 + 1.252 + a[href^="#"]:after, 1.253 + a[href^="javascript:"]:after { 1.254 + content: ""; 1.255 + } 1.256 + 1.257 + pre, 1.258 + blockquote { 1.259 + border: 1px solid #999; 1.260 + page-break-inside: avoid; 1.261 + } 1.262 + 1.263 + /* 1.264 + * Printing Tables: 1.265 + * http://css-discuss.incutio.com/wiki/Printing_Tables 1.266 + */ 1.267 + 1.268 + thead { 1.269 + display: table-header-group; 1.270 + } 1.271 + 1.272 + tr, 1.273 + img { 1.274 + page-break-inside: avoid; 1.275 + } 1.276 + 1.277 + img { 1.278 + max-width: 100% !important; 1.279 + } 1.280 + 1.281 + p, 1.282 + h2, 1.283 + h3 { 1.284 + orphans: 3; 1.285 + widows: 3; 1.286 + } 1.287 + 1.288 + h2, 1.289 + h3 { 1.290 + page-break-after: avoid; 1.291 + } 1.292 +}