summaryrefslogtreecommitdiffstats
path: root/STARTERKIT/sass/html-reset.scss
blob: 6127c204fdfec0b7a3093310f04fedb1ed9ce402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
//
// HTML Element Styling
//
// Ok, I admit it. I fooled you. This isn't a "reset" stylesheet. Instead this
// is the place where you should set (not reset) the default styling for all
// HTML elements.
//
// @see http://meiert.com/en/blog/20080419/reset-style-sheets-are-bad/
// @see http://snook.ca/archives/html_and_css/no_css_reset/
//

@import "base";


//
// Fonts
//
// Our font size and line height declarations are based on the following
// articles:
// - http://www.alistapart.com/articles/howtosizetextincss
// - http://24ways.org/2006/compose-to-a-vertical-rhythm
//
// All modern browsers use a 16px default font size. Specifying the font-size
// and line-height in ems (relative to the 16px default font) allows the user
// to resize the font in the browser and produces the most consistent results
// across different browsers.
//
body {
  font-size: 100%; // Fixes exaggerated text resizing in IE6 and IE7
}

#skip-to-nav,
#page {
  //
  // To use a 12px font size on the page, delete the 14px declarations.
  // to use a 14px font size on the page, delete the 12px declarations.
  //

  // Use a 12px base font size with a 18px line height
  font-size: 0.75em; // 16px x .75 = 12px
  line-height: 1.5em; // 12px x 1.5 = 18px

  // Use a 14px base font size with a 21px line height
  font-size: 0.875em; // 16px x .875 = 14px
  line-height: 1.5em; // 14px x 1.5 = 21px
}

// Instead of relying on the fonts that are available on a user's computer, you
// can use web fonts which, like images, are resources downloaded to the user's
// browser. Because of the bandwidth and rendering resources required, web fonts
// should be used with care.
//
// Numerous resources for web fonts can be found on Google. Here are a few
// websites where you can find Open Source fonts to download:
// - http://www.fontsquirrel.com/fontface
// - http://www.theleagueofmoveabletype.com
//
// In order to use these fonts, you will need to convert them into formats
// suitable for web fonts. We recommend the free-to-use Font Squirrel's
// Font-Face Generator:
//   http://www.fontsquirrel.com/fontface/generator
//
// The following is an example @font-face declaration. This font can then be
// used in any ruleset using a property like this:  font-family: Example, serif;

/*
@font-face {
  font-family: 'Example';
  src: url('../fonts/example.eot');
  src: url('../fonts/example.eot?iefix') format('eot'),
    url('../fonts/example.woff') format('woff'),
    url('../fonts/example.ttf') format('truetype'),
    url('../fonts/example.svg#webfontOkOndcij') format('svg');
  font-weight: normal;
  font-style: normal;
}
*/

body,
caption,
th,
td,
input,
textarea,
select,
option,
legend,
fieldset {
  // The following font family declarations are based on the Microsoft core web
  // fonts which are common fonts available on most computer systems. The DejaVu
  // and Nimbus Sans fonts are commonly available on Linux systems where the MS
  // fonts are less common. Tahoma and Helvetica are also widely available.
  //
  // A user's web browser will look at the comma-separated list and will
  // attempt to use each font in turn until it finds one that is available
  // on the user's computer. The final "generic" font (sans-serif, serif or
  // monospace) hints at what type of font to use if the web browser doesn't
  // find any of the fonts in the list.

  /*
  font-family: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
  font-family: Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;

  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
  font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
  font-family: Helvetica, Arial, "Nimbus Sans L", sans-serif;
  font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;

  font-family: "Courier New", "DejaVu Sans Mono", monospace;
  */

  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
}

pre,
code,
kbd,
samp,
tt,
var {
  font-family: "Courier New", "DejaVu Sans Mono", monospace;
}


