coolstrap-generator 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/.gitignore +4 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Rakefile +6 -0
- data/bin/coolstrap +5 -0
- data/coolstrap-generator.gemspec +42 -0
- data/lib/.DS_Store +0 -0
- data/lib/coolstrap-generator.rb +39 -0
- data/lib/coolstrap-generator/.DS_Store +0 -0
- data/lib/coolstrap-generator/builder/middleman.rb +0 -0
- data/lib/coolstrap-generator/cli.rb +71 -0
- data/lib/coolstrap-generator/generate/project.rb +96 -0
- data/lib/coolstrap-generator/generate/view.rb +54 -0
- data/lib/coolstrap-generator/logger.rb +13 -0
- data/lib/coolstrap-generator/middleman/helpers.rb +176 -0
- data/lib/coolstrap-generator/templates/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/lib/coolstrap-generator/templates/app/assets/fonts/fontawesome-webfont.svg +255 -0
- data/lib/coolstrap-generator/templates/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/lib/coolstrap-generator/templates/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/arrow-list.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/arrow.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/menu.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/smatphone.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/smatphone@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/tablet-landscape.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/tablet-landscape@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/tablet-portrait.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/tablet-portrait@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/smatphone.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/smatphone@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/tablet-landscape.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/tablet-landscape@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/tablet-portrait.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/tablet-portrait@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/app.js +18 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/_Coolstrap.App.coffee +39 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/_Coolstrap.Console.coffee +49 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/_Coolstrap.Constants.coffee +89 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/_Coolstrap.js +13 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/build/_wrap-start.js +18 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/coolstrap-0.1.js +20 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/coolstrap-0.1.packed.js +23 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/fallback/_Coolstrap.Fallback.Android.coffee +53 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/fallback/_Coolstrap.Fallback.iOS.coffee +29 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/framework/_Coolstrap.Framework.Articles.coffee +34 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/framework/_Coolstrap.Framework.Dialogs.coffee +33 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/framework/_Coolstrap.Framework.Navigation.coffee +118 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/framework/_Coolstrap.Framework.Sections.coffee +60 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/lib/iscroll.js +1076 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/lib/modernizr-2.5.3.js +1265 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/lib/zepto-1.0rc1.js +1357 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/navigate/_Coolstrap.Navigate.History.coffee +164 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/navigate/_Coolstrap.Navigate.coffee +105 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/plugins/_Coolstrap.Plugins.coffee +157 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.Core.coffee +54 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.Platform.coffee +89 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.UI.coffee +96 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.coffee +41 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/view/_Coolstrap.View.Article.coffee +43 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/view/_Coolstrap.View.Aside.coffee +65 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/view/_Coolstrap.View.Dialog.coffee +129 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/view/_Coolstrap.View.Scroll.coffee +191 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/_structure.scss +8 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/coolstrap.css.scss +2 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/_components.scss +5 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/_layout.scss +4 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/_utilities.scss +6 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_dialog.scss +122 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_formelements.scss +89 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_listview.scss +76 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_navigations.scss +192 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_tools.scss +169 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/layout/_layers.scss +57 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/layout/_layout.scss +62 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/layout/_positions.scss +38 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/layout/_transitions.scss +35 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_animate.scss +63 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_helpers.scss +82 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_icons.scss +336 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_mixins.scss +45 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_reset.scss +367 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_variables.scss +176 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/themes/_default.scss +255 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/themes/coolstrap.css.scss +164 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/customtheme.css.scss +19 -0
- data/lib/coolstrap-generator/templates/app/components/_formelements.html.haml +130 -0
- data/lib/coolstrap-generator/templates/app/components/_tabbar.html.haml +343 -0
- data/lib/coolstrap-generator/templates/app/components/_toolbar.html.haml +463 -0
- data/lib/coolstrap-generator/templates/app/components/formelements.html.haml +196 -0
- data/lib/coolstrap-generator/templates/app/components/listview/_complexlistavatar.html.haml.erb +77 -0
- data/lib/coolstrap-generator/templates/app/components/listview/_simplelist.html.haml.erb +31 -0
- data/lib/coolstrap-generator/templates/app/components/tabbar.html.haml.erb +16 -0
- data/lib/coolstrap-generator/templates/app/components/toolbar.html.haml.erb +32 -0
- data/lib/coolstrap-generator/templates/app/index.html.haml.erb +21 -0
- data/lib/coolstrap-generator/templates/app/layout.haml.erb +79 -0
- data/lib/coolstrap-generator/templates/app/views/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/views/_home.haml.erb +31 -0
- data/lib/coolstrap-generator/templates/app/views/shared/_aside_onbottom.haml +2 -0
- data/lib/coolstrap-generator/templates/app/views/shared/_aside_onleft.haml +56 -0
- data/lib/coolstrap-generator/templates/app/views/shared/_aside_onright.haml +66 -0
- data/lib/coolstrap-generator/templates/app/views/shared/_aside_ontop.haml +19 -0
- data/lib/coolstrap-generator/templates/defaults/Gemfile.erb +3 -0
- data/lib/coolstrap-generator/templates/defaults/LICENSE.erb +1 -0
- data/lib/coolstrap-generator/templates/defaults/Readme.mkd.erb +1 -0
- data/lib/coolstrap-generator/templates/defaults/config.erb +42 -0
- data/lib/coolstrap-generator/templates/defaults/gitignore.erb +2 -0
- data/lib/coolstrap-generator/templates/rakefile +102 -0
- data/lib/coolstrap-generator/templates/specs/app_spec.coffee +3 -0
- data/lib/coolstrap-generator/utils.rb +82 -0
- data/lib/coolstrap-generator/version.rb +5 -0
- data/readme.md +107 -0
- data/spec/cli/command_spec.rb +88 -0
- data/spec/coolstrap-generator/generate/project_spec.rb +126 -0
- data/spec/coolstrap-generator/generate/view_spec.rb +26 -0
- data/spec/coolstrap-generator/logger_spec.rb +25 -0
- data/spec/coolstrap-generator/middleman/helpers_spec.rb +16 -0
- data/spec/coolstrap-generator/utils_spec.rb +120 -0
- data/spec/spec_helper.rb +39 -0
- metadata +321 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
@mixin setFixedPosition($position: $default-fixed-position, $size: $default-fixed-size) {
|
2
|
+
@if $position == top {
|
3
|
+
width: 100%;
|
4
|
+
height: $size;
|
5
|
+
max-height: $size;
|
6
|
+
}
|
7
|
+
@if $position == bottom {
|
8
|
+
width: 100%;
|
9
|
+
height: $size;
|
10
|
+
max-height: $size;
|
11
|
+
}
|
12
|
+
@else if $position == left {
|
13
|
+
width: $size;
|
14
|
+
max-width: $size;
|
15
|
+
height: 100%;
|
16
|
+
}
|
17
|
+
@else if $position == right {
|
18
|
+
width: $size;
|
19
|
+
max-width: $size;
|
20
|
+
height: 100%;
|
21
|
+
}
|
22
|
+
position: absolute;
|
23
|
+
#{$position}: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
@mixin setHeight() {
|
27
|
+
position: absolute;
|
28
|
+
width: 100% !important;
|
29
|
+
height: auto;
|
30
|
+
top: 0px;
|
31
|
+
bottom: 0px;
|
32
|
+
}
|
33
|
+
|
34
|
+
@mixin setFlexibleBox($orient: $default-box-orient, $align: $default-box-align, $pack: $default-box-pack, $direction: $default-box-direction) {
|
35
|
+
@include display-box;
|
36
|
+
@include box-orient($orient);
|
37
|
+
@include box-align($align);
|
38
|
+
@include box-pack($pack);
|
39
|
+
@include box-direction($direction);
|
40
|
+
}
|
41
|
+
|
42
|
+
@mixin square($size) {
|
43
|
+
width: $size;
|
44
|
+
height: $size;
|
45
|
+
}
|
@@ -0,0 +1,367 @@
|
|
1
|
+
div {}
|
2
|
+
//
|
3
|
+
// HTML5 Boilerplate
|
4
|
+
//
|
5
|
+
// What follows is the result of much research on cross-browser styling.
|
6
|
+
// Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
|
7
|
+
// Kroc Camen, and the H5BP dev community and team.
|
8
|
+
//
|
9
|
+
// Detailed information about this CSS: h5bp.com/css
|
10
|
+
//
|
11
|
+
// ==|== normalize ============================================================
|
12
|
+
//
|
13
|
+
|
14
|
+
// =============================================================================
|
15
|
+
// HTML5 display definitions
|
16
|
+
// =============================================================================
|
17
|
+
|
18
|
+
article,
|
19
|
+
aside,
|
20
|
+
details,
|
21
|
+
figcaption,
|
22
|
+
figure,
|
23
|
+
footer,
|
24
|
+
header,
|
25
|
+
hgroup,
|
26
|
+
nav,
|
27
|
+
section {
|
28
|
+
display: block;
|
29
|
+
}
|
30
|
+
audio,
|
31
|
+
canvas,
|
32
|
+
video {
|
33
|
+
display: inline-block;
|
34
|
+
*display: inline;
|
35
|
+
*zoom: 1;
|
36
|
+
}
|
37
|
+
audio:not([controls]) {
|
38
|
+
display: none;
|
39
|
+
}
|
40
|
+
[hidden] {
|
41
|
+
display: none;
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
// =============================================================================
|
46
|
+
// Base
|
47
|
+
// =============================================================================
|
48
|
+
|
49
|
+
// 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
|
50
|
+
// 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
|
51
|
+
|
52
|
+
html {
|
53
|
+
height: 100%;
|
54
|
+
font-size: 100%;
|
55
|
+
-webkit-text-size-adjust: 100%;
|
56
|
+
-ms-text-size-adjust: 100%;
|
57
|
+
}
|
58
|
+
|
59
|
+
body {
|
60
|
+
margin: 0;
|
61
|
+
padding: 0;
|
62
|
+
width: 100%;
|
63
|
+
height: 100%;
|
64
|
+
min-height: 100%;
|
65
|
+
overflow: hidden;
|
66
|
+
font-family: Helvetica, Arial, sans-serif;
|
67
|
+
font-size: 13px;
|
68
|
+
line-height: 1.34em;
|
69
|
+
-webkit-touch-callout: none;
|
70
|
+
}
|
71
|
+
|
72
|
+
body,
|
73
|
+
button,
|
74
|
+
input,
|
75
|
+
select,
|
76
|
+
textarea {
|
77
|
+
font-family: sans-serif;
|
78
|
+
color: #222;
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
// =============================================================================
|
84
|
+
// Links
|
85
|
+
// =============================================================================
|
86
|
+
|
87
|
+
a {
|
88
|
+
/*color: #00e;*/
|
89
|
+
text-decoration: none;
|
90
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
91
|
+
}
|
92
|
+
a:visited { /*color: #551a8b;*/ }
|
93
|
+
a:hover { /*color: #06e;*/ }
|
94
|
+
a:focus { outline: thin dotted; }
|
95
|
+
|
96
|
+
// Improve readability when focused and hovered in all browsers: h5bp.com/h
|
97
|
+
a:hover, a:active { outline: 0; }
|
98
|
+
|
99
|
+
|
100
|
+
// =============================================================================
|
101
|
+
// Typography
|
102
|
+
// =============================================================================
|
103
|
+
|
104
|
+
abbr[title] {
|
105
|
+
border-bottom: 1px dotted;
|
106
|
+
}
|
107
|
+
b, strong {
|
108
|
+
font-weight: bold;
|
109
|
+
}
|
110
|
+
blockquote {
|
111
|
+
margin: 1em 40px;
|
112
|
+
}
|
113
|
+
dfn {
|
114
|
+
font-style: italic;
|
115
|
+
}
|
116
|
+
hr {
|
117
|
+
display: block;
|
118
|
+
height: 1px;
|
119
|
+
border: 0;
|
120
|
+
border-top: 1px solid #ccc;
|
121
|
+
margin: 1em 0;
|
122
|
+
padding: 0;
|
123
|
+
}
|
124
|
+
ins {
|
125
|
+
background: #ff9;
|
126
|
+
color: #000;
|
127
|
+
text-decoration: none;
|
128
|
+
}
|
129
|
+
mark {
|
130
|
+
background: #ff0;
|
131
|
+
color: #000;
|
132
|
+
font-style: italic;
|
133
|
+
font-weight: bold;
|
134
|
+
}
|
135
|
+
|
136
|
+
// Redeclare monospace font family: h5bp.com/j
|
137
|
+
pre,
|
138
|
+
code,
|
139
|
+
kbd,
|
140
|
+
samp {
|
141
|
+
font-family: monospace, serif;
|
142
|
+
_font-family: 'courier new', monospace;
|
143
|
+
font-size: 1em;
|
144
|
+
}
|
145
|
+
|
146
|
+
// Improve readability of pre-formatted text in all browsers
|
147
|
+
pre {
|
148
|
+
white-space: pre;
|
149
|
+
white-space: pre-wrap;
|
150
|
+
word-wrap: break-word;
|
151
|
+
}
|
152
|
+
q {
|
153
|
+
quotes: none;
|
154
|
+
&:before,
|
155
|
+
&:after {
|
156
|
+
content: "";
|
157
|
+
content: none;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
small {
|
161
|
+
font-size: 85%;
|
162
|
+
}
|
163
|
+
|
164
|
+
// Position subscript and superscript content without affecting line-height: h5bp.com/k
|
165
|
+
sub,
|
166
|
+
sup {
|
167
|
+
font-size: 75%;
|
168
|
+
line-height: 0;
|
169
|
+
position: relative;
|
170
|
+
vertical-align: baseline;
|
171
|
+
}
|
172
|
+
sup {
|
173
|
+
top: -0.5em;
|
174
|
+
}
|
175
|
+
sub {
|
176
|
+
bottom: -0.25em;
|
177
|
+
}
|
178
|
+
|
179
|
+
h1, h2, h3, h4, h5, h6 {
|
180
|
+
margin: 0;
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
// =============================================================================
|
185
|
+
// Lists
|
186
|
+
// =============================================================================
|
187
|
+
|
188
|
+
ul,
|
189
|
+
ol {
|
190
|
+
margin: 1em 0;
|
191
|
+
padding: 0 0 0 40px;
|
192
|
+
nav & {
|
193
|
+
list-style: none;
|
194
|
+
list-style-image: none;
|
195
|
+
margin: 0;
|
196
|
+
padding: 0;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
dd {
|
200
|
+
margin: 0 0 0 40px;
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
// =============================================================================
|
205
|
+
// Embedded content
|
206
|
+
// =============================================================================
|
207
|
+
|
208
|
+
// 1. Improve image quality when scaled in IE7: h5bp.com/d
|
209
|
+
// 2. Remove the gap between images and borders on image containers: h5bp.com/e
|
210
|
+
img {
|
211
|
+
border: 0;
|
212
|
+
-ms-interpolation-mode: bicubic;
|
213
|
+
vertical-align: middle;
|
214
|
+
font-size: 0;
|
215
|
+
}
|
216
|
+
|
217
|
+
// Correct overflow not hidden in IE9
|
218
|
+
svg:not(:root) {
|
219
|
+
overflow: hidden;
|
220
|
+
}
|
221
|
+
|
222
|
+
|
223
|
+
// =============================================================================
|
224
|
+
// Figures
|
225
|
+
// =============================================================================
|
226
|
+
|
227
|
+
figure {
|
228
|
+
margin: 0;
|
229
|
+
}
|
230
|
+
|
231
|
+
|
232
|
+
// =============================================================================
|
233
|
+
// Forms
|
234
|
+
// =============================================================================
|
235
|
+
|
236
|
+
form {
|
237
|
+
margin: 0;
|
238
|
+
}
|
239
|
+
fieldset {
|
240
|
+
border: 0;
|
241
|
+
margin: 0;
|
242
|
+
padding: 0;
|
243
|
+
}
|
244
|
+
|
245
|
+
// Indicate that 'label' will shift focus to the associated form element
|
246
|
+
label {
|
247
|
+
cursor: pointer;
|
248
|
+
}
|
249
|
+
|
250
|
+
// 1. Correct color not inheriting in IE6/7/8/9
|
251
|
+
// 2. Correct alignment displayed oddly in IE6/7
|
252
|
+
legend {
|
253
|
+
border: 0;
|
254
|
+
*margin-left: -7px;
|
255
|
+
padding: 0;
|
256
|
+
}
|
257
|
+
|
258
|
+
// 1. Correct font-size not inheriting in all browsers
|
259
|
+
// 2. Remove margins in FF3/4 S5 Chrome
|
260
|
+
// 3. Define consistent vertical alignment display in all browsers
|
261
|
+
button,
|
262
|
+
input,
|
263
|
+
select,
|
264
|
+
textarea {
|
265
|
+
font-size: 100%;
|
266
|
+
margin: 0;
|
267
|
+
vertical-align: baseline;
|
268
|
+
*vertical-align: middle;
|
269
|
+
border: 0 none;
|
270
|
+
outline: none;
|
271
|
+
}
|
272
|
+
|
273
|
+
// 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
|
274
|
+
// 2. Correct inner spacing displayed oddly in IE6/7
|
275
|
+
button,
|
276
|
+
input {
|
277
|
+
line-height: normal;
|
278
|
+
*overflow: visible;
|
279
|
+
}
|
280
|
+
|
281
|
+
// Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
|
282
|
+
table button,
|
283
|
+
table input {
|
284
|
+
*overflow: auto;
|
285
|
+
}
|
286
|
+
|
287
|
+
// 1. Display hand cursor for clickable form elements
|
288
|
+
// 2. Allow styling of clickable form elements in iOS
|
289
|
+
button,
|
290
|
+
input[type="button"],
|
291
|
+
input[type="reset"],
|
292
|
+
input[type="submit"],
|
293
|
+
[role="button"] {
|
294
|
+
cursor: pointer;
|
295
|
+
-webkit-appearance: button;
|
296
|
+
}
|
297
|
+
|
298
|
+
// Consistent box sizing and appearance
|
299
|
+
input[type="checkbox"],
|
300
|
+
input[type="radio"] {
|
301
|
+
padding: 0;
|
302
|
+
}
|
303
|
+
input[type="search"] {
|
304
|
+
// -webkit-appearance: none;
|
305
|
+
-webkit-appearance: textfield;
|
306
|
+
// -webkit-appearance: searchfield;
|
307
|
+
}
|
308
|
+
input[type="search"]::-webkit-search-decoration {
|
309
|
+
-webkit-appearance: none;
|
310
|
+
}
|
311
|
+
|
312
|
+
// Remove inner padding and border in FF3/4: h5bp.com/l
|
313
|
+
button::-moz-focus-inner {
|
314
|
+
border: 0; padding: 0;
|
315
|
+
}
|
316
|
+
|
317
|
+
// 1. Remove default vertical scrollbar in IE6/7/8/9
|
318
|
+
// 2. Allow only vertical resizing
|
319
|
+
textarea {
|
320
|
+
overflow: auto;
|
321
|
+
vertical-align: top;
|
322
|
+
resize: vertical;
|
323
|
+
}
|
324
|
+
|
325
|
+
// Colors for form validity
|
326
|
+
input,
|
327
|
+
textarea {
|
328
|
+
&:valid {}
|
329
|
+
&:invalid {
|
330
|
+
background-color: #f0dddd;
|
331
|
+
}
|
332
|
+
}
|
333
|
+
|
334
|
+
|
335
|
+
// =============================================================================
|
336
|
+
// Tables
|
337
|
+
// =============================================================================
|
338
|
+
|
339
|
+
table {
|
340
|
+
border-collapse: collapse;
|
341
|
+
border-spacing: 0;
|
342
|
+
}
|
343
|
+
td {
|
344
|
+
vertical-align: top;
|
345
|
+
}
|
346
|
+
|
347
|
+
* {
|
348
|
+
@include box-sizing(border-box);
|
349
|
+
-webkit-font-smoothing: antialiased;
|
350
|
+
-moz-font-smoothing: antialiased;
|
351
|
+
-webkit-tap-highlight-color: transparent;
|
352
|
+
-webkit-touch-callout: none;
|
353
|
+
-webkit-user-select: none;
|
354
|
+
-khtml-user-select: none;
|
355
|
+
-moz-user-select: none;
|
356
|
+
-o-user-select: none;
|
357
|
+
user-select: none;
|
358
|
+
}
|
359
|
+
input:not([type="checkbox"]),
|
360
|
+
textarea, select {
|
361
|
+
-webkit-user-select: text;
|
362
|
+
-khtml-user-select: text;
|
363
|
+
-moz-user-select: text;
|
364
|
+
-o-user-select: text;
|
365
|
+
user-select: text;
|
366
|
+
}
|
367
|
+
|
@@ -0,0 +1,176 @@
|
|
1
|
+
$isNormal: ':not([data-type])';
|
2
|
+
|
3
|
+
|
4
|
+
$isMain: '[role="main"]';
|
5
|
+
|
6
|
+
// Dialog model
|
7
|
+
$isDialog: '[role="dialog"]';
|
8
|
+
$isAction: '[data-type="action"]';
|
9
|
+
$isAlert: '[data-type="alert"]';
|
10
|
+
$isPopover: '[data-type="popover"]';
|
11
|
+
$isModal: '[data-type="modal"]';
|
12
|
+
$isNotModal: ':not([data-type="modal"])';
|
13
|
+
|
14
|
+
|
15
|
+
$isTooltip: '[role="tooltip"]';
|
16
|
+
|
17
|
+
// Popup section
|
18
|
+
$isPopup: '[data-type="popup"]';
|
19
|
+
$isNotPopup: ':not([data-type="popup"])';
|
20
|
+
|
21
|
+
// Header
|
22
|
+
$isVertical: '[data-type="vertical"]';
|
23
|
+
$isNotVertical: ':not([data-type="vertical"])';
|
24
|
+
$isNotExtended: ':not([data-type="extended"])';
|
25
|
+
|
26
|
+
// Nav & Footer
|
27
|
+
$isToolbar: '[data-type="toolbar"]';
|
28
|
+
$isNotToolbar: ':not([data-type="toolbar"])';
|
29
|
+
|
30
|
+
$isTabbar: '[data-type="tabbar"]';
|
31
|
+
$isNotTabbar: ':not([data-type="tabbar"])';
|
32
|
+
|
33
|
+
// Positions
|
34
|
+
$isOnTop: '.onTop';
|
35
|
+
$isOnBottom: '.onBottom';
|
36
|
+
$isOnLeft: '.onLeft';
|
37
|
+
$isOnRight: '.onRight';
|
38
|
+
|
39
|
+
// Alignment
|
40
|
+
$alignTopLeft: '.onTop';
|
41
|
+
$isOnBottom: '.onBottom';
|
42
|
+
$isOnLeft: '.onLeft';
|
43
|
+
$isOnRight: '.onRight';
|
44
|
+
|
45
|
+
// Fixed positions
|
46
|
+
$default-fixed-position: false !default;
|
47
|
+
$default-fixed-size: 100% !default;
|
48
|
+
|
49
|
+
|
50
|
+
// Layers positions
|
51
|
+
$default-layer-dialog: 600 !default;
|
52
|
+
$default-layer-overalay: 500 !default;
|
53
|
+
$default-layer-popup: 400 !default;
|
54
|
+
$default-layer-front: 300 !default;
|
55
|
+
$default-layer-overalay-inner: 200 !default;
|
56
|
+
$default-layer-current: 100 !default;
|
57
|
+
$default-layer-back: 0 !default;
|
58
|
+
|
59
|
+
// Transition for aside
|
60
|
+
$default-transition-type: false !default;
|
61
|
+
$default-transform-distance: 0 !default;
|
62
|
+
|
63
|
+
|
64
|
+
// Header
|
65
|
+
$default-header-size: 44px !default;
|
66
|
+
$default-header-button: 30px !default;
|
67
|
+
$default-header-icon: 20px !default;
|
68
|
+
|
69
|
+
// Landscape Header
|
70
|
+
$default-header-landscape-size: 32px !default;
|
71
|
+
$default-header-landscape-button: 24px !default;
|
72
|
+
|
73
|
+
// Vertical Header
|
74
|
+
$default-header-vertical-size: 50px !default;
|
75
|
+
$default-header-vertical-button: 40px !default;
|
76
|
+
$default-header-vertical-spacing: 5px !default;
|
77
|
+
$default-header-vertical-icon: 30px !default;
|
78
|
+
|
79
|
+
|
80
|
+
// Nav, Footer and Toolbar
|
81
|
+
$default-navbar-size: 44px !default;
|
82
|
+
$default-navbar-button: 30px !default;
|
83
|
+
$default-navbar-icon: 16px !default;
|
84
|
+
|
85
|
+
|
86
|
+
// Tabbar
|
87
|
+
$default-tabbar-size: 60px !default;
|
88
|
+
$default-tabbar-spacing: 5px !default;
|
89
|
+
$default-tabbar-icon: 26px !default;
|
90
|
+
|
91
|
+
|
92
|
+
// Aside
|
93
|
+
$default-aside-left-size: 276px !default;
|
94
|
+
$default-aside-right-size: 276px !default;
|
95
|
+
$default-aside-top-size: 99px !default;
|
96
|
+
$default-aside-bottom-size: 300px !default;
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
// Global Dialog
|
101
|
+
$default-dialog-maxheight: 400px !default;
|
102
|
+
$default-dialog-maxwidth: 300px !default;
|
103
|
+
|
104
|
+
// Action Sheet Dialog
|
105
|
+
$default-action-spacing: 20px !default;
|
106
|
+
$default-action-button: 40px !default;
|
107
|
+
|
108
|
+
// Alert Dialog
|
109
|
+
$default-alert-size: 280px !default;
|
110
|
+
$default-alert-spacing: 10px !default;
|
111
|
+
$default-alert-button: 30px !default;
|
112
|
+
|
113
|
+
// Modal Dialog
|
114
|
+
$default-modal-spacing: 20px !default;
|
115
|
+
|
116
|
+
// Popover Dialog
|
117
|
+
$default-popover-arrow: 10px !default;
|
118
|
+
$default-popover-border: 4px !default;
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
$default-interface-spacing: 7px !default;
|
126
|
+
$default-content-spacing: 10px !default;
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
// Listview
|
133
|
+
$default-listview-spacing: 10px !default;
|
134
|
+
|
135
|
+
|
136
|
+
// Badges
|
137
|
+
$default-badge-spacing: 3px 5px !default;
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
// Compass Animation
|
153
|
+
$default-transition-property : transform;
|
154
|
+
$default-transition-duration : 250ms;
|
155
|
+
$default-transition-function : ease-out;
|
156
|
+
$default-transition-delay : false;
|
157
|
+
|
158
|
+
// Compass box
|
159
|
+
// Box orientation [ horizontal | vertical | inline-axis | block-axis | inherit ]
|
160
|
+
// Box align [ start | end | center | baseline | stretch ]
|
161
|
+
// box pack [ start | end | center | justify ]
|
162
|
+
// box-direction [ normal | reverse | inherit ]
|
163
|
+
$default-box-flex : 1;
|
164
|
+
$default-box-orient : horizontal;
|
165
|
+
$default-box-align : center;
|
166
|
+
$default-box-pack : center;
|
167
|
+
$default-box-direction : normal;
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|