fones 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/.rspec +1 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +28 -0
- data/Gemfile.lock +108 -0
- data/LICENSE +20 -0
- data/README.md +61 -0
- data/Rakefile +54 -0
- data/VERSION +1 -0
- data/bin/fones +12 -0
- data/features/step_definitions/fones_steps.rb +38 -0
- data/features/support/env.rb +17 -0
- data/fones.gemspec +187 -0
- data/layouts/config/config.tt +19 -0
- data/layouts/default/css/_1030up.scss.erb +8 -0
- data/layouts/default/css/_1240up.scss.erb +8 -0
- data/layouts/default/css/_2x.scss.erb +40 -0
- data/layouts/default/css/_481up.scss.erb +109 -0
- data/layouts/default/css/_768up.scss.erb +280 -0
- data/layouts/default/css/_base.scss.erb +836 -0
- data/layouts/default/css/_grid.scss.erb +48 -0
- data/layouts/default/css/_header.scss.erb +18 -0
- data/layouts/default/css/_mixins.scss.erb +248 -0
- data/layouts/default/css/_normalize.scss.erb +536 -0
- data/layouts/default/css/_print.scss.erb +80 -0
- data/layouts/default/css/ie.scss.erb +52 -0
- data/layouts/default/css/login.scss.erb +65 -0
- data/layouts/default/css/style.css.scss.erb +111 -0
- data/layouts/default/functions/functions.php.erb +166 -0
- data/layouts/default/functions/library/admin.php.erb +131 -0
- data/layouts/default/functions/library/bones.php.erb +397 -0
- data/layouts/default/functions/library/custom-post-type.php.erb +122 -0
- data/layouts/default/functions/library/translation/README +18 -0
- data/layouts/default/functions/library/translation/da_DK.po +374 -0
- data/layouts/default/functions/library/translation/de_DE.po +385 -0
- data/layouts/default/functions/library/translation/default.po +372 -0
- data/layouts/default/functions/library/translation/es_ES.po +380 -0
- data/layouts/default/functions/library/translation/fr_FR.po +579 -0
- data/layouts/default/functions/library/translation/he_IL.po +382 -0
- data/layouts/default/functions/library/translation/hr.po +548 -0
- data/layouts/default/functions/library/translation/it_IT.po +376 -0
- data/layouts/default/functions/library/translation/ja.po +492 -0
- data/layouts/default/functions/library/translation/nb_NO.po +380 -0
- data/layouts/default/functions/library/translation/nl_NL.po +376 -0
- data/layouts/default/functions/library/translation/pl_PL.po +371 -0
- data/layouts/default/functions/library/translation/pt_PT.po +376 -0
- data/layouts/default/functions/library/translation/ru_RU.po +358 -0
- data/layouts/default/functions/library/translation/sv_SE.po +380 -0
- data/layouts/default/functions/library/translation/translation.php.erb +18 -0
- data/layouts/default/functions/library/translation/zh_CN.po +382 -0
- data/layouts/default/img/apple-icon-touch.png +0 -0
- data/layouts/default/img/custom-post-icon.png +0 -0
- data/layouts/default/img/favicon.ico +0 -0
- data/layouts/default/img/favicon.png +0 -0
- data/layouts/default/img/login-logo.png +0 -0
- data/layouts/default/img/nothing.gif +0 -0
- data/layouts/default/img/nothumb.gif +0 -0
- data/layouts/default/img/screenshot.png +0 -0
- data/layouts/default/img/win8-tile-icon.png +0 -0
- data/layouts/default/js/admin.js +1 -0
- data/layouts/default/js/libs/modernizr.custom.min.js +4 -0
- data/layouts/default/js/scripts.js +108 -0
- data/layouts/default/js/theme.js +2 -0
- data/layouts/default/templates/404.php.erb +43 -0
- data/layouts/default/templates/archive-custom_type.php.erb +73 -0
- data/layouts/default/templates/archive.php.erb +108 -0
- data/layouts/default/templates/attachment.php.erb +32 -0
- data/layouts/default/templates/comments.php.erb +121 -0
- data/layouts/default/templates/footer.php.erb +22 -0
- data/layouts/default/templates/header.php.erb +63 -0
- data/layouts/default/templates/index.php.erb +72 -0
- data/layouts/default/templates/page-custom.php.erb +66 -0
- data/layouts/default/templates/page.php.erb +60 -0
- data/layouts/default/templates/search.php.erb +71 -0
- data/layouts/default/templates/sidebar.php.erb +17 -0
- data/layouts/default/templates/single-custom_type.php.erb +78 -0
- data/layouts/default/templates/single.php.erb +61 -0
- data/layouts/default/templates/taxonomy-custom_cat.php.erb +87 -0
- data/lib/fones.rb +11 -0
- data/lib/forge/builder.rb +269 -0
- data/lib/forge/cli.rb +86 -0
- data/lib/forge/config.rb +61 -0
- data/lib/forge/engines.rb +12 -0
- data/lib/forge/error.rb +8 -0
- data/lib/forge/generator.rb +144 -0
- data/lib/forge/guard.rb +65 -0
- data/lib/forge/project.rb +162 -0
- data/lib/forge/version.rb +3 -0
- data/lib/guard/forge/assets.rb +31 -0
- data/lib/guard/forge/config.rb +34 -0
- data/lib/guard/forge/functions.rb +33 -0
- data/lib/guard/forge/templates.rb +28 -0
- data/pkg/fones-0.1.0.gem +0 -0
- data/spec/lib/forge/config_spec.rb +79 -0
- data/spec/lib/forge/project_spec.rb +34 -0
- data/spec/spec_helper.rb +13 -0
- metadata +437 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/******************************************************************
|
|
2
|
+
|
|
3
|
+
Stylesheet: Grid Stylesheet
|
|
4
|
+
|
|
5
|
+
I've seperated the grid so you can swap it out easily. It's
|
|
6
|
+
called at the top the style.scss stylesheet.
|
|
7
|
+
|
|
8
|
+
There are a ton of grid solutions out there. You should definitely
|
|
9
|
+
experiment with your own. Here are some recommendations:
|
|
10
|
+
|
|
11
|
+
http://gridsetapp.com - Love this site. Responsive Grids made easy.
|
|
12
|
+
http://susy.oddbird.net/ - Grids using Compass. Very elegant.
|
|
13
|
+
http://gridpak.com/ - Create your own responsive grid.
|
|
14
|
+
|
|
15
|
+
The grid below is a combination of the 1140 grid and Twitter Boostrap.
|
|
16
|
+
I liked 1140 but Boostrap's grid was way more detailed so I merged them
|
|
17
|
+
together, let's see how this works out. If you want to use 1140, the original
|
|
18
|
+
values are commented out on each line.
|
|
19
|
+
|
|
20
|
+
******************************************************************/
|
|
21
|
+
|
|
22
|
+
.onecol { width: 5.801104972%; } /* 4.85%; } /* grid_1 */
|
|
23
|
+
.twocol { width: 14.364640883%; } /* 13.45%; } /* grid_2 */
|
|
24
|
+
.threecol { width: 22.928176794%; } /* 22.05%; } /* grid_3 */
|
|
25
|
+
.fourcol { width: 31.491712705%; } /* 30.75%; } /* grid_4 */
|
|
26
|
+
.fivecol { width: 40.055248616%; } /* 39.45%; } /* grid_5 */
|
|
27
|
+
.sixcol { width: 48.618784527%; } /* 48%; } /* grid_6 */
|
|
28
|
+
.sevencol { width: 57.182320438000005%; } /* 56.75%; } /* grid_7 */
|
|
29
|
+
.eightcol { width: 65.74585634900001%; } /* 65.4%; } /* grid_8 */
|
|
30
|
+
.ninecol { width: 74.30939226%; } /* 74.05%; } /* grid_9 */
|
|
31
|
+
.tencol { width: 82.87292817100001%; } /* 82.7%; } /* grid_10 */
|
|
32
|
+
.elevencol { width: 91.436464082%; } /* 91.35%; } /* grid_11 */
|
|
33
|
+
.twelvecol { width: 99.999999993%; } /* 100%; } /* grid_12 */
|
|
34
|
+
|
|
35
|
+
// layout & column defaults
|
|
36
|
+
.onecol, .twocol, .threecol, .fourcol, .fivecol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol, .twelvecol {
|
|
37
|
+
position: relative;
|
|
38
|
+
float: left;
|
|
39
|
+
margin-left: 2.762430939%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.first {
|
|
43
|
+
margin-left: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.last {
|
|
47
|
+
float: right;
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme Name: <%= config[:name] %>
|
|
3
|
+
* Theme URI: <%= config[:uri] %>
|
|
4
|
+
* Author: <%= config[:author] %>
|
|
5
|
+
* Author URI: <%= config[:author_uri] %>
|
|
6
|
+
* Description: <%= config[:description] if config[:description] %>
|
|
7
|
+
* Version: <%= config[:version_number] if config[:version_number] %>
|
|
8
|
+
<% if config[:template] -%>
|
|
9
|
+
* Template: <%= config[:template] %>
|
|
10
|
+
<% end -%>
|
|
11
|
+
* License: <%= config[:license_name] if config[:license_name] %>
|
|
12
|
+
* License URI: <%= config[:license_uri] if config[:license_uri] %>
|
|
13
|
+
* Tags: <%= config[:tags].join(", ") if config[:tags] %>
|
|
14
|
+
<%- unless config[:comments].nil? || config[:comments].empty? -%>
|
|
15
|
+
*
|
|
16
|
+
* <%= config[:comments] %>
|
|
17
|
+
<%- end -%>
|
|
18
|
+
*/
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/******************************************************************
|
|
2
|
+
|
|
3
|
+
Stylesheet: Mixins & Constants Stylesheet
|
|
4
|
+
|
|
5
|
+
This is where you can take advantage of Sass' great features:
|
|
6
|
+
Mixins & Constants. I won't go in-depth on how they work exactly,
|
|
7
|
+
there are a few articles below that will help do that. What I will
|
|
8
|
+
tell you is that this will help speed up simple changes like
|
|
9
|
+
changing a color or adding CSS3 techniques gradients.
|
|
10
|
+
|
|
11
|
+
A WORD OF WARNING: It's very easy to overdo it here. Be careful and
|
|
12
|
+
remember less is more.
|
|
13
|
+
|
|
14
|
+
******************************************************************/
|
|
15
|
+
|
|
16
|
+
/*********************
|
|
17
|
+
CLEARFIXIN'
|
|
18
|
+
*********************/
|
|
19
|
+
|
|
20
|
+
// Contain floats: nicolasgallagher.com/micro-clearfix-hack/
|
|
21
|
+
.clearfix {
|
|
22
|
+
zoom: 1;
|
|
23
|
+
&:before, &:after { content: ""; display: table; }
|
|
24
|
+
&:after { clear: both; }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/*********************
|
|
28
|
+
TOOLS
|
|
29
|
+
*********************/
|
|
30
|
+
|
|
31
|
+
// BORDER-BOX ALL THE THINGS! (http://paulirish.com/2012/box-sizing-border-box-ftw/)
|
|
32
|
+
* {
|
|
33
|
+
-webkit-box-sizing: border-box;
|
|
34
|
+
-moz-box-sizing: border-box;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
|
|
39
|
+
.image-replacement {
|
|
40
|
+
text-indent: 100%;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/*********************
|
|
47
|
+
COLORS
|
|
48
|
+
Need help w/ choosing your colors? Try this site out:
|
|
49
|
+
http://0to255.com/
|
|
50
|
+
*********************/
|
|
51
|
+
|
|
52
|
+
$alert-yellow: #ebe16f;
|
|
53
|
+
$alert-red: #fbe3e4;
|
|
54
|
+
$alert-green: #e6efc2;
|
|
55
|
+
$alert-blue: #d5edf8;
|
|
56
|
+
|
|
57
|
+
$black: #000;
|
|
58
|
+
$white: #fff;
|
|
59
|
+
|
|
60
|
+
$bones-pink: #f01d4f;
|
|
61
|
+
$bones-blue: #1990db;
|
|
62
|
+
|
|
63
|
+
$link-color: $bones-pink;
|
|
64
|
+
$link-hover: darken($link-color, 9%);
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
Here's a great tutorial on how to
|
|
68
|
+
use color variables properly:
|
|
69
|
+
http://sachagreif.com/sass-color-variables/
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/*********************
|
|
74
|
+
TYPOGRAPHY
|
|
75
|
+
*********************/
|
|
76
|
+
|
|
77
|
+
$sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
78
|
+
$serif: "Georgia", Cambria, Times New Roman, Times, serif;
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/* To embed your own fonts, use this syntax
|
|
82
|
+
and place your fonts inside the
|
|
83
|
+
library/fonts folder. For more information
|
|
84
|
+
on embedding fonts, go to:
|
|
85
|
+
http://www.fontsquirrel.com/
|
|
86
|
+
Be sure to remove the comment brackets.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/* @font-face {
|
|
90
|
+
font-family: 'Font Name';
|
|
91
|
+
src: url('library/fonts/font-name.eot');
|
|
92
|
+
src: url('library/fonts/font-name.eot?#iefix') format('embedded-opentype'),
|
|
93
|
+
url('library/fonts/font-name.woff') format('woff'),
|
|
94
|
+
url('library/fonts/font-name.ttf') format('truetype'),
|
|
95
|
+
url('library/fonts/font-name.svg#font-name') format('svg');
|
|
96
|
+
font-weight: normal;
|
|
97
|
+
font-style: normal;
|
|
98
|
+
}
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/*
|
|
102
|
+
use the best ampersand
|
|
103
|
+
http://simplebits.com/notebook/2008/08/14/ampersands-2/
|
|
104
|
+
*/
|
|
105
|
+
span.amp {
|
|
106
|
+
font-family: Baskerville,'Goudy Old Style',Palatino,'Book Antiqua',serif !important;
|
|
107
|
+
font-style: italic;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// text alignment
|
|
111
|
+
.text-left { text-align: left; }
|
|
112
|
+
.text-center { text-align: center; }
|
|
113
|
+
.text-right { text-align: right; }
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
// alerts and notices
|
|
117
|
+
%alert {
|
|
118
|
+
margin: 10px;
|
|
119
|
+
padding: 5px 18px;
|
|
120
|
+
border: 1px solid;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.alert-help {
|
|
124
|
+
@extend %alert;
|
|
125
|
+
border-color: darken($alert-yellow, 5%);
|
|
126
|
+
background: $alert-yellow;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.alert-info {
|
|
130
|
+
@extend %alert;
|
|
131
|
+
border-color: darken($alert-blue, 5%);
|
|
132
|
+
background: $alert-blue;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.alert-error {
|
|
136
|
+
@extend %alert;
|
|
137
|
+
border-color: darken($alert-red, 5%);
|
|
138
|
+
background: $alert-red;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.alert-success {
|
|
142
|
+
@extend %alert;
|
|
143
|
+
border-color: darken($alert-green, 5%);
|
|
144
|
+
background: $alert-green;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/*********************
|
|
148
|
+
TRANSITION
|
|
149
|
+
*********************/
|
|
150
|
+
|
|
151
|
+
/*
|
|
152
|
+
I totally rewrote this to be cleaner and easier to use.
|
|
153
|
+
You'll need to be using Sass 3.2+ for these to work.
|
|
154
|
+
Thanks to @anthonyshort for the inspiration on these.
|
|
155
|
+
USAGE: @include transition(all 0.2s ease-in-out);
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
@mixin transition($transition...) {
|
|
159
|
+
// defining prefixes so we can use them in mixins below
|
|
160
|
+
$prefixes: ("-webkit", "-ms", "-o", "");
|
|
161
|
+
@each $prefix in $prefixes {
|
|
162
|
+
#{$prefix}-transition: $transition;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
transition: $transition;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/*********************
|
|
169
|
+
CSS3 GRADIENTS
|
|
170
|
+
Be careful with these since they can
|
|
171
|
+
really slow down your CSS. Don't overdo it.
|
|
172
|
+
*********************/
|
|
173
|
+
|
|
174
|
+
/* @include css-gradient(#dfdfdf,#f8f8f8); */
|
|
175
|
+
@mixin css-gradient($from: #dfdfdf, $to: #f8f8f8) {
|
|
176
|
+
background-color: $to;
|
|
177
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from($from), to($to));
|
|
178
|
+
background-image: -webkit-linear-gradient(top, $from, $to);
|
|
179
|
+
background-image: -moz-linear-gradient(top, $from, $to);
|
|
180
|
+
background-image: -o-linear-gradient(top, $from, $to);
|
|
181
|
+
background-image: linear-gradient(to bottom, $from, $to);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/*********************
|
|
185
|
+
BOX SIZING
|
|
186
|
+
*********************/
|
|
187
|
+
|
|
188
|
+
/* @include box-sizing(border-box); */
|
|
189
|
+
/* NOTE: value of "padding-box" is only supported in Gecko. So
|
|
190
|
+
probably best not to use it. I mean, were you going to anyway? */
|
|
191
|
+
@mixin box-sizing($type: border-box) {
|
|
192
|
+
-webkit-box-sizing: $type;
|
|
193
|
+
-moz-box-sizing: $type;
|
|
194
|
+
-ms-box-sizing: $type;
|
|
195
|
+
box-sizing: $type;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
/*********************
|
|
200
|
+
BUTTONS
|
|
201
|
+
*********************/
|
|
202
|
+
|
|
203
|
+
.button, .button:visited {
|
|
204
|
+
font-family: $sans-serif;
|
|
205
|
+
border: 1px solid darken($link-color, 13%);
|
|
206
|
+
border-top-color: darken($link-color, 7%);
|
|
207
|
+
border-left-color: darken($link-color, 7%);
|
|
208
|
+
padding: 4px 12px;
|
|
209
|
+
color: $white;
|
|
210
|
+
display: inline-block;
|
|
211
|
+
font-size: 11px;
|
|
212
|
+
font-weight: bold;
|
|
213
|
+
text-decoration: none;
|
|
214
|
+
text-shadow: 0 1px rgba(0,0,0, .75);
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
margin-bottom: 20px;
|
|
217
|
+
line-height: 21px;
|
|
218
|
+
border-radius: 4px;
|
|
219
|
+
@include css-gradient($link-color, darken($link-color, 5%));
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
&:hover, &:focus {
|
|
223
|
+
color: $white;
|
|
224
|
+
border: 1px solid darken($link-color, 13%);
|
|
225
|
+
border-top-color: darken($link-color, 20%);
|
|
226
|
+
border-left-color: darken($link-color, 20%);
|
|
227
|
+
@include css-gradient(darken($link-color, 5%), darken($link-color, 10%));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&:active {
|
|
231
|
+
@include css-gradient(darken($link-color, 5%), $link-color);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.blue-button, .blue-button:visited {
|
|
236
|
+
border-color: darken($bones-blue, 10%);
|
|
237
|
+
text-shadow: 0 1px 1px darken($bones-blue, 10%);
|
|
238
|
+
@include css-gradient( $bones-blue, darken($bones-blue, 5%) );
|
|
239
|
+
box-shadow: inset 0 0 3px lighten($bones-blue, 16%);
|
|
240
|
+
|
|
241
|
+
&:hover, &:focus {
|
|
242
|
+
border-color: darken($bones-blue, 15%);
|
|
243
|
+
@include css-gradient( darken($bones-blue, 4%), darken($bones-blue, 10%) );
|
|
244
|
+
}
|
|
245
|
+
&:active {
|
|
246
|
+
@include css-gradient( darken($bones-blue, 5%), $bones-blue );
|
|
247
|
+
}
|
|
248
|
+
}
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
/*! normalize.css 2012-07-07T09:50 UTC - http://github.com/necolas/normalize.css */
|
|
2
|
+
|
|
3
|
+
/* ==========================================================================
|
|
4
|
+
HTML5 display definitions
|
|
5
|
+
========================================================================== */
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Corrects `block` display not defined in IE6/7/8/9 & FF3.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
article,
|
|
12
|
+
aside,
|
|
13
|
+
details,
|
|
14
|
+
figcaption,
|
|
15
|
+
figure,
|
|
16
|
+
footer,
|
|
17
|
+
header,
|
|
18
|
+
hgroup,
|
|
19
|
+
nav,
|
|
20
|
+
section,
|
|
21
|
+
summary {
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/*
|
|
26
|
+
* Corrects `inline-block` display not defined in IE6/7/8/9 & FF3.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
audio,
|
|
30
|
+
canvas,
|
|
31
|
+
video {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
*display: inline;
|
|
34
|
+
*zoom: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
* Prevents modern browsers from displaying `audio` without controls.
|
|
39
|
+
* Remove excess height in iOS5 devices.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
audio:not([controls]) {
|
|
43
|
+
display: none;
|
|
44
|
+
height: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
* Addresses styling for `hidden` attribute not present in IE7/8/9, FF3, S4.
|
|
49
|
+
* Known issue: no IE6 support.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
[hidden] {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ==========================================================================
|
|
57
|
+
Base
|
|
58
|
+
========================================================================== */
|
|
59
|
+
|
|
60
|
+
/*
|
|
61
|
+
* 1. Corrects text resizing oddly in IE6/7 when body `font-size` is set using
|
|
62
|
+
* `em` units.
|
|
63
|
+
* 2. Prevents iOS text size adjust after orientation change, without disabling
|
|
64
|
+
* user zoom.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
html {
|
|
68
|
+
font-size: 100%; /* 1 */
|
|
69
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
70
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
* Addresses `font-family` inconsistency between `textarea` and other form
|
|
75
|
+
* elements.
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
html,
|
|
79
|
+
button,
|
|
80
|
+
input,
|
|
81
|
+
select,
|
|
82
|
+
textarea {
|
|
83
|
+
font-family: sans-serif;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/*
|
|
87
|
+
* Addresses margins handled incorrectly in IE6/7.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
body {
|
|
91
|
+
margin: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* ==========================================================================
|
|
95
|
+
Links
|
|
96
|
+
========================================================================== */
|
|
97
|
+
|
|
98
|
+
/*
|
|
99
|
+
* Addresses `outline` inconsistency between Chrome and other browsers.
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
a:focus {
|
|
103
|
+
outline: thin dotted;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/*
|
|
107
|
+
* Improves readability when focused and also mouse hovered in all browsers.
|
|
108
|
+
* people.opera.com/patrickl/experiments/keyboard/test
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
a:active,
|
|
112
|
+
a:hover {
|
|
113
|
+
outline: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* ==========================================================================
|
|
117
|
+
Typography
|
|
118
|
+
========================================================================== */
|
|
119
|
+
|
|
120
|
+
/*
|
|
121
|
+
* Addresses font sizes and margins set differently in IE6/7.
|
|
122
|
+
* Addresses font sizes within `section` and `article` in FF4+, Chrome, S5.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
h1 {
|
|
126
|
+
font-size: 2em;
|
|
127
|
+
margin: 0.67em 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
h2 {
|
|
131
|
+
font-size: 1.5em;
|
|
132
|
+
margin: 0.83em 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
h3 {
|
|
136
|
+
font-size: 1.17em;
|
|
137
|
+
margin: 1em 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
h4 {
|
|
141
|
+
font-size: 1em;
|
|
142
|
+
margin: 1.33em 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
h5 {
|
|
146
|
+
font-size: 0.83em;
|
|
147
|
+
margin: 1.67em 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
h6 {
|
|
151
|
+
font-size: 0.75em;
|
|
152
|
+
margin: 2.33em 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/*
|
|
156
|
+
* Addresses styling not present in IE7/8/9, S5, Chrome.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
abbr[title] {
|
|
160
|
+
border-bottom: 1px dotted;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/*
|
|
164
|
+
* Addresses style set to `bolder` in FF3+, S4/5, Chrome.
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
b,
|
|
168
|
+
strong {
|
|
169
|
+
font-weight: bold;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
blockquote {
|
|
173
|
+
margin: 1em 40px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/*
|
|
177
|
+
* Addresses styling not present in S5, Chrome.
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
dfn {
|
|
181
|
+
font-style: italic;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/*
|
|
185
|
+
* Addresses styling not present in IE6/7/8/9.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
mark {
|
|
189
|
+
background: #ff0;
|
|
190
|
+
color: #000;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/*
|
|
194
|
+
* Addresses margins set differently in IE6/7.
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
p,
|
|
198
|
+
pre {
|
|
199
|
+
margin: 1em 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/*
|
|
203
|
+
* Corrects font family set oddly in IE6, S4/5, Chrome.
|
|
204
|
+
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
code,
|
|
208
|
+
kbd,
|
|
209
|
+
pre,
|
|
210
|
+
samp {
|
|
211
|
+
font-family: monospace, serif;
|
|
212
|
+
_font-family: 'courier new', monospace;
|
|
213
|
+
font-size: 1em;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/*
|
|
217
|
+
* Improves readability of pre-formatted text in all browsers.
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
pre {
|
|
221
|
+
white-space: pre;
|
|
222
|
+
white-space: pre-wrap;
|
|
223
|
+
word-wrap: break-word;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/*
|
|
227
|
+
* Addresses CSS quotes not supported in IE6/7.
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
q {
|
|
231
|
+
quotes: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/*
|
|
235
|
+
* Addresses `quotes` property not supported in S4.
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
q:before,
|
|
239
|
+
q:after {
|
|
240
|
+
content: '';
|
|
241
|
+
content: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
small {
|
|
245
|
+
font-size: 75%;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/*
|
|
249
|
+
* Prevents `sub` and `sup` affecting `line-height` in all browsers.
|
|
250
|
+
* gist.github.com/413930
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
sub,
|
|
254
|
+
sup {
|
|
255
|
+
font-size: 75%;
|
|
256
|
+
line-height: 0;
|
|
257
|
+
position: relative;
|
|
258
|
+
vertical-align: baseline;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
sup {
|
|
262
|
+
top: -0.5em;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
sub {
|
|
266
|
+
bottom: -0.25em;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* ==========================================================================
|
|
270
|
+
Lists
|
|
271
|
+
========================================================================== */
|
|
272
|
+
|
|
273
|
+
/*
|
|
274
|
+
* Addresses margins set differently in IE6/7.
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
dl,
|
|
278
|
+
menu,
|
|
279
|
+
ol,
|
|
280
|
+
ul {
|
|
281
|
+
margin: 1em 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
dd {
|
|
285
|
+
margin: 0 0 0 40px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/*
|
|
289
|
+
* Addresses paddings set differently in IE6/7.
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
menu,
|
|
293
|
+
ol,
|
|
294
|
+
ul {
|
|
295
|
+
padding: 0 0 0 40px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/*
|
|
299
|
+
* Corrects list images handled incorrectly in IE7.
|
|
300
|
+
*/
|
|
301
|
+
|
|
302
|
+
nav ul,
|
|
303
|
+
nav ol {
|
|
304
|
+
list-style: none;
|
|
305
|
+
list-style-image: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* ==========================================================================
|
|
309
|
+
Embedded content
|
|
310
|
+
========================================================================== */
|
|
311
|
+
|
|
312
|
+
/*
|
|
313
|
+
* 1. Removes border when inside `a` element in IE6/7/8/9, FF3.
|
|
314
|
+
* 2. Improves image quality when scaled in IE7.
|
|
315
|
+
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
|
316
|
+
*/
|
|
317
|
+
|
|
318
|
+
img {
|
|
319
|
+
border: 0; /* 1 */
|
|
320
|
+
-ms-interpolation-mode: bicubic; /* 2 */
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/*
|
|
324
|
+
* Corrects overflow displayed oddly in IE9.
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
svg:not(:root) {
|
|
328
|
+
overflow: hidden;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* ==========================================================================
|
|
332
|
+
Figures
|
|
333
|
+
========================================================================== */
|
|
334
|
+
|
|
335
|
+
/*
|
|
336
|
+
* Addresses margin not present in IE6/7/8/9, S5, O11.
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
figure {
|
|
340
|
+
margin: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* ==========================================================================
|
|
344
|
+
Forms
|
|
345
|
+
========================================================================== */
|
|
346
|
+
|
|
347
|
+
/*
|
|
348
|
+
* Corrects margin displayed oddly in IE6/7.
|
|
349
|
+
*/
|
|
350
|
+
|
|
351
|
+
form {
|
|
352
|
+
margin: 0;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/*
|
|
356
|
+
* Define consistent border, margin, and padding.
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
fieldset {
|
|
360
|
+
border: 1px solid #c0c0c0;
|
|
361
|
+
margin: 0 2px;
|
|
362
|
+
padding: 0.35em 0.625em 0.75em;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/*
|
|
366
|
+
* 1. Corrects color not being inherited in IE6/7/8/9.
|
|
367
|
+
* 2. Corrects text not wrapping in FF3.
|
|
368
|
+
* 3. Corrects alignment displayed oddly in IE6/7.
|
|
369
|
+
*/
|
|
370
|
+
|
|
371
|
+
legend {
|
|
372
|
+
border: 0; /* 1 */
|
|
373
|
+
padding: 0;
|
|
374
|
+
white-space: normal; /* 2 */
|
|
375
|
+
*margin-left: -7px; /* 3 */
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/*
|
|
379
|
+
* 1. Corrects font size not being inherited in all browsers.
|
|
380
|
+
* 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome.
|
|
381
|
+
* 3. Improves appearance and consistency in all browsers.
|
|
382
|
+
*/
|
|
383
|
+
|
|
384
|
+
button,
|
|
385
|
+
input,
|
|
386
|
+
select,
|
|
387
|
+
textarea {
|
|
388
|
+
font-size: 100%; /* 1 */
|
|
389
|
+
margin: 0; /* 2 */
|
|
390
|
+
vertical-align: baseline; /* 3 */
|
|
391
|
+
*vertical-align: middle; /* 3 */
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/*
|
|
395
|
+
* Addresses FF3/4 setting `line-height` on `input` using `!important` in the
|
|
396
|
+
* UA stylesheet.
|
|
397
|
+
*/
|
|
398
|
+
|
|
399
|
+
button,
|
|
400
|
+
input {
|
|
401
|
+
line-height: normal;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/*
|
|
405
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
|
406
|
+
* and `video` controls.
|
|
407
|
+
* 2. Corrects inability to style clickable `input` types in iOS.
|
|
408
|
+
* 3. Improves usability and consistency of cursor style between image-type
|
|
409
|
+
* `input` and others.
|
|
410
|
+
* 4. Removes inner spacing in IE7 without affecting normal text inputs.
|
|
411
|
+
* Known issue: inner spacing remains in IE6.
|
|
412
|
+
*/
|
|
413
|
+
|
|
414
|
+
button,
|
|
415
|
+
html input[type="button"], /* 1 */
|
|
416
|
+
input[type="reset"],
|
|
417
|
+
input[type="submit"] {
|
|
418
|
+
-webkit-appearance: button; /* 2 */
|
|
419
|
+
cursor: pointer; /* 3 */
|
|
420
|
+
*overflow: visible; /* 4 */
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/*
|
|
424
|
+
* Re-set default cursor for disabled elements.
|
|
425
|
+
*/
|
|
426
|
+
|
|
427
|
+
button[disabled],
|
|
428
|
+
input[disabled] {
|
|
429
|
+
cursor: default;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/*
|
|
433
|
+
* 1. Addresses box sizing set to content-box in IE8/9.
|
|
434
|
+
* 2. Removes excess padding in IE8/9.
|
|
435
|
+
* 3. Removes excess padding in IE7.
|
|
436
|
+
* Known issue: excess padding remains in IE6.
|
|
437
|
+
*/
|
|
438
|
+
|
|
439
|
+
input[type="checkbox"],
|
|
440
|
+
input[type="radio"] {
|
|
441
|
+
box-sizing: border-box; /* 1 */
|
|
442
|
+
padding: 0; /* 2 */
|
|
443
|
+
*height: 13px; /* 3 */
|
|
444
|
+
*width: 13px; /* 3 */
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/*
|
|
448
|
+
* 1. Addresses `appearance` set to `searchfield` in S5, Chrome.
|
|
449
|
+
* 2. Addresses `box-sizing` set to `border-box` in S5, Chrome (include `-moz`
|
|
450
|
+
* to future-proof).
|
|
451
|
+
*/
|
|
452
|
+
|
|
453
|
+
input[type="search"] {
|
|
454
|
+
-webkit-appearance: textfield; /* 1 */
|
|
455
|
+
-moz-box-sizing: content-box;
|
|
456
|
+
-webkit-box-sizing: content-box; /* 2 */
|
|
457
|
+
box-sizing: content-box;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/*
|
|
461
|
+
* Removes inner padding and search cancel button in S5, Chrome on OS X.
|
|
462
|
+
*/
|
|
463
|
+
|
|
464
|
+
input[type="search"]::-webkit-search-cancel-button,
|
|
465
|
+
input[type="search"]::-webkit-search-decoration {
|
|
466
|
+
-webkit-appearance: none;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/*
|
|
470
|
+
* Removes inner padding and border in FF3+.
|
|
471
|
+
*/
|
|
472
|
+
|
|
473
|
+
button::-moz-focus-inner,
|
|
474
|
+
input::-moz-focus-inner {
|
|
475
|
+
border: 0;
|
|
476
|
+
padding: 0;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/*
|
|
480
|
+
* 1. Removes default vertical scrollbar in IE6/7/8/9.
|
|
481
|
+
* 2. Improves readability and alignment in all browsers.
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
textarea {
|
|
485
|
+
overflow: auto; /* 1 */
|
|
486
|
+
vertical-align: top; /* 2 */
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* ==========================================================================
|
|
490
|
+
Tables
|
|
491
|
+
========================================================================== */
|
|
492
|
+
|
|
493
|
+
/*
|
|
494
|
+
* Remove most spacing between table cells.
|
|
495
|
+
*/
|
|
496
|
+
|
|
497
|
+
table {
|
|
498
|
+
border-collapse: collapse;
|
|
499
|
+
border-spacing: 0;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/******************************************************************
|
|
503
|
+
CUSTOMIZED RESET VALUES
|
|
504
|
+
I added these extra styles as a more personalized reset. Feel free
|
|
505
|
+
to remove them if you like or add your own. If you want to update
|
|
506
|
+
the normalize styles, make sure to edit from this point up.
|
|
507
|
+
******************************************************************/
|
|
508
|
+
|
|
509
|
+
// proper formatting (http://blog.fontdeck.com/post/9037028497/hyphens)
|
|
510
|
+
p {
|
|
511
|
+
-webkit-hyphens: auto;
|
|
512
|
+
-epub-hyphens: auto;
|
|
513
|
+
-moz-hyphens: auto;
|
|
514
|
+
hyphens: auto;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
b, strong, .strong { font-weight: bold; }
|
|
518
|
+
|
|
519
|
+
dfn, em, .em { font-style: italic; }
|
|
520
|
+
|
|
521
|
+
small, .small { font-size: 75%; }
|
|
522
|
+
|
|
523
|
+
ul, ol {
|
|
524
|
+
padding: 0;
|
|
525
|
+
list-style-type: none;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
dd {
|
|
529
|
+
margin: 0;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.sidebar ul,
|
|
533
|
+
.sidebar ol,
|
|
534
|
+
.commentlist {
|
|
535
|
+
list-style: none;
|
|
536
|
+
}
|