bones-rails 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +29 -7
- data/app/assets/stylesheets/bones.scss +65 -0
- data/app/assets/stylesheets/bones/config/bones_config.scss +262 -0
- data/app/assets/stylesheets/bones/helpers/_background.scss +138 -0
- data/app/assets/stylesheets/bones/helpers/_border.scss +138 -0
- data/app/assets/stylesheets/bones/helpers/_color.scss +138 -0
- data/app/assets/stylesheets/bones/helpers/_margin.scss +82 -0
- data/app/assets/stylesheets/bones/helpers/_padding.scss +82 -0
- data/app/assets/stylesheets/bones/helpers/_positioning.scss +24 -0
- data/app/assets/stylesheets/bones/helpers/_size.scss +34 -0
- data/app/assets/stylesheets/bones/mixins/_buttons.scss +19 -0
- data/app/assets/stylesheets/bones/mixins/_forms.scss +15 -0
- data/app/assets/stylesheets/bones/mixins/_globals.scss +15 -0
- data/app/assets/stylesheets/bones/mixins/_grid.scss +4 -0
- data/app/assets/stylesheets/bones/mixins/_nav.scss +41 -0
- data/app/assets/stylesheets/bones/mixins/_typography.scss +15 -0
- data/app/assets/stylesheets/bones/partials/_buttons.scss +86 -0
- data/app/assets/stylesheets/bones/partials/_code.scss +99 -0
- data/app/assets/stylesheets/bones/partials/_components.scss +22 -0
- data/app/assets/stylesheets/bones/partials/_forms.scss +49 -0
- data/app/assets/stylesheets/bones/partials/_globals.scss +27 -0
- data/app/assets/stylesheets/bones/partials/_grid.scss +112 -0
- data/app/assets/stylesheets/bones/partials/_images.scss +52 -0
- data/app/assets/stylesheets/bones/partials/_nav.scss +111 -0
- data/app/assets/stylesheets/bones/partials/_tables.scss +19 -0
- data/app/assets/stylesheets/bones/partials/_typography.scss +174 -0
- data/app/assets/stylesheets/bones/variables/_buttons.scss +16 -0
- data/app/assets/stylesheets/bones/variables/_code.scss +15 -0
- data/app/assets/stylesheets/bones/variables/_colors.scss +122 -0
- data/app/assets/stylesheets/bones/variables/_forms.scss +12 -0
- data/app/assets/stylesheets/bones/variables/_globals.scss +12 -0
- data/app/assets/stylesheets/bones/variables/_grid.scss +8 -0
- data/app/assets/stylesheets/bones/variables/_helpers.scss +9 -0
- data/app/assets/stylesheets/bones/variables/_images.scss +13 -0
- data/app/assets/stylesheets/bones/variables/_nav.scss +40 -0
- data/app/assets/stylesheets/bones/variables/_tables.scss +7 -0
- data/app/assets/stylesheets/bones/variables/_typography.scss +61 -0
- data/app/assets/stylesheets/bones/vendor/_normalize.scss +406 -0
- data/bones-rails.gemspec +11 -10
- data/lib/bones/generators/install_generator.rb +18 -0
- data/lib/bones/rails.rb +2 -3
- data/lib/bones/rails/version.rb +1 -3
- metadata +67 -8
- checksums.yaml +0 -15
- data/app/assets/stylesheets/bones.css +0 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
// colors
|
2
|
+
$button-color: $accent-light;
|
3
|
+
$button-background-color: $primary;
|
4
|
+
$button-hover-background-color: $primary-dark;
|
5
|
+
$button-active-background-color: $primary-darker;
|
6
|
+
|
7
|
+
// default styles
|
8
|
+
$button-border: none;
|
9
|
+
$button-padding: 0.65em 1em;
|
10
|
+
$button-margin: $default-margin;
|
11
|
+
$button-font-size: $default-font-size;
|
12
|
+
|
13
|
+
// size
|
14
|
+
$button-huge-font-size: 200%;
|
15
|
+
$button-large-font-size: 150%;
|
16
|
+
$button-small-font-size: 75%;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
$code-font-family: Consolas, monospace;
|
2
|
+
$code-color: $code;
|
3
|
+
$code-font-size: 12px;
|
4
|
+
$code-background: $accent-light;
|
5
|
+
$code-padding: 1px 2px;
|
6
|
+
$code-border: $accent-light-dark;
|
7
|
+
|
8
|
+
$code-block-margin: 1.25em 0;
|
9
|
+
$code-block-padding: 1.25em 0.75em;
|
10
|
+
$code-block-font-family: $code-font-family;
|
11
|
+
$code-block-color: $font;
|
12
|
+
$code-block-background: $accent-light;
|
13
|
+
$code-block-border: $accent-light-dark;
|
14
|
+
$code-block-font-size: 13px;
|
15
|
+
$code-block-line-height: 19px;
|
@@ -0,0 +1,122 @@
|
|
1
|
+
// palette
|
2
|
+
$primary: #1D9BC7; // blue
|
3
|
+
$accent-1: #E05432; // red/orange
|
4
|
+
$accent-2: #168719; // green
|
5
|
+
$accent-dark: #444444; // dark
|
6
|
+
$accent-light: #efefef; // light
|
7
|
+
|
8
|
+
$warning: #CCA300;
|
9
|
+
$danger: #CC0000;
|
10
|
+
$success: #008A2E;
|
11
|
+
|
12
|
+
// tones
|
13
|
+
$primary-light: #6BCEF0;
|
14
|
+
$primary-lighter: #AEE4F5;
|
15
|
+
$primary-lightest: lighten(#AEE4F5, 5%);
|
16
|
+
$primary-dark: darken($primary, 5%);
|
17
|
+
$primary-darker: darken($primary, 15%);
|
18
|
+
$primary-darkest: darken($primary, 25%);
|
19
|
+
|
20
|
+
$accent-1-light: lighten($accent-1, 5%);
|
21
|
+
$accent-1-lighter: lighten($accent-1, 15%);
|
22
|
+
$accent-1-lightest: lighten($accent-1, 25%);
|
23
|
+
$accent-1-dark: darken($accent-1, 5%);
|
24
|
+
$accent-1-darker: darken($accent-1, 15%);
|
25
|
+
$accent-1-darkest: darken($accent-1, 25%);
|
26
|
+
|
27
|
+
$accent-2-light: lighten($accent-2, 5%);
|
28
|
+
$accent-2-lighter: lighten($accent-2, 15%);
|
29
|
+
$accent-2-lightest: lighten($accent-2, 25%);
|
30
|
+
$accent-2-dark: darken($accent-2, 5%);
|
31
|
+
$accent-2-darker: darken($accent-2, 15%);
|
32
|
+
$accent-2-darkest: darken($accent-2, 25%);
|
33
|
+
|
34
|
+
$accent-dark-light: lighten($accent-dark, 5%);
|
35
|
+
$accent-dark-lighter: lighten($accent-dark, 15%);
|
36
|
+
$accent-dark-lightest: lighten($accent-dark, 25%);
|
37
|
+
|
38
|
+
$accent-light-dark: darken($accent-light, 5%);
|
39
|
+
$accent-light-darker: darken($accent-light, 15%);
|
40
|
+
$accent-light-darkest: darken($accent-light, 25%);
|
41
|
+
|
42
|
+
$success-dark: darken($success, 5%);
|
43
|
+
$success-darker: darken($success, 15%);
|
44
|
+
$success-darkest: darken($success, 25%);
|
45
|
+
|
46
|
+
$warning-dark: darken($warning, 5%);
|
47
|
+
$warning-darker: darken($warning, 15%);
|
48
|
+
$warning-darkest: darken($warning, 25%);
|
49
|
+
|
50
|
+
$danger-dark: darken($danger, 5%);
|
51
|
+
$danger-darker: darken($danger, 15%);
|
52
|
+
$danger-darkest: darken($danger, 25%);
|
53
|
+
|
54
|
+
// groups
|
55
|
+
$font: $accent-dark;
|
56
|
+
$code: $accent-1;
|
57
|
+
$shadow: $accent-light;
|
58
|
+
|
59
|
+
// syntax highlighting
|
60
|
+
.hll { background-color: #f8f8f8; border: 1px solid #ccc; padding: 6px 10px; border-radius: 3px; }
|
61
|
+
.c { color: #999988; font-style: italic; }
|
62
|
+
.err { color: #a61717; background-color: #e3d2d2; }
|
63
|
+
.k { font-weight: bold; }
|
64
|
+
.o { font-weight: bold; }
|
65
|
+
.cm { color: #999988; font-style: italic; }
|
66
|
+
.cp { color: #999999; font-weight: bold; }
|
67
|
+
.c1 { color: #999988; font-style: italic; }
|
68
|
+
.cs { color: #999999; font-weight: bold; font-style: italic; }
|
69
|
+
.gd { color: #000000; background-color: #ffdddd; }
|
70
|
+
.gd .x { color: #000000; background-color: #ffaaaa; }
|
71
|
+
.ge { font-style: italic; }
|
72
|
+
.gr { color: #aa0000; }
|
73
|
+
.gh { color: #999999; }
|
74
|
+
.gi { color: #000000; background-color: #ddffdd; }
|
75
|
+
.gi .x { color: #000000; background-color: #aaffaa; }
|
76
|
+
.go { color: #888888; }
|
77
|
+
.gp { color: #555555; }
|
78
|
+
.gs { font-weight: bold; }
|
79
|
+
.gu { color: #800080; font-weight: bold; }
|
80
|
+
.gt { color: #aa0000; }
|
81
|
+
.kc { font-weight: bold; }
|
82
|
+
.kd { font-weight: bold; }
|
83
|
+
.kn { font-weight: bold; }
|
84
|
+
.kp { font-weight: bold; }
|
85
|
+
.kr { font-weight: bold; }
|
86
|
+
.kt { color: #445588; font-weight: bold; }
|
87
|
+
.m { color: #009999; }
|
88
|
+
.s { color: #dd1144; }
|
89
|
+
.n { color: #333333; }
|
90
|
+
.na { color: teal; }
|
91
|
+
.nb { color: #0086b3; }
|
92
|
+
.nc { color: #445588; font-weight: bold; }
|
93
|
+
.no { color: teal; }
|
94
|
+
.ni { color: purple; }
|
95
|
+
.ne { color: #990000; font-weight: bold; }
|
96
|
+
.nf { color: #990000; font-weight: bold; }
|
97
|
+
.nn { color: #555555; }
|
98
|
+
.nt { color: navy; }
|
99
|
+
.nv { color: teal; }
|
100
|
+
.ow { font-weight: bold; }
|
101
|
+
.w { color: #bbbbbb; }
|
102
|
+
.mf { color: #009999; }
|
103
|
+
.mh { color: #009999; }
|
104
|
+
.mi { color: #009999; }
|
105
|
+
.mo { color: #009999; }
|
106
|
+
.sb { color: #dd1144; }
|
107
|
+
.sc { color: #dd1144; }
|
108
|
+
.sd { color: #dd1144; }
|
109
|
+
.s2 { color: #dd1144; }
|
110
|
+
.se { color: #dd1144; }
|
111
|
+
.sh { color: #dd1144; }
|
112
|
+
.si { color: #dd1144; }
|
113
|
+
.sx { color: #dd1144; }
|
114
|
+
.sr { color: #009926; }
|
115
|
+
.s1 { color: #dd1144; }
|
116
|
+
.ss { color: #990073; }
|
117
|
+
.bp { color: #999999; }
|
118
|
+
.vc { color: teal; }
|
119
|
+
.vg { color: teal; }
|
120
|
+
.vi { color: teal; }
|
121
|
+
.il { color: #009999; }
|
122
|
+
.gc { color: #999; background-color: #EAF2F5; }
|
@@ -0,0 +1,12 @@
|
|
1
|
+
$form-margin: $default-margin;
|
2
|
+
$form-width: 100%;
|
3
|
+
$form-box-sizing: border-box;
|
4
|
+
$form-border: 1px solid $accent-light-darker;
|
5
|
+
$form-focus-outline: none;
|
6
|
+
$form-focus-border: 1px solid $primary;
|
7
|
+
$form-input-padding: 4px;
|
8
|
+
$form-radio-margin: 0 0 0.5em 0;
|
9
|
+
|
10
|
+
$form-fieldset-border: 1px solid $accent-light-darker;
|
11
|
+
$form-fieldset-legend-font-weight: 600;
|
12
|
+
$form-fieldset-legend-padding: 0 5px;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// ALL SIZING IS RELATIVE TO THIS VALUE
|
2
|
+
$default-font-size: 16px;
|
3
|
+
|
4
|
+
$default-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
|
5
|
+
$default-font-weight: 200;
|
6
|
+
$default-line-height: 1.25em;
|
7
|
+
$default-color: $font;
|
8
|
+
$default-margin: 0.75em 0;
|
9
|
+
|
10
|
+
$hr-color: $accent-light-dark;
|
11
|
+
$hr-height: 1px;
|
12
|
+
$hr-margin: $default-margin;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// sizes
|
2
|
+
$img-thumb-width: 100px;
|
3
|
+
$img-medium-width: 250px;
|
4
|
+
$img-large-width: 400px;
|
5
|
+
|
6
|
+
// border and outlines
|
7
|
+
$img-outline-color: $accent-light-dark;
|
8
|
+
$img-frame-width: 0.5em;
|
9
|
+
$img-polaroid-frame-width: 0.75em;
|
10
|
+
$img-polaroid-bottom-width: 2.75em;
|
11
|
+
|
12
|
+
// panoramic
|
13
|
+
$img-panoramic-height: 200px;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// top bar
|
2
|
+
$nav-tb-padding: 0.5em 1.25em;
|
3
|
+
$nav-tb-font-size: 1.1em;
|
4
|
+
$nav-tb-background: transparent;
|
5
|
+
$nav-tb-color: $primary-light;
|
6
|
+
$nav-tb-background-hover: transparent;
|
7
|
+
$nav-tb-color-hover: $accent-light;
|
8
|
+
|
9
|
+
// horizontal
|
10
|
+
$nav-h-padding: $nav-tb-padding;
|
11
|
+
$nav-h-font-size: $nav-tb-font-size;
|
12
|
+
$nav-h-background: transparent;
|
13
|
+
$nav-h-color: $primary;
|
14
|
+
$nav-h-background-hover: $primary;
|
15
|
+
$nav-h-color-hover: $accent-light;
|
16
|
+
|
17
|
+
// vertical
|
18
|
+
$nav-v-padding: 0.5em;
|
19
|
+
$nav-v-font-size: 1em;
|
20
|
+
$nav-v-background: transparent;
|
21
|
+
$nav-v-color: $accent-light-darkest;
|
22
|
+
$nav-v-background-hover: transparent;
|
23
|
+
$nav-v-color-hover: $primary;
|
24
|
+
|
25
|
+
// filters
|
26
|
+
$nav-f-padding: 0.5em;
|
27
|
+
$nav-f-font-size: 0.9em;
|
28
|
+
$nav-f-background: transparent;
|
29
|
+
$nav-f-color: $primary;
|
30
|
+
$nav-f-background-hover: $primary;
|
31
|
+
$nav-f-color-hover: $accent-light;
|
32
|
+
|
33
|
+
// breadcrumbs
|
34
|
+
$nav-b-padding: 0.5em;
|
35
|
+
$nav-b-font-size: 0.9em;
|
36
|
+
$nav-b-background: transparent;
|
37
|
+
$nav-b-color: $primary-light;
|
38
|
+
$nav-b-background-hover: transparent;
|
39
|
+
$nav-b-color-hover: $primary;
|
40
|
+
$nav-b-separator: " \002F ";
|
@@ -0,0 +1,61 @@
|
|
1
|
+
// apply to all headings
|
2
|
+
$heading-margin: $default-margin;
|
3
|
+
$heading-color: $font;
|
4
|
+
$heading-caps: false;
|
5
|
+
$heading-font-weight: 600;
|
6
|
+
|
7
|
+
// individual headings
|
8
|
+
$h1-font-size: 2.75em;
|
9
|
+
$h2-font-size: 2.4em;
|
10
|
+
$h3-font-size: 2.05em;
|
11
|
+
$h4-font-size: 1.7em;
|
12
|
+
$h5-font-size: 1.35em;
|
13
|
+
$h6-font-size: 1.0em;
|
14
|
+
|
15
|
+
// subheadings
|
16
|
+
$subheading-color: $accent-dark-lightest;
|
17
|
+
$subheading-font-weight: 200;
|
18
|
+
$subheading-size-factor: 0.75;
|
19
|
+
|
20
|
+
// small headings
|
21
|
+
$heading-small-factor: 60%;
|
22
|
+
$heading-small-color: $subheading-color;
|
23
|
+
|
24
|
+
// body copy
|
25
|
+
$paragraph-font: $default-font-size;
|
26
|
+
$paragraph-font-weight: $default-font-weight;
|
27
|
+
$paragraph-margin: $default-margin;
|
28
|
+
$paragraph-line-height: $default-line-height;
|
29
|
+
$paragraph-color: $font;
|
30
|
+
|
31
|
+
// blockquotes
|
32
|
+
$blockquote-padding: 0.25em 0.75em;
|
33
|
+
$blockquote-margin: $default-margin;
|
34
|
+
$blockquote-background: $accent-light;
|
35
|
+
$blockquote-border-left: 7.5px solid $accent-light-dark;
|
36
|
+
$blockquote-font-size: $default-font-size;
|
37
|
+
|
38
|
+
// links
|
39
|
+
$link-color: $primary;
|
40
|
+
$link-underline: false;
|
41
|
+
$link-hover-color: $primary-darker;
|
42
|
+
$link-hover-underline: false;
|
43
|
+
|
44
|
+
// individual characters
|
45
|
+
$small-font-factor: 60%;
|
46
|
+
$big-font-factor: 140%;
|
47
|
+
$strong-font-weight: 600;
|
48
|
+
|
49
|
+
// unordered lists
|
50
|
+
$ul-margin-left-level-1: -20px;
|
51
|
+
$ul-margin-left-level-2: 0;
|
52
|
+
$ul-style-type: disc;
|
53
|
+
$ul-line-height: 1.5;
|
54
|
+
|
55
|
+
// ordered lists
|
56
|
+
$ol-margin-left-level-1: $ul-margin-left-level-1;
|
57
|
+
$ol-margin-left-level-2: $ul-margin-left-level-2;
|
58
|
+
$ol-line-height: $ul-line-height;
|
59
|
+
|
60
|
+
// horizontal lists
|
61
|
+
$ul-h-padding: 0.5em 1.25em;
|
@@ -0,0 +1,406 @@
|
|
1
|
+
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
|
2
|
+
|
3
|
+
/* ==========================================================================
|
4
|
+
HTML5 display definitions
|
5
|
+
========================================================================== */
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Correct `block` display not defined in IE 8/9.
|
9
|
+
*/
|
10
|
+
|
11
|
+
article,
|
12
|
+
aside,
|
13
|
+
details,
|
14
|
+
figcaption,
|
15
|
+
figure,
|
16
|
+
footer,
|
17
|
+
header,
|
18
|
+
hgroup,
|
19
|
+
main,
|
20
|
+
nav,
|
21
|
+
section,
|
22
|
+
summary {
|
23
|
+
display: block;
|
24
|
+
}
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Correct `inline-block` display not defined in IE 8/9.
|
28
|
+
*/
|
29
|
+
|
30
|
+
audio,
|
31
|
+
canvas,
|
32
|
+
video {
|
33
|
+
display: inline-block;
|
34
|
+
}
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Prevent modern browsers from displaying `audio` without controls.
|
38
|
+
* Remove excess height in iOS 5 devices.
|
39
|
+
*/
|
40
|
+
|
41
|
+
audio:not([controls]) {
|
42
|
+
display: none;
|
43
|
+
height: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Address `[hidden]` styling not present in IE 8/9.
|
48
|
+
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
49
|
+
*/
|
50
|
+
|
51
|
+
[hidden],
|
52
|
+
template {
|
53
|
+
display: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
/* ==========================================================================
|
57
|
+
Base
|
58
|
+
========================================================================== */
|
59
|
+
|
60
|
+
/**
|
61
|
+
* 1. Set default font family to sans-serif.
|
62
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
63
|
+
* user zoom.
|
64
|
+
*/
|
65
|
+
|
66
|
+
html {
|
67
|
+
font-family: sans-serif; /* 1 */
|
68
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
69
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Remove default margin.
|
74
|
+
*/
|
75
|
+
|
76
|
+
body {
|
77
|
+
margin: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
/* ==========================================================================
|
81
|
+
Links
|
82
|
+
========================================================================== */
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Remove the gray background color from active links in IE 10.
|
86
|
+
*/
|
87
|
+
|
88
|
+
a {
|
89
|
+
background: transparent;
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Address `outline` inconsistency between Chrome and other browsers.
|
94
|
+
*/
|
95
|
+
|
96
|
+
a:focus {
|
97
|
+
outline: thin dotted;
|
98
|
+
}
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Improve readability when focused and also mouse hovered in all browsers.
|
102
|
+
*/
|
103
|
+
|
104
|
+
a:active,
|
105
|
+
a:hover {
|
106
|
+
outline: 0;
|
107
|
+
}
|
108
|
+
|
109
|
+
/* ==========================================================================
|
110
|
+
Typography
|
111
|
+
========================================================================== */
|
112
|
+
|
113
|
+
/**
|
114
|
+
* Address variable `h1` font-size and margin within `section` and `article`
|
115
|
+
* contexts in Firefox 4+, Safari 5, and Chrome.
|
116
|
+
*/
|
117
|
+
|
118
|
+
h1 {
|
119
|
+
font-size: 2em;
|
120
|
+
margin: 0.67em 0;
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
125
|
+
*/
|
126
|
+
|
127
|
+
abbr[title] {
|
128
|
+
border-bottom: 1px dotted;
|
129
|
+
}
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
133
|
+
*/
|
134
|
+
|
135
|
+
b,
|
136
|
+
strong {
|
137
|
+
font-weight: bold;
|
138
|
+
}
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Address styling not present in Safari 5 and Chrome.
|
142
|
+
*/
|
143
|
+
|
144
|
+
dfn {
|
145
|
+
font-style: italic;
|
146
|
+
}
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Address differences between Firefox and other browsers.
|
150
|
+
*/
|
151
|
+
|
152
|
+
hr {
|
153
|
+
-moz-box-sizing: content-box;
|
154
|
+
box-sizing: content-box;
|
155
|
+
height: 0;
|
156
|
+
}
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Address styling not present in IE 8/9.
|
160
|
+
*/
|
161
|
+
|
162
|
+
mark {
|
163
|
+
background: #ff0;
|
164
|
+
color: #000;
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Correct font family set oddly in Safari 5 and Chrome.
|
169
|
+
*/
|
170
|
+
|
171
|
+
code,
|
172
|
+
kbd,
|
173
|
+
pre,
|
174
|
+
samp {
|
175
|
+
font-family: monospace, serif;
|
176
|
+
font-size: 1em;
|
177
|
+
}
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Improve readability of pre-formatted text in all browsers.
|
181
|
+
*/
|
182
|
+
|
183
|
+
pre {
|
184
|
+
white-space: pre-wrap;
|
185
|
+
}
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Set consistent quote types.
|
189
|
+
*/
|
190
|
+
|
191
|
+
q {
|
192
|
+
quotes: "\201C" "\201D" "\2018" "\2019";
|
193
|
+
}
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Address inconsistent and variable font size in all browsers.
|
197
|
+
*/
|
198
|
+
|
199
|
+
small {
|
200
|
+
font-size: 80%;
|
201
|
+
}
|
202
|
+
|
203
|
+
/**
|
204
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
205
|
+
*/
|
206
|
+
|
207
|
+
sub,
|
208
|
+
sup {
|
209
|
+
font-size: 75%;
|
210
|
+
line-height: 0;
|
211
|
+
position: relative;
|
212
|
+
vertical-align: baseline;
|
213
|
+
}
|
214
|
+
|
215
|
+
sup {
|
216
|
+
top: -0.5em;
|
217
|
+
}
|
218
|
+
|
219
|
+
sub {
|
220
|
+
bottom: -0.25em;
|
221
|
+
}
|
222
|
+
|
223
|
+
/* ==========================================================================
|
224
|
+
Embedded content
|
225
|
+
========================================================================== */
|
226
|
+
|
227
|
+
/**
|
228
|
+
* Remove border when inside `a` element in IE 8/9.
|
229
|
+
*/
|
230
|
+
|
231
|
+
img {
|
232
|
+
border: 0;
|
233
|
+
}
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Correct overflow displayed oddly in IE 9.
|
237
|
+
*/
|
238
|
+
|
239
|
+
svg:not(:root) {
|
240
|
+
overflow: hidden;
|
241
|
+
}
|
242
|
+
|
243
|
+
/* ==========================================================================
|
244
|
+
Figures
|
245
|
+
========================================================================== */
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Address margin not present in IE 8/9 and Safari 5.
|
249
|
+
*/
|
250
|
+
|
251
|
+
figure {
|
252
|
+
margin: 0;
|
253
|
+
}
|
254
|
+
|
255
|
+
/* ==========================================================================
|
256
|
+
Forms
|
257
|
+
========================================================================== */
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Define consistent border, margin, and padding.
|
261
|
+
*/
|
262
|
+
|
263
|
+
fieldset {
|
264
|
+
border: 1px solid #c0c0c0;
|
265
|
+
margin: 0 2px;
|
266
|
+
padding: 0.35em 0.625em 0.75em;
|
267
|
+
}
|
268
|
+
|
269
|
+
/**
|
270
|
+
* 1. Correct `color` not being inherited in IE 8/9.
|
271
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
272
|
+
*/
|
273
|
+
|
274
|
+
legend {
|
275
|
+
border: 0; /* 1 */
|
276
|
+
padding: 0; /* 2 */
|
277
|
+
}
|
278
|
+
|
279
|
+
/**
|
280
|
+
* 1. Correct font family not being inherited in all browsers.
|
281
|
+
* 2. Correct font size not being inherited in all browsers.
|
282
|
+
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
283
|
+
*/
|
284
|
+
|
285
|
+
button,
|
286
|
+
input,
|
287
|
+
select,
|
288
|
+
textarea {
|
289
|
+
font-family: inherit; /* 1 */
|
290
|
+
font-size: 100%; /* 2 */
|
291
|
+
margin: 0; /* 3 */
|
292
|
+
}
|
293
|
+
|
294
|
+
/**
|
295
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
296
|
+
* the UA stylesheet.
|
297
|
+
*/
|
298
|
+
|
299
|
+
button,
|
300
|
+
input {
|
301
|
+
line-height: normal;
|
302
|
+
}
|
303
|
+
|
304
|
+
/**
|
305
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
306
|
+
* All other form control elements do not inherit `text-transform` values.
|
307
|
+
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
308
|
+
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
309
|
+
*/
|
310
|
+
|
311
|
+
button,
|
312
|
+
select {
|
313
|
+
text-transform: none;
|
314
|
+
}
|
315
|
+
|
316
|
+
/**
|
317
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
318
|
+
* and `video` controls.
|
319
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
320
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
321
|
+
* `input` and others.
|
322
|
+
*/
|
323
|
+
|
324
|
+
button,
|
325
|
+
html input[type="button"], /* 1 */
|
326
|
+
input[type="reset"],
|
327
|
+
input[type="submit"] {
|
328
|
+
-webkit-appearance: button; /* 2 */
|
329
|
+
cursor: pointer; /* 3 */
|
330
|
+
}
|
331
|
+
|
332
|
+
/**
|
333
|
+
* Re-set default cursor for disabled elements.
|
334
|
+
*/
|
335
|
+
|
336
|
+
button[disabled],
|
337
|
+
html input[disabled] {
|
338
|
+
cursor: default;
|
339
|
+
}
|
340
|
+
|
341
|
+
/**
|
342
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
343
|
+
* 2. Remove excess padding in IE 8/9/10.
|
344
|
+
*/
|
345
|
+
|
346
|
+
input[type="checkbox"],
|
347
|
+
input[type="radio"] {
|
348
|
+
box-sizing: border-box; /* 1 */
|
349
|
+
padding: 0; /* 2 */
|
350
|
+
}
|
351
|
+
|
352
|
+
/**
|
353
|
+
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
354
|
+
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
355
|
+
* (include `-moz` to future-proof).
|
356
|
+
*/
|
357
|
+
|
358
|
+
input[type="search"] {
|
359
|
+
-webkit-appearance: textfield; /* 1 */
|
360
|
+
-moz-box-sizing: content-box;
|
361
|
+
-webkit-box-sizing: content-box; /* 2 */
|
362
|
+
box-sizing: content-box;
|
363
|
+
}
|
364
|
+
|
365
|
+
/**
|
366
|
+
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
367
|
+
* on OS X.
|
368
|
+
*/
|
369
|
+
|
370
|
+
input[type="search"]::-webkit-search-cancel-button,
|
371
|
+
input[type="search"]::-webkit-search-decoration {
|
372
|
+
-webkit-appearance: none;
|
373
|
+
}
|
374
|
+
|
375
|
+
/**
|
376
|
+
* Remove inner padding and border in Firefox 4+.
|
377
|
+
*/
|
378
|
+
|
379
|
+
button::-moz-focus-inner,
|
380
|
+
input::-moz-focus-inner {
|
381
|
+
border: 0;
|
382
|
+
padding: 0;
|
383
|
+
}
|
384
|
+
|
385
|
+
/**
|
386
|
+
* 1. Remove default vertical scrollbar in IE 8/9.
|
387
|
+
* 2. Improve readability and alignment in all browsers.
|
388
|
+
*/
|
389
|
+
|
390
|
+
textarea {
|
391
|
+
overflow: auto; /* 1 */
|
392
|
+
vertical-align: top; /* 2 */
|
393
|
+
}
|
394
|
+
|
395
|
+
/* ==========================================================================
|
396
|
+
Tables
|
397
|
+
========================================================================== */
|
398
|
+
|
399
|
+
/**
|
400
|
+
* Remove most spacing between table cells.
|
401
|
+
*/
|
402
|
+
|
403
|
+
table {
|
404
|
+
border-collapse: collapse;
|
405
|
+
border-spacing: 0;
|
406
|
+
}
|