bootstrap-bookingsync-sass 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -1
  3. data/CHANGELOG.md +11 -0
  4. data/assets/stylesheets/_bootstrap-bookingsync.scss +5 -2
  5. data/assets/stylesheets/bookingsync/_layout.scss +0 -49
  6. data/assets/stylesheets/bookingsync/_menu.scss +282 -0
  7. data/assets/stylesheets/bookingsync/_sheet.scss +27 -0
  8. data/assets/stylesheets/bookingsync/_switch.scss +0 -4
  9. data/assets/stylesheets/bookingsync/_theme.scss +0 -301
  10. data/assets/stylesheets/bookingsync/_type.scss +0 -4
  11. data/assets/stylesheets/bookingsync/_utilities.scss +46 -3
  12. data/assets/stylesheets/bookingsync/_variables.scss +130 -108
  13. data/docs/Gemfile +16 -0
  14. data/docs/Guardfile +25 -0
  15. data/docs/Rakefile +53 -0
  16. data/docs/Rules +58 -0
  17. data/docs/config.ru +15 -0
  18. data/docs/content/CNAME +1 -0
  19. data/docs/content/assets/javascripts/application.js.coffee +7 -0
  20. data/docs/content/assets/stylesheets/_base.scss +41 -0
  21. data/docs/content/assets/stylesheets/_callout.scss +50 -0
  22. data/docs/content/assets/stylesheets/_code.scss +18 -0
  23. data/docs/content/assets/stylesheets/_panels.scss +4 -0
  24. data/docs/content/assets/stylesheets/_variables.scss +14 -0
  25. data/docs/content/assets/stylesheets/application.scss +11 -0
  26. data/docs/content/components.html +23 -0
  27. data/docs/content/components/chosen.md +54 -0
  28. data/docs/content/components/menu.md +184 -0
  29. data/docs/content/components/sheet.md +36 -0
  30. data/docs/content/components/switch.md +44 -0
  31. data/docs/content/css.html +42 -0
  32. data/docs/content/css/forms.md +1138 -0
  33. data/docs/content/css/helpers.md +49 -0
  34. data/docs/content/highlight.css +1 -0
  35. data/docs/content/index.html +5 -0
  36. data/docs/layouts/default.html +12 -0
  37. data/docs/layouts/head.html +17 -0
  38. data/docs/layouts/navbar.html +27 -0
  39. data/docs/lib/default.rb +13 -0
  40. data/docs/nanoc.yaml +74 -0
  41. data/docs/vendor/assets/javascripts/chosen.js +1284 -0
  42. data/docs/vendor/assets/stylesheets/chosen.scss +448 -0
  43. data/lib/bootstrap/bookingsync/version.rb +1 -1
  44. metadata +36 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23068bbe74b68e86daef2a2324b4b8187409cae4
4
- data.tar.gz: 7b97cfea98fd99e182fb8eca5a22cf8cb4b584f1
3
+ metadata.gz: f67238193f033dfcdbd25291de20c3494be7358d
4
+ data.tar.gz: 3181386d2a8db828b0fb1346b364f4c47f1cf5ad
5
5
  SHA512:
6
- metadata.gz: 37b8b121d6e3c5451a60fd368b51ea6c267d7dce16e36af212cb04d9450876a281d35740fdab10f19e7dcbf52f8bbc4a57b5d4ec6e599d11cbe4f001743c1316
7
- data.tar.gz: f75633ce6a80325607a8cab28a7715b45ce5568aac165a646b82dfcc2124587feb15775a9df2b9b827f2bbe1a974fb3e144e39ec8d5023893b4a3ea0d87c005c
6
+ metadata.gz: 838a5db282bac46ce7d9f292b6de5668a4bc75526e5d6f04af159c27676e36901451673c8707a324c9025b65d9265706067104039343037f552046d5738f31ff
7
+ data.tar.gz: 93427effa40c4b95be828fd692e83ff2f5f9102814f81ea7a681ca7efcc0bbe95bb0b65783157a6f40ac5ee9528d7713c6b803914e1c006d5ac5b3237624210b
data/.gitignore CHANGED
@@ -1,2 +1,5 @@
1
- Gemfile.lock
2
1
  *.gem
