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,192 @@
|
|
1
|
+
/*
|
2
|
+
* General
|
3
|
+
*/
|
4
|
+
|
5
|
+
header,
|
6
|
+
nav,
|
7
|
+
footer {
|
8
|
+
|
9
|
+
/* box flex and center layout for container */
|
10
|
+
@include setFlexibleBox;
|
11
|
+
text-align: center;
|
12
|
+
|
13
|
+
/* reset for item list */
|
14
|
+
ul {
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
list-style-type: none;
|
18
|
+
}
|
19
|
+
|
20
|
+
/* vertical box flex layout for inner content */
|
21
|
+
.content, > hgroup {
|
22
|
+
@include setFlexibleBox(vertical,stretch);
|
23
|
+
}
|
24
|
+
|
25
|
+
/* box flex some content */
|
26
|
+
.content, > hgroup, > h1, input, ul, li {
|
27
|
+
@include box-flex(1);
|
28
|
+
display: block;
|
29
|
+
}
|
30
|
+
|
31
|
+
/* spacing for content */
|
32
|
+
.content, hgroup, .control-group {
|
33
|
+
margin: 0 $default-interface-spacing;
|
34
|
+
}
|
35
|
+
> * + * {
|
36
|
+
margin-left: 0 !important;
|
37
|
+
}
|
38
|
+
|
39
|
+
/* basic title format */
|
40
|
+
h1 { font-size: 16px; }
|
41
|
+
h2 { font-size: 13px; }
|
42
|
+
|
43
|
+
i { display: block; }
|
44
|
+
|
45
|
+
a { @include setFlexibleBox; }
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
/* title landscape format */
|
50
|
+
@media only screen and (min-width : 321px) and (max-width : 480px) and (orientation : landscape) {
|
51
|
+
header#{$isNotVertical} {
|
52
|
+
h1 { display: block; }
|
53
|
+
hgroup > {
|
54
|
+
h1, h2 {
|
55
|
+
@include ellipsis;
|
56
|
+
display: inline
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
/* Icon spacing in buttons */
|
64
|
+
header#{$isNotVertical},
|
65
|
+
nav#{$isNotTabbar},
|
66
|
+
footer#{$isNotTabbar} {
|
67
|
+
i + span { margin-left: 5px; }
|
68
|
+
span + i { margin-left: 5px; }
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
header#{$isNotVertical} {
|
73
|
+
i {
|
74
|
+
@include square($default-header-icon);
|
75
|
+
line-height: $default-header-icon;
|
76
|
+
font-size: $default-header-icon;
|
77
|
+
}
|
78
|
+
/* Format fot buttons and input for non vertical header */
|
79
|
+
a, input {
|
80
|
+
height: $default-header-button;
|
81
|
+
margin: 0 $default-interface-spacing;
|
82
|
+
}
|
83
|
+
a {
|
84
|
+
padding: 0 $default-interface-spacing;
|
85
|
+
}
|
86
|
+
.control-group {
|
87
|
+
height: $default-header-button;
|
88
|
+
a { height: auto !important; }
|
89
|
+
}
|
90
|
+
}
|
91
|
+
header#{$isVertical} {
|
92
|
+
i { @include square($default-header-vertical-icon); }
|
93
|
+
//.onlyIcon i { @include square($default-header-vertical-button); }
|
94
|
+
/* Format fot buttons for vertical header */
|
95
|
+
a {
|
96
|
+
width: $default-header-vertical-button;
|
97
|
+
margin: $default-header-vertical-spacing;
|
98
|
+
padding: $default-header-vertical-spacing;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
//Landscape buttons
|
102
|
+
@media only screen and (min-width : 321px) and (max-width : 480px) and (orientation : landscape) {
|
103
|
+
header#{$isNotVertical} {
|
104
|
+
a, input {
|
105
|
+
height: $default-header-landscape-button;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
nav,
|
111
|
+
footer {
|
112
|
+
i {
|
113
|
+
@include square($default-navbar-icon);
|
114
|
+
line-height: $default-navbar-icon;
|
115
|
+
font-size: $default-navbar-icon;
|
116
|
+
}
|
117
|
+
//.onlyIcon i { @include square($default-navbar-button); }
|
118
|
+
&#{$isToolbar} {
|
119
|
+
/* Format fot buttons and inputs for toolbars */
|
120
|
+
a, input {
|
121
|
+
height: $default-navbar-button;
|
122
|
+
margin: 0 $default-interface-spacing;
|
123
|
+
}
|
124
|
+
a {
|
125
|
+
padding: 0 $default-interface-spacing;
|
126
|
+
}
|
127
|
+
.control-group {
|
128
|
+
height: $default-navbar-button;
|
129
|
+
a { height: auto !important; }
|
130
|
+
}
|
131
|
+
}
|
132
|
+
&#{$isTabbar} {
|
133
|
+
i {
|
134
|
+
@include square($default-tabbar-icon);
|
135
|
+
line-height: $default-tabbar-icon;
|
136
|
+
font-size: $default-tabbar-icon;
|
137
|
+
}
|
138
|
+
/* Vertical align for elements in tabbar */
|
139
|
+
a { @include box-orient(vertical); }
|
140
|
+
}
|
141
|
+
/* Format fot buttons and inputs for toolbars */
|
142
|
+
&#{$isTabbar},
|
143
|
+
&#{$isNormal} {
|
144
|
+
@include box-align(stretch);
|
145
|
+
ul, li { @include setFlexibleBox(horizontal, stretch); }
|
146
|
+
a { @include box-flex(1); }
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
.titleOnLeft {
|
151
|
+
* { @include box-ordinal-group(2); }
|
152
|
+
|
153
|
+
> h1, hgroup, .content {
|
154
|
+
@include box-ordinal-group(1);
|
155
|
+
@include box-align(start);
|
156
|
+
padding-left: $default-interface-spacing;
|
157
|
+
text-align: left;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
/*
|
165
|
+
header,
|
166
|
+
nav,
|
167
|
+
footer {
|
168
|
+
h1, h2, li, a {
|
169
|
+
@include ellipsis;
|
170
|
+
}
|
171
|
+
|
172
|
+
> .title {
|
173
|
+
width: 100%;
|
174
|
+
}
|
175
|
+
input {
|
176
|
+
position: relative;
|
177
|
+
display: block;
|
178
|
+
&[data-icon] {
|
179
|
+
&:after {
|
180
|
+
@include square($default-navbar-icon);
|
181
|
+
display: block;
|
182
|
+
position: absolute;
|
183
|
+
top: 50%;
|
184
|
+
left: 0;
|
185
|
+
margin-top: -($default-navbar-icon / 2);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
}
|
191
|
+
*/
|
192
|
+
|
@@ -0,0 +1,169 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
.flex {
|
5
|
+
@include box-flex(1);
|
6
|
+
}
|
7
|
+
.fix {
|
8
|
+
|
9
|
+
}
|
10
|
+
|
11
|
+
/* Lists elements */
|
12
|
+
.list-divider {
|
13
|
+
padding: 5px 10px !important;
|
14
|
+
text-transform: uppercase;
|
15
|
+
}
|
16
|
+
.badge { padding: $default-badge-spacing !important; }
|
17
|
+
|
18
|
+
/* Buttons groupers elements */
|
19
|
+
.button-group,
|
20
|
+
.control-group {
|
21
|
+
@include setFlexibleBox;
|
22
|
+
@include box-flex(0);
|
23
|
+
a { @include box-flex(1); }
|
24
|
+
}
|
25
|
+
|
26
|
+
.control-group {
|
27
|
+
@include box-align(stretch);
|
28
|
+
a {
|
29
|
+
margin: 0px 0px 0px -1px !important;
|
30
|
+
z-index: 0;
|
31
|
+
}
|
32
|
+
a.is-active { z-index: 1; }
|
33
|
+
&.autoWidth { @include box-flex(1); }
|
34
|
+
}
|
35
|
+
|
36
|
+
.button-group {
|
37
|
+
a {
|
38
|
+
margin-right: $default-content-spacing;
|
39
|
+
&:last-child { margin-right: 0; }
|
40
|
+
}
|
41
|
+
&.alignVertical {
|
42
|
+
@include box-orient(vertical);
|
43
|
+
@include box-align(stretch);
|
44
|
+
a:not(:last-child) {
|
45
|
+
margin-right: 0;
|
46
|
+
margin-bottom: $default-content-spacing;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
/* Progress elements */
|
52
|
+
.slider {
|
53
|
+
overflow: visible;
|
54
|
+
margin: 0 3px;
|
55
|
+
height: 8px;
|
56
|
+
padding: 0;
|
57
|
+
.progress {
|
58
|
+
position: relative;
|
59
|
+
height: 100%;
|
60
|
+
width: 50%;
|
61
|
+
z-index: 1;
|
62
|
+
.circle {
|
63
|
+
@include border-radius(100%);
|
64
|
+
position: absolute;
|
65
|
+
height: 18px;
|
66
|
+
width: 18px;
|
67
|
+
z-index: 2;
|
68
|
+
top: 50%;
|
69
|
+
right: -10px;
|
70
|
+
margin-top: -10px;
|
71
|
+
margin-left: -10px;
|
72
|
+
&.mini {
|
73
|
+
width: 14px;
|
74
|
+
height: 14px;
|
75
|
+
right: -10px;
|
76
|
+
margin-top: -8px;
|
77
|
+
margin-left: -8px;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.loader {
|
84
|
+
width: 220px;
|
85
|
+
height: 10px;
|
86
|
+
margin: 0 auto;
|
87
|
+
padding: 1px;
|
88
|
+
.progress {
|
89
|
+
width: 0;
|
90
|
+
min-width: 10px;
|
91
|
+
max-width: 100%;
|
92
|
+
height: 100%;
|
93
|
+
}
|
94
|
+
* + & {
|
95
|
+
margin-top: 5px;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
/* Form elements */
|
100
|
+
.toggle-content {
|
101
|
+
background-color: #666;
|
102
|
+
border: 1px solid #333;
|
103
|
+
height: 32px;
|
104
|
+
width: 80px;
|
105
|
+
position: relative;
|
106
|
+
input[type="checkbox"] {
|
107
|
+
display: none;
|
108
|
+
}
|
109
|
+
&:before, &:after { line-height: 32px; color: #fff;}
|
110
|
+
&:before {
|
111
|
+
content: "ON";
|
112
|
+
padding-left: 9px;
|
113
|
+
}
|
114
|
+
&:after {
|
115
|
+
content: "OFF";
|
116
|
+
padding-left: 12px;
|
117
|
+
}
|
118
|
+
label {
|
119
|
+
display: block;
|
120
|
+
height: 30px;
|
121
|
+
width: 40px;
|
122
|
+
position: absolute;
|
123
|
+
top: 0;
|
124
|
+
background-color: #fff;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
/*
|
138
|
+
header#{$isNotVertical},
|
139
|
+
nav#{$isToolbar},
|
140
|
+
footer#{$isToolbar} {
|
141
|
+
a {
|
142
|
+
font-size: 12px;
|
143
|
+
}
|
144
|
+
> a + a {
|
145
|
+
margin-left: 0px;
|
146
|
+
}
|
147
|
+
input[type="search"] {
|
148
|
+
@include box-flex(1);
|
149
|
+
display: block;
|
150
|
+
}
|
151
|
+
input[type="search"] + a {
|
152
|
+
margin-left: 0 !important;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
|
157
|
+
.message {
|
158
|
+
i {
|
159
|
+
@include inline-block;
|
160
|
+
width: 16px;
|
161
|
+
height: 16px;
|
162
|
+
margin: -2px 5px 0 0;
|
163
|
+
TODO: delete, it's only for debug
|
164
|
+
@include border-radius(100%);
|
165
|
+
border: 3px solid #666;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
*/
|
169
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// Layers
|
2
|
+
aside,
|
3
|
+
section#{$isNotPopup},
|
4
|
+
article {
|
5
|
+
z-index: $default-layer-back;
|
6
|
+
&.current {
|
7
|
+
z-index: $default-layer-current;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
section#{$isPopup} {
|
12
|
+
z-index: $default-layer-back;
|
13
|
+
&.current {
|
14
|
+
z-index: $default-layer-popup;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
header,
|
19
|
+
footer,
|
20
|
+
section > nav,
|
21
|
+
div#{$isMain} {
|
22
|
+
z-index: $default-layer-front;
|
23
|
+
}
|
24
|
+
|
25
|
+
div#{$isDialog} {
|
26
|
+
z-index: $default-layer-dialog;
|
27
|
+
}
|
28
|
+
|
29
|
+
.overlay {
|
30
|
+
z-index: $default-layer-overalay;
|
31
|
+
&.inner {
|
32
|
+
z-index: $default-layer-overalay-inner;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
// Visibility
|
38
|
+
aside,
|
39
|
+
section,
|
40
|
+
article,
|
41
|
+
div#{$isDialog} {
|
42
|
+
-webkit-backface-visibility: hidden;
|
43
|
+
visibility: hidden;
|
44
|
+
}
|
45
|
+
|
46
|
+
div#{$isMain},
|
47
|
+
div#{$isDialog}.current,
|
48
|
+
aside.current {
|
49
|
+
visibility: visible;
|
50
|
+
section.current {
|
51
|
+
visibility: visible;
|
52
|
+
article.current {
|
53
|
+
visibility: visible;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
@@ -0,0 +1,62 @@
|
|
1
|
+
//FIXME: @Cristian: quita clases .onleft y .onright de este lugar
|
2
|
+
.onleft { float: left; }
|
3
|
+
.onright { float: right; }
|
4
|
+
|
5
|
+
body {
|
6
|
+
overflow: hidden;
|
7
|
+
}
|
8
|
+
|
9
|
+
div#{$isMain},
|
10
|
+
section,
|
11
|
+
article,
|
12
|
+
.overlay {
|
13
|
+
@include setHeight;
|
14
|
+
}
|
15
|
+
|
16
|
+
div#{$isMain} {
|
17
|
+
overflow: hidden;
|
18
|
+
}
|
19
|
+
|
20
|
+
section#{$isNotPopup},
|
21
|
+
article {
|
22
|
+
header#{$isVertical} ~ & { left: $default-header-vertical-size; bottom: 0; }
|
23
|
+
header#{$isNormal} ~ & { top: $default-header-size; }
|
24
|
+
nav#{$isNotTabbar} ~ & { top: $default-navbar-size; }
|
25
|
+
nav#{$isTabbar} ~ & { top: $default-tabbar-size; }
|
26
|
+
footer#{$isNotTabbar} ~ & { bottom: $default-navbar-size; }
|
27
|
+
footer#{$isTabbar} ~ & { bottom: $default-tabbar-size; }
|
28
|
+
}
|
29
|
+
|
30
|
+
div#{$isMain},
|
31
|
+
section,
|
32
|
+
article,
|
33
|
+
header,
|
34
|
+
footer,
|
35
|
+
nav {
|
36
|
+
//@include box-sizing(content-box);
|
37
|
+
}
|
38
|
+
|
39
|
+
article {
|
40
|
+
header, nav, footer {
|
41
|
+
position: relative !important;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.scroll_container, .scrollable > * {
|
46
|
+
@include clearfix;
|
47
|
+
.inset {
|
48
|
+
//@include clearfix;
|
49
|
+
margin: $default-content-spacing;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// Landscape smartphone optimization
|
54
|
+
@media only screen
|
55
|
+
and(min-width : 321px)
|
56
|
+
and (max-width : 480px)
|
57
|
+
and (orientation : landscape) {
|
58
|
+
section#{$isNotPopup},
|
59
|
+
article {
|
60
|
+
header#{$isNormal} ~ & { top: $default-header-landscape-size; }
|
61
|
+
}
|
62
|
+
}
|