//
// Block-level elements
//
// To achieve a pleasant vertical rhythm, we use the 1.5em line height of our
// base font as the top and bottom margins for our block level elements and make
// the line heights of any larger fonts be a multiple of 1.5 ems. For more
// information, see http://24ways.org/2006/compose-to-a-vertical-rhythm
//
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl,
hr, table, fieldset {
  margin: 1.5em 0;
}

// Headings
h1 {
  font-size: 2em;
  line-height: 1.5em;
  margin: 0.75em 0;
  // 0.75em is equivalent to 1.5em in the page's base font. font. Remember, a
  // margin specified in ems is relative to the element's font-size, not to the
  // pages' base font size. So, for example, if we want a 1.5em margin (relative
  // to the base font), we have to divide that length by the element's
  // font-size:  1.5em / 2em = 0.5em
}

h2 {
  font-size: 1.5em;
  margin: 1em 0; // Equivalent to 1.5em in the page's base font: 1.5 / 1.5 = 1em
}

h3 {
  font-size: 1.3em;
  margin: 1.154em 0; // Equivalent to 1.5em in the page's base font: 1.5 / 1.3 = 1.154
}

h4,
h5,
h6 {
  font-size: 1.1em;
  margin: 1.364em 0; // Equivalent to 1.5em in the page's base font: 1.5 / 1.1 = 1.364
}

// Other block-level elements
p {
}

blockquote {
  margin-left: 2em;
  margin-right: 2em;
}

pre {
  font-size: 1.1em; // Monospace fonts can be hard to read
  margin: 1.364em 0; // Equivalent to 1.5em in the page's base font: 1.5 / 1.1 = 1.364
}

hr {
  height: 1px;
  border: 1px solid #666;
}

address {
}


//
// Lists
//
// We need to standardize the list item indentation.
//
ul,
ol {
  margin-left: 0; // LTR
  padding-left: 2em; // LTR
}

.item-list ul { // Drupal overrides
  margin: 1.5em 0;
  padding: 0 0 0 2em; // LTR
}

ul, ol, .item-list ul, .item-list ol {
  ul, ol {
    margin: 0;
  }
}

li,
.item-list ul li,
ul.menu li,
li.expanded,
li.collapsed,
li.leaf { // List items, including Drupal overrides
  margin: 0;
  padding: 0;
}

ul {
  list-style-type: disc;
  ul {
    list-style-type: circle;
    ul {
      list-style-type: square;
      ul {
        list-style-type: circle;
}}}}

ol {
  list-style-type: decimal;
  ol {
    list-style-type: lower-alpha;
    ol {
      list-style-type: decimal;
}}}

dl {
}

dt {
  margin: 0;
  padding: 0;
}

dd {
  margin: 0 0 0 2em; // LTR
  padding: 0;
}


//
// Tables
//
// Drupal provides table styling which is only useful for its admin section
// forms, so we override this default CSS. (We set it back in forms.css.)
//
table {
  border-collapse: collapse;
  // width: 100%; // Prevent cramped-looking tables
}

th {
  text-align: left; // LTR
  padding: 0;
  border-bottom: none;
}

tbody {
  border-top: none;
}

thead {
}

tfoot {
}

caption {
}

colgroup {
}

col {
}

tr {
}

td {
}


//
// Forms
//
form {
  margin: 0;
  padding: 0;
}

fieldset {
  padding: 0.5em;
}

legend {
}

label {
}

input {
}

select {
}

optgroup {
}

option {
}

textarea {
}

button {
}


//
// Links
//
// The order of link states are based on Eric Meyer's article:
// http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
//
a {
  &:link {
  }

  &:visited {
  }

  &:hover,
  &:focus {
  }

  &:active {
  }
}


//
// Other inline elements
//
img {
  border: 0;
  // vertical-align: bottom; // Suppress the space beneath the baseline
}

abbr, // Abbreviations
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
  white-space: nowrap;
}

q {
}

cite {
}

strong, b {
}

em, i {
}

code,
kbd,
samp,
tt,
var { // Code, keyboard input, sample output, teletype, variable
}

del {
}

ins {
}

big {
}

small {
}

sub {
}

sup {
}