2
+ Gemfile.lock
3
+ docs/output
4
+ docs/tmp
5
+ docs/crash.log
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ### Unreleased
2
2
 
3
+ ### 0.0.17 - 2016-04-08
4
+
5
+ * improvement
6
+ * add documentation
7
+ * move the menu and sheet components into separate files
8
+ * move flex helpers into utilities file
9
+ * move all variable declarations into one file
10
+ * add !default to all variable declarations
11
+ * add !important rule to make the vertical align helpers usable in table cell
12
+ * provide the fixed position menu as a component variant
13
+
3
14
  ### 0.0.16 - 2015-12-14
4
15
 
5
16
  * improvement
@@ -3,9 +3,10 @@
3
3
  * Licensed under MIT (https://github.com/BookingSync/bootstrap-bookingsync-sass/blob/master/LICENSE)
4
4
  */
5
5
 
6
- // Core variables and mixins
7
- @import "bootstrap/variables";
6
+ // Core variables and mixins
7
+ @import 'bookingsync/colors';
8
8
  @import "bookingsync/variables";
9
+ @import "bootstrap/variables";
9
10
  @import "bootstrap/mixins";
10
11
 
11
12
  // Reset and dependencies
@@ -58,8 +59,10 @@
58
59
  @import "bookingsync/theme";
59
60
  @import "bookingsync/type";
60
61
  @import "bookingsync/layout";
62
+ @import "bookingsync/menu";
61
63
  @import "bookingsync/form";
62
64
  @import "bookingsync/chosen";
65
+ @import "bookingsync/sheet";
63
66
  @import "bookingsync/switch";
64
67
  @import "bookingsync/smiles";
65
68
  @import "bookingsync/utilities";
@@ -6,14 +6,6 @@
6
6
  body {
7
7
  min-height: 100vh;
8
8
  padding-top: $navbar-height;
9
-
10
- // Kill scroll on the body when the mobile menu is opened
11
- &.menu-open {
12
- position: fixed;
13
- overflow: hidden;
14
- width: 100%;
15
- height: 100%;
16
- }
17
9
  }
18
10
 
19
11
  .navbar.navbar-fixed-top {
@@ -62,44 +54,3 @@ body {
62
54
  padding-top: $navbar-height + 1; // navbar border
63
55
  }
64
56
  }
65
-
66
- @media (max-width: $screen-xs-max) {
67
- .menu-toggle {
68
- position: fixed;
69
- top: 0;
70
- left: 0;
71
- z-index: 2000;
72
- margin-top: 0;
73
- margin-bottom: 0;
74
- margin-left: 5px;
75
- }
76
-
77
- .menu {
78
- position: fixed;
79
- left: 0;
80
- top: $navbar-height;
81
- width: 100%;
82
- height: calc(100% - 70px);
83
-
84
- &:hover {
85
- width: 100%;
86
- }
87
- }
88
- }
89
-
90
- @media (min-width: $screen-sm-min) {
91
- .menu {
92
- height: 100vh;
93
- position: fixed;
94
- top: 0;
95
- left: 0;
96
-
97
- &.collapse {
98
- visibility: visible;
99
-
100
- &.flex-col {
101
- display: flex;
102
- }
103
- }
104
- }
105
- }
@@ -0,0 +1,282 @@
1
+ //
2
+ // Menu
3
+ // --------------------------------------------------
4
+
5
+ .menu {
6
+ background-color: $menu-bg;
7
+ color: $menu-color;
8
+ border-radius: $menu-border-radius;
9
+ width: 60px;
10
+ height: 100%;
11
+ overflow: hidden;
12
+ z-index: 9000;
13
+ transition: width 0.2s cubic-bezier(.4,0,.2,1);
14
+ border-radius: 0;
15
+
16
+ .body {
17
+ overflow: hidden;
18
+ }
19
+
20
+ @media (max-width: $screen-xs-max) {
21
+ .body,
22
+ .menu-dropdown ol,
23
+ .menu-dropright {
24
+ overflow-y: auto;
25
+ -webkit-overflow-scrolling: touch;
26
+ }
27
+ }
28
+
29
+
30
+ &:hover {
31
+ width: 230px;
32
+
33
+ .body,
34
+ .menu-dropdown ol,
35
+ .menu-dropright {
36
+ overflow-y: auto;
37
+ -webkit-overflow-scrolling: touch;
38
+ }
39
+ }
40
+
41
+ header,
42
+ footer {
43
+ .bar {
44
+ height: $menu-header-height;
45
+ position: relative;
46
+ }
47
+
48
+ .brand,
49
+ .avatar {
50
+ height: 24px;
51
+ width: 24px;
52
+ font-size: 24px;
53
+ position: absolute;
54
+ top: 18px;
55
+ left: 18px;
56
+ }
57
+
58
+ .brand {
59
+ font-size: 24px;
60
+ padding-top: 5px;
61
+ }
62
+
63
+ p {
64
+ margin: 0;
65
+ margin-left: 60px;
66
+ padding-top: 17.5px;
67
+ line-height: 1.24em;
68
+ white-space: nowrap;
69
+ }
70
+ }
71
+
72
+ header {
73
+ background-color: $menu-header-bg;
74
+ color: $menu-header-color;
75
+ z-index: 1000;
76
+ position: static;
77
+
78
+ a {
79
+ color: $menu-header-link-color;
80
+ }
81
+
82
+ ol {
83
+ margin-bottom: 0;
84
+ border-top: 1px solid $menu-header-link-hover-bg;
85
+ background-color: $menu-header-bg;
86
+ width: 100%;
87
+ position: absolute;
88
+ max-height: 100%;
89
+ overflow: hidden;
90
+
91
+ a:hover {
92
+ background-color: $menu-header-link-hover-bg;
93
+ color: $menu-header-link-hover-color;
94
+ }
95
+ }
96
+
97
+ .bar {
98
+ background-color: $menu-header-bg;
99
+ z-index: 2000;
100
+ }
101
+
102
+ #menu-header-submenu {
103
+ width: 100%;
104
+
105
+ &.open {
106
+ top: $menu-header-height;
107
+ bottom: 0;
108
+ @media (max-width: $screen-xs-max) {
109
+ position: fixed;
110
+ top: $menu-header-height + $navbar-height;
111
+ }
112
+ }
113
+ }
114
+ }
115
+
116
+ footer {
117
+ background-color: $menu-footer-bg;
118
+ color: $menu-footer-color;
119
+
120
+ a {
121
+ color: $menu-footer-link-color;
122
+ }
123
+
124
+ .back {
125
+ i {
126
+ color: $menu-footer-back-color;
127
+ }
128
+
129
+ a:hover i {
130
+ color: $menu-footer-back-color;
131
+ }
132
+ }
133
+
134
+ i {
135
+ margin-left: 2px;
136
+ }
137
+
138
+ #menu-footer-submenu {
139
+ top: 0;
140
+ width: 100%;
141
+ height: 100%;
142
+
143
+ ol {
144
+ margin-top: $menu-header-height;
145
+ margin-bottom: 0;
146
+ }
147
+
148
+ &.open {
149
+ ol {
150
+ background-color: $menu-footer-bg;
151
+ }
152
+ }
153
+ }
154
+ }
155
+
156
+ ol {
157
+ // No need to set list-style: none; since li is block level
158
+ padding-left: 0; // reset padding because ul and ol
159
+ }
160
+
161
+ li {
162
+ display: block;
163
+
164
+ a {
165
+ display: block;
166
+ padding: 10px 22px;
167
+ text-decoration: none;
168
+ white-space: nowrap;
169
+ line-height: 30px;
170
+ }
171
+
172
+ i {
173
+ width: 16px;
174
+ height: 16px;
175
+ }
176
+ }
177
+
178
+ .body,
179
+ footer {
180
+ li {
181
+ a {
182
+ background-color: $menu-link-bg;
183
+ color: $menu-link-color;
184
+
185
+ i {
186
+ color: $menu-link-icon-color;
187
+ }
188
+
189
+ span {
190
+ padding-left: 18px;
191
+ font-weight: 600;
192
+ -webkit-font-smoothing: antialiased;
193
+ -moz-osx-font-smoothing: grayscale;
194
+ }
195
+
196
+ &:hover {
197
+ background-color: $menu-link-hover-bg;
198
+ color: $menu-link-hover-color;
199
+
200
+ i {
201
+ color: $menu-link-hover-icon-color;
202
+ }
203
+ }
204
+ }
205
+
206
+ &.active a,
207
+ &.active:hover a,
208
+ &.active:focus a {
209
+ background-color: $menu-active-bg;
210
+ color: $menu-active-color;
211
+
212
+ i {
213
+ color: $menu-active-icon-color;
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+
220
+ .menu-toggle {
221
+ height: $menu-header-height;
222
+
223
+ .icon-bar {
224
+ background-color: $menu-default-toggle-icon-bar-bg;
225
+ }
226
+ }
227
+
228
+ .menu-fixed {
229
+ height: 100vh;
230
+ position: fixed;
231
+ top: 0;
232
+ left: 0;
233
+ }
234
+
235
+ @media (max-width: $screen-xs-max) {
236
+ .menu-toggle {
237
+ position: fixed;
238
+ top: 0;
239
+ left: 0;
240
+ z-index: 2000;
241
+ margin-top: 0;
242
+ margin-bottom: 0;
243
+ margin-left: 5px;
244
+ }
245
+
246
+ .menu {
247
+ position: fixed;
248
+ left: 0;
249
+ top: $navbar-height;
250
+ width: 100%;
251
+ height: calc(100% - 70px);
252
+
253
+ &:hover {
254
+ width: 100%;
255
+ }
256
+ }
257
+ }
258
+
259
+ @media (min-width: $screen-sm-min) {
260
+ .menu {
261
+ height: 100vh;
262
+ position: fixed;
263
+ top: 0;
264
+ left: 0;
265
+
266
+ &.collapse {
267
+ visibility: visible;
268
+
269
+ &.flex-col {
270
+ display: flex;
271
+ }
272
+ }
273
+ }
274
+ }
275
+
276
+ // Kill scroll on the body when the mobile menu is opened
277
+ body.menu-open {
278
+ position: fixed;
279
+ overflow: hidden;
280
+ width: 100%;
281
+ height: 100%;
282
+ }
@@ -0,0 +1,27 @@
1
+ // Sheet
2
+ //
3
+ // Custom wrapper to simulate a paper sheet container
4
+
5
+ .sheet {
6
+ width: auto;
7
+ position: relative;
8
+ border: 1px solid $sheet-border;
9
+ background-color: $sheet-bg;
10
+ border-radius: $sheet-border-radius;
11
+ margin: $sheet-margin;
12
+ padding: $sheet-padding;
13
+ }
14
+
15
+ .sheet-header {
16
+ margin: (-1 * $sheet-padding);
17
+ margin-bottom: $sheet-padding;
18
+ padding: $sheet-padding;
19
+ border-bottom: 1px solid $sheet-inner-border;
20
+
21
+ h1, h2, h3, h4, h5, h6,
22
+ .h1, .h2, .h3, .h4, .h5, .h6,
23
+ p {
24
+ padding: 0;
25
+ margin: 0;
26
+ }
27
+ }
@@ -15,10 +15,6 @@
15
15
  * Licensed under the Apache License, Version 2.0
16
16
  * http://www.apache.org/licenses/LICENSE-2.0
17
17
  * ============================================================ */
18
- $switch-label-size: 10px;
19
- $switch-off-border: $gray-lighter;
20
- $switch-off-bg: #fff;
21
- $switch-off-color: $gray-lightest;
22
18
 
23
19
  .has-switch {
24
20
  display: inline-block;
@@ -24,242 +24,6 @@ h1, h2, h3, h4, h5, h6,
24
24
  white-space: nowrap;
25
25
  }
26
26
 
27
- //
28
- // Menu
29
- // --------------------------------------------------
30
-
31
- // Recommended addition
32
- //
33
- // .menu {
34
- // height: 100vh;
35
- // position: fixed;
36
- // top: 0;
37
- // left: 0;
38
- // }
39
- //
40
- .menu {
41
- background-color: $menu-bg;
42
- color: $menu-color;
43
- border-radius: $menu-border-radius;
44
- width: 60px;
45
- height: 100%;
46
- overflow: hidden;
47
- z-index: 9000;
48
- transition: width 0.2s cubic-bezier(.4,0,.2,1);
49
- border-radius: 0;
50
-
51
- .body {
52
- overflow: hidden;
53
- }
54
-
55
- @media (max-width: $screen-xs-max) {
56
- .body,
57
- .menu-dropdown ol,
58
- .menu-dropright {
59
- overflow-y: auto;
60
- -webkit-overflow-scrolling: touch;
61
- }
62
- }
63
-
64
-
65
- &:hover {
66
- width: 230px;
67
-
68
- .body,
69
- .menu-dropdown ol,
70
- .menu-dropright {
71
- overflow-y: auto;
72
- -webkit-overflow-scrolling: touch;
73
- }
74
- }
75
-
76
- header,
77
- footer {
78
- .bar {
79
- height: $menu-header-height;
80
- position: relative;
81
- }
82
-
83
- .brand,
84
- .avatar {
85
- height: 24px;
86
- width: 24px;
87
- font-size: 24px;
88
- position: absolute;
89
- top: 18px;
90
- left: 18px;
91
- }
92
-
93
- .brand {
94
- font-size: 24px;
95
- padding-top: 5px;
96
- }
97
-
98
- p {
99
- margin: 0;
100
- margin-left: 60px;
101
- padding-top: 17.5px;
102
- line-height: 1.24em;
103
- white-space: nowrap;
104
- }
105
- }
106
-
107
- header {
108
- background-color: $menu-header-bg;
109
- color: $menu-header-color;
110
- z-index: 1000;
111
- position: static;
112
-
113
- a {
114
- color: $menu-header-link-color;
115
- }
116
-
117
- ol {
118
- margin-bottom: 0;
119
- border-top: 1px solid $menu-header-link-hover-bg;
120
- background-color: $menu-header-bg;
121
- width: 100%;
122
- position: absolute;
123
- max-height: 100%;
124
- overflow: hidden;
125
-
126
- a:hover {
127
- background-color: $menu-header-link-hover-bg;
128
- color: $menu-header-link-hover-color;
129
- }
130
- }
131
-
132
- .bar {
133
- background-color: $menu-header-bg;
134
- z-index: 2000;
135
- }
136
-
137
- #menu-header-submenu {
138
- width: 100%;
139
-
140
- &.open {
141
- top: $menu-header-height;
142
- bottom: 0;
143
- @media (max-width: $screen-xs-max) {
144
- position: fixed;
145
- top: $menu-header-height + $navbar-height;
146
- }
147
- }
148
- }
149
- }
150
-
151
- footer {
152
- background-color: $menu-footer-bg;
153
- color: $menu-footer-color;
154
-
155
- a {
156
- color: $menu-footer-link-color;
157
- }
158
-
159
- .back {
160
- i {
161
- color: $menu-footer-back-color;
162
- }
163
-
164
- a:hover i {
165
- color: $menu-footer-back-color;
166
- }
167
- }
168
-
169
- i {
170
- margin-left: 2px;
171
- }
172
-
173
- #menu-footer-submenu {
174
- top: 0;
175
- width: 100%;
176
- height: 100%;
177
-
178
- ol {
179
- margin-top: $menu-header-height;
180
- margin-bottom: 0;
181
- }
182
-
183
- &.open {
184
- ol {
185
- background-color: $menu-footer-bg;
186
- }
187
- }
188
- }
189
- }
190
-
191
- ol {
192
- // No need to set list-style: none; since li is block level
193
- padding-left: 0; // reset padding because ul and ol
194
- }
195
-
196
- li {
197
- display: block;
198
-
199
- a {
200
- display: block;
201
- padding: 10px 22px;
202
- text-decoration: none;
203
- white-space: nowrap;
204
- line-height: 30px;
205
- }
206
-
207
- i {
208
- width: 16px;
209
- height: 16px;
210
- }
211
- }
212
-
213
- .body,
214
- footer {
215
- li {
216
- a {
217
- background-color: $menu-link-bg;
218
- color: $menu-link-color;
219
-
220
- i {
221
- color: $menu-link-icon-color;
222
- }
223
-
224
- span {
225
- padding-left: 18px;
226
- font-weight: 600;
227
- -webkit-font-smoothing: antialiased;
228
- -moz-osx-font-smoothing: grayscale;
229
- }
230
-
231
- &:hover {
232
- background-color: $menu-link-hover-bg;
233
- color: $menu-link-hover-color;
234
-
235
- i {
236
- color: $menu-link-hover-icon-color;
237
- }
238
- }
239
- }
240
-
241
- &.active a,
242
- &.active:hover a,
243
- &.active:focus a {
244
- background-color: $menu-active-bg;
245
- color: $menu-active-color;
246
-
247
- i {
248
- color: $menu-active-icon-color;
249
- }
250
- }
251
- }
252
- }
253
- }
254
-
255
- .menu-toggle {
256
- height: $menu-header-height;
257
-
258
- .icon-bar {
259
- background-color: $menu-default-toggle-icon-bar-bg;
260
- }
261
- }
262
-
263
27
 
264
28
  //
265
29
  // Label
@@ -291,43 +55,6 @@ h1, h2, h3, h4, h5, h6,
291
55
  left: 0;
292
56
  }
293
57
 
294
- //
295
- // Utilities
296
- // --------------------------------------------------
297
- .flex-col {
298
- display: flex;
299
- flex-direction: column;
300
-
301
- &.collapse {
302
- display: none;
303
- }
304
-
305
- &.collapse.in {
306
- display: flex;
307
- }
308
- }
309
-
310
- .flex-row {
311
- display: flex;
312
-
313
- &.collapse {
314
- display: none;
315
- }
316
-
317
- &.collapse.in {
318
- display: flex;
319
- }
320
- }
321
-
322
- .flex-1 {
323
- flex: 1;
324
- }
325
-
326
- .flex-middle {
327
- margin-top: auto;
328
- margin-bottom: auto;
329
- }
330
-
331
58
  @media (max-width: $screen-xs-max) {
332
59
  .navbar-form {
333
60
  border-top: none;
@@ -364,34 +91,6 @@ h1, h2, h3, h4, h5, h6,
364
91
  }
365
92
  }
366
93
 
367
- // Sheet
368
- //
369
- // Custom wrapper to simulate a paper sheet container
370
-
371
- .sheet {
372
- width: auto;
373
- position: relative;
374
- border: 1px solid $sheet-border;
375
- background-color: $sheet-bg;
376
- border-radius: $sheet-border-radius;
377
- margin: $sheet-margin;
378
- padding: $sheet-padding;
379
- }
380
-
381
- .sheet-header {
382
- margin: (-1 * $sheet-padding);
383
- margin-bottom: $sheet-padding;
384
- padding: $sheet-padding;
385
- border-bottom: 1px solid $sheet-inner-border;
386
-
387
- h1, h2, h3, h4, h5, h6,
388
- .h1, .h2, .h3, .h4, .h5, .h6,
389
- p {
390
- padding: 0;
391
- margin: 0;
392
- }
393
- }
394
-
395
94
  // Tables
396
95
  //
397
96
  caption {