Debian Codegraph @

test/project/sass/original.scss

raw
1 /*
2 * What follows is the result of much research on cross-browser styling.
3 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
4 * Kroc Camen, and the h5bp dev community and team.
5 */
6
7 /* ==========================================================================
8 Base styles: opinionated defaults
9 ========================================================================== */
10
11 html {
12 color: #222;
13 font-size: 1em;
14 line-height: 1.4;
15 }
16
17 /*
18 * Remove text-shadow in selection highlight:
19 * https://twitter.com/miketaylr/status/12228805301
20 *
21 * These selection rule sets have to be separate.
22 * Customize the background color to match your design.
23 */
24
25 ::-moz-selection {
26 background: #b3d4fc;
27 text-shadow: none;
28 }
29
30 ::selection {
31 background: #b3d4fc;
32 text-shadow: none;
33 }
34
35 /*
36 * A better looking default horizontal rule
37 */
38
39 hr {
40 display: block;
41 height: 1px;
42 border: 0;
43 border-top: 1px solid #ccc;
44 margin: 1em 0;
45 padding: 0;
46 }
47
48 /*
49 * Remove the gap between audio, canvas, iframes,
50 * images, videos and the bottom of their containers:
51 * https://github.com/h5bp/html5-boilerplate/issues/440
52 */
53
54 audio,
55 canvas,
56 iframe,
57 img,
58 svg,
59 video {
60 vertical-align: middle;
61 }
62
63 /*
64 * Remove default fieldset styles.
65 */
66
67 fieldset {
68 border: 0;
69 margin: 0;
70 padding: 0;
71 }
72
73 /*
74 * Allow only vertical resizing of textareas.
75 */
76
77 textarea {
78 resize: vertical;
79 }
80
81 /* ==========================================================================
82 Browser Upgrade Prompt
83 ========================================================================== */
84
85 .browserupgrade {
86 margin: 0.2em 0;
87 background: #ccc;
88 color: #000;
89 padding: 0.2em 0;
90 }
91
92 /* ==========================================================================
93 Author's custom styles
94 ========================================================================== */
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112 /* ==========================================================================
113 Helper classes
114 ========================================================================== */
115
116 /*
117 * Hide visually and from screen readers:
118 * http://juicystudio.com/article/screen-readers-display-none.php
119 */
120
121 .hidden {
122 display: none !important;
123 visibility: hidden;
124 }
125
126 /*
127 * Hide only visually, but have it available for screen readers:
128 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
129 */
130
131 .visuallyhidden {
132 border: 0;
133 clip: rect(0 0 0 0);
134 height: 1px;
135 margin: -1px;
136 overflow: hidden;
137 padding: 0;
138 position: absolute;
139 width: 1px;
140 }
141
142 /*
143 * Extends the .visuallyhidden class to allow the element
144 * to be focusable when navigated to via the keyboard:
145 * https://www.drupal.org/node/897638
146 */
147
148 .visuallyhidden.focusable:active,
149 .visuallyhidden.focusable:focus {
150 clip: auto;
151 height: auto;
152 margin: 0;
153 overflow: visible;
154 position: static;
155 width: auto;
156 }
157
158 /*
159 * Hide visually and from screen readers, but maintain layout
160 */
161
162 .invisible {
163 visibility: hidden;
164 }
165
166 /*
167 * Clearfix: contain floats
168 *
169 * For modern browsers
170 * 1. The space content is one way to avoid an Opera bug when the
171 * `contenteditable` attribute is included anywhere else in the document.
172 * Otherwise it causes space to appear at the top and bottom of elements
173 * that receive the `clearfix` class.
174 * 2. The use of `table` rather than `block` is only necessary if using
175 * `:before` to contain the top-margins of child elements.
176 */
177
178 .clearfix:before,
179 .clearfix:after {
180 content: " "; /* 1 */
181 display: table; /* 2 */
182 }
183
184 .clearfix:after {
185 clear: both;
186 }
187
188 /* ==========================================================================
189 EXAMPLE Media Queries for Responsive Design.
190 These examples override the primary ('mobile first') styles.
191 Modify as content requires.
192 ========================================================================== */
193
194 @media only screen and (min-width: 35em) {
195 /* Style adjustments for viewports that meet the condition */
196 }
197
198 @media print,
199 (-o-min-device-pixel-ratio: 5/4),
200 (-webkit-min-device-pixel-ratio: 1.25),
201 (min-resolution: 120dpi) {
202 /* Style adjustments for high resolution devices */
203 }
204
205 /* ==========================================================================
206 Print styles.
207 Inlined to avoid the additional HTTP request:
208 http://www.phpied.com/delay-loading-your-print-css/
209 ========================================================================== */
210
211 @media print {
212 *,
213 *:before,
214 *:after {
215 background: transparent !important;
216 color: #000 !important; /* Black prints faster:
217 http://www.sanbeiji.com/archives/953 */
218 box-shadow: none !important;
219 text-shadow: none !important;
220 }
221
222 a,
223 a:visited {
224 text-decoration: underline;
225 }
226
227 a[href]:after {
228 content: " (" attr(href) ")";
229 }
230
231 abbr[title]:after {
232 content: " (" attr(title) ")";
233 }
234
235 /*
236 * Don't show links that are fragment identifiers,
237 * or use the `javascript:` pseudo protocol
238 */
239
240 a[href^="#"]:after,
241 a[href^="javascript:"]:after {
242 content: "";
243 }
244
245 pre,
246 blockquote {
247 border: 1px solid #999;
248 page-break-inside: avoid;
249 }
250
251 /*
252 * Printing Tables:
253 * http://css-discuss.incutio.com/wiki/Printing_Tables
254 */
255
256 thead {
257 display: table-header-group;
258 }
259
260 tr,
261 img {
262 page-break-inside: avoid;
263 }
264
265 img {
266 max-width: 100% !important;
267 }
268
269 p,
270 h2,
271 h3 {
272 orphans: 3;
273 widows: 3;
274 }
275
276 h2,
277 h3 {
278 page-break-after: avoid;
279 }
280 }