2 * Copyright 2015 Google Inc. All Rights Reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 @import "../variables";
20 * What follows is the result of much research on cross-browser styling.
21 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
22 * Kroc Camen, and the H5BP dev community and team.
25 /* ==========================================================================
26 Base styles: opinionated defaults
27 ========================================================================== */
30 color: $text-color-primary;
36 * Remove text-shadow in selection highlight:
37 * https://twitter.com/miketaylr/status/12228805301
39 * These selection rule sets have to be separate.
40 * Customize the background color to match your design.
49 * A better looking default horizontal rule
56 border-top: 1px solid #ccc;
62 * Remove the gap between audio, canvas, iframes,
63 * images, videos and the bottom of their containers:
64 * https://github.com/h5bp/html5-boilerplate/issues/440
73 vertical-align: middle;
77 * Remove default fieldset styles.
87 * Allow only vertical resizing of textareas.
94 /* ==========================================================================
95 Browser Upgrade Prompt
96 ========================================================================== */
105 /* ==========================================================================
106 Author's custom styles
107 ========================================================================== */
125 /* ==========================================================================
127 ========================================================================== */
130 * Hide visually and from screen readers:
134 display: none !important;
138 * Hide only visually, but have it available for screen readers:
139 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
154 * Extends the .visuallyhidden class to allow the element
155 * to be focusable when navigated to via the keyboard:
156 * https://www.drupal.org/node/897638
159 .visuallyhidden.focusable:active,
160 .visuallyhidden.focusable:focus {
170 * Hide visually and from screen readers, but maintain layout
178 * Clearfix: contain floats
180 * For modern browsers
181 * 1. The space content is one way to avoid an Opera bug when the
182 * `contenteditable` attribute is included anywhere else in the document.
183 * Otherwise it causes space to appear at the top and bottom of elements
184 * that receive the `clearfix` class.
185 * 2. The use of `table` rather than `block` is only necessary if using
186 * `:before` to contain the top-margins of child elements.
191 content: " "; /* 1 */
192 display: table; /* 2 */
199 /* ==========================================================================
200 EXAMPLE Media Queries for Responsive Design.
201 These examples override the primary ('mobile first') styles.
202 Modify as content requires.
203 ========================================================================== */
205 @media only screen and (min-width: 35em) {
206 /* Style adjustments for viewports that meet the condition */
210 (min-resolution: 1.25dppx),
211 (min-resolution: 120dpi) {
212 /* Style adjustments for high resolution devices */
215 /* ==========================================================================
217 Inlined to avoid the additional HTTP request:
218 http://www.phpied.com/delay-loading-your-print-css/
219 ========================================================================== */
226 background: transparent !important;
227 color: #000 !important; /* Black prints faster: http://www.sanbeiji.com/archives/953 */
228 box-shadow: none !important;
233 text-decoration: underline;
237 content: " (" attr(href) ")";
241 content: " (" attr(title) ")";
245 * Don't show links that are fragment identifiers,
246 * or use the `javascript:` pseudo protocol
250 a[href^="javascript:"]:after {
256 border: 1px solid #999;
257 page-break-inside: avoid;
262 * http://css-discuss.incutio.com/wiki/Printing_Tables
266 display: table-header-group;
271 page-break-inside: avoid;
275 max-width: 100% !important;
287 page-break-after: avoid;