wcc-styles 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/README-GEM.md +43 -0
  3. data/lib/assets/images/wcc/styles/logo-dark.png +0 -0
  4. data/lib/assets/images/wcc/styles/logo-dark.svg +19 -0
  5. data/lib/assets/images/wcc/styles/logo-text.png +0 -0
  6. data/lib/assets/images/wcc/styles/logo.png +0 -0
  7. data/lib/assets/images/wcc/styles/logo.svg +15 -0
  8. data/lib/assets/javascripts/wcc/styles/application.js +3 -0
  9. data/lib/assets/javascripts/wcc/styles/selectize.js +13 -0
  10. data/lib/assets/javascripts/wcc/styles/tessa.js.coffee +173 -0
  11. data/lib/assets/javascripts/wcc/styles/wcc.datetimepicker.js +50 -0
  12. data/lib/assets/stylesheets/wcc/styles/admin/_admin_base.scss +24 -0
  13. data/lib/assets/stylesheets/wcc/styles/admin/_all.scss +1 -0
  14. data/lib/assets/stylesheets/wcc/styles/apps/_all.scss +2 -0
  15. data/lib/assets/stylesheets/wcc/styles/apps/_events.scss +22 -0
  16. data/lib/assets/stylesheets/wcc/styles/apps/_staff.scss +151 -0
  17. data/lib/assets/stylesheets/wcc/styles/base.css.scss +90 -0
  18. data/lib/assets/stylesheets/wcc/styles/base/all.css.scss +4 -0
  19. data/lib/assets/stylesheets/wcc/styles/base/custom_file_inputs.css.scss +7 -0
  20. data/lib/assets/stylesheets/wcc/styles/base/custom_selects.css.scss +8 -0
  21. data/lib/assets/stylesheets/wcc/styles/base/icons.css.scss +2 -0
  22. data/lib/assets/stylesheets/wcc/styles/snippets/_admin.scss +0 -0
  23. data/lib/assets/stylesheets/wcc/styles/snippets/_alerts.scss +95 -0
  24. data/lib/assets/stylesheets/wcc/styles/snippets/_all.scss +12 -0
  25. data/lib/assets/stylesheets/wcc/styles/snippets/_buttons.scss +126 -0
  26. data/lib/assets/stylesheets/wcc/styles/snippets/_datetimepicker.scss +555 -0
  27. data/lib/assets/stylesheets/wcc/styles/snippets/_elements.scss +174 -0
  28. data/lib/assets/stylesheets/wcc/styles/snippets/_forms.scss +236 -0
  29. data/lib/assets/stylesheets/wcc/styles/snippets/_grid.scss +183 -0
  30. data/lib/assets/stylesheets/wcc/styles/snippets/_labels.scss +117 -0
  31. data/lib/assets/stylesheets/wcc/styles/snippets/_navs.scss +146 -0
  32. data/lib/assets/stylesheets/wcc/styles/snippets/_normalize.scss +99 -0
  33. data/lib/assets/stylesheets/wcc/styles/snippets/_pagination.scss +135 -0
  34. data/lib/assets/stylesheets/wcc/styles/snippets/_selectize.scss +361 -0
  35. data/lib/assets/stylesheets/wcc/styles/snippets/_sidebar_slideout.scss +184 -0
  36. data/lib/assets/stylesheets/wcc/styles/snippets/_tables.scss +268 -0
  37. data/lib/assets/stylesheets/wcc/styles/snippets/_top_nav.scss +278 -0
  38. data/lib/assets/stylesheets/wcc/styles/variables/_colors.scss +28 -0
  39. data/lib/assets/stylesheets/wcc/styles/variables/_mixins.scss +14 -0
  40. data/lib/assets/stylesheets/wcc/styles/variables/_typography.scss +382 -0
  41. data/lib/wcc/styles.rb +16 -0
  42. data/lib/wcc/styles/engine.rb +32 -0
  43. data/lib/wcc/styles/helpers.rb +11 -0
  44. data/lib/wcc/styles/simple_form.rb +102 -0
  45. data/lib/wcc/styles/simple_form/asset_input.rb +46 -0
  46. data/lib/wcc/styles/simple_form/date_picker_input.rb +19 -0
  47. data/lib/wcc/styles/simple_form/historical_date_input.rb +50 -0
  48. data/lib/wcc/styles/simple_form/time_picker_input.rb +32 -0
  49. data/lib/wcc/styles/version.rb +5 -0
  50. metadata +190 -0
@@ -0,0 +1,361 @@
1
+ .selectize-control {
2
+ position: relative;
3
+ &.plugin-drag_drop {
4
+ .ui-sortable-placeholder::after {
5
+ content: '!';
6
+ visibility: hidden;
7
+ }
8
+ .ui-sortable-helper {
9
+ -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
10
+ //Instead of the line below you could use @includebox-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
11
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
12
+ }
13
+ }
14
+ &.plugin-remove_button {
15
+ [data-value] {
16
+ position: relative;
17
+ padding-right: 24px !important;
18
+ .remove {
19
+ z-index: 1;
20
+ position: absolute;
21
+ top: 0;
22
+ right: 0;
23
+ bottom: 0;
24
+ width: 17px;
25
+ text-align: center;
26
+ font-weight: bold;
27
+ font-size: 12px;
28
+ color: inherit;
29
+ text-decoration: none;
30
+ vertical-align: middle;
31
+ display: inline-block;
32
+ padding: 2px 0 0;
33
+ border-left: 1px solid #EB7F4C;
34
+ -webkit-border-radius: 0 2px 2px 0;
35
+ -moz-border-radius: 0 2px 2px 0;
36
+ //Instead of the line below you could use @includeborder-radius($radius, $vertical-radius)
37
+ border-radius: 0 2px 2px 0;
38
+ -webkit-box-sizing: border-box;
39
+ -moz-box-sizing: border-box;
40
+ //Instead of the line below you could use @includebox-sizing($bs)
41
+ box-sizing: border-box;
42
+ &:hover {
43
+ background: rgba(0, 0, 0, 0.05);
44
+ }
45
+ }
46
+ }
47
+ .disabled [data-value] .remove {
48
+ border-left-color: #aaaaaa;
49
+ &:hover {
50
+ background: none;
51
+ }
52
+ }
53
+ }
54
+ &.multi .selectize-input {
55
+ [data-value] {
56
+ text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3);
57
+ -webkit-border-radius: 3px;
58
+ background-color: $orange;
59
+
60
+ &.active {
61
+ background-color: $dark-orange;
62
+ }
63
+ }
64
+ > div {
65
+ cursor: pointer;
66
+ margin: 0 3px 3px 0;
67
+ padding: 2px 6px;
68
+ background: #cc6e42;
69
+ color: #ffffff;
70
+ border: 1px solid #EB7F4C;
71
+ &.active {
72
+ background: #EB7F4C;
73
+ color: #ffffff;
74
+ border: 1px solid #cc6e42;
75
+ }
76
+ }
77
+ }
78
+ &.single .selectize-input {
79
+ cursor: pointer;
80
+ background-color: #fff;
81
+ padding: 15px;
82
+ font-size: 1.125em;
83
+ border: none;
84
+ box-shadow: none;
85
+ -webkit-appearance: none;
86
+
87
+ input {
88
+ cursor: pointer;
89
+ }
90
+
91
+ &:after {
92
+ content: ' ';
93
+ display: block;
94
+ position: absolute;
95
+ top: 50%;
96
+ right: 15px;
97
+ margin-top: -3px;
98
+ width: 0;
99
+ height: 0;
100
+ border-style: solid;
101
+ border-width: 5px 5px 0 5px;
102
+ border-color: #808080 transparent transparent transparent;
103
+ }
104
+ }
105
+ &.rtl .selectize-input > input {
106
+ margin: 0 4px 0 -2px !important;
107
+ }
108
+ .selectize-input.disabled {
109
+ opacity: 0.5;
110
+ background-color: #fafafa;
111
+ }
112
+ }
113
+ .selectize-dropdown-header {
114
+ position: relative;
115
+ padding: 5px 8px;
116
+ border-bottom: 1px solid #d0d0d0;
117
+ background: #f8f8f8;
118
+ -webkit-border-radius: 3px 3px 0 0;
119
+ -moz-border-radius: 3px 3px 0 0;
120
+ //Instead of the line below you could use @includeborder-radius($radius, $vertical-radius)
121
+ border-radius: 3px 3px 0 0;
122
+ }
123
+ .selectize-dropdown-header-close {
124
+ position: absolute;
125
+ right: 8px;
126
+ top: 50%;
127
+ color: #303030;
128
+ opacity: 0.4;
129
+ margin-top: -12px;
130
+ line-height: 20px;
131
+ font-size: 20px !important;
132
+ &:hover {
133
+ color: #000000;
134
+ }
135
+ }
136
+ .selectize-dropdown {
137
+ color: #303030;
138
+ font-family: inherit;
139
+ font-size: 13px;
140
+ line-height: 25px;
141
+ -webkit-font-smoothing: inherit;
142
+ position: absolute;
143
+ z-index: 10;
144
+ border: 1px solid #d0d0d0;
145
+ background: #ffffff;
146
+ margin: -1px 0 0;
147
+ border-top: 0 none;
148
+
149
+ &.plugin-optgroup_columns {
150
+ .optgroup {
151
+ border-right: 1px solid #f2f2f2;
152
+ border-top: 0 none;
153
+ float: left;
154
+ -webkit-box-sizing: border-box;
155
+ -moz-box-sizing: border-box;
156
+ box-sizing: border-box;
157
+ &:last-child {
158
+ border-right: 0 none;
159
+ }
160
+ &:before {
161
+ display: none;
162
+ }
163
+ }
164
+ .optgroup-header {
165
+ border-top: 0 none;
166
+ }
167
+ }
168
+ [data-selectable] {
169
+ cursor: pointer;
170
+ overflow: hidden;
171
+ padding: 10px;
172
+
173
+ .highlight {
174
+ background: rgba(233, 127, 82, 0.2);
175
+ }
176
+ }
177
+ .optgroup-header {
178
+ padding: 5px 8px;
179
+ color: #303030;
180
+ background: #ffffff;
181
+ cursor: default;
182
+ padding-top: 7px;
183
+ font-weight: bold;
184
+ font-size: 0.85em;
185
+ }
186
+ .optgroup {
187
+ border-top: 1px solid #f0f0f0;
188
+ &:first-child {
189
+ border-top: 0 none;
190
+ .optgroup-header {
191
+ border-top: 0 none;
192
+ }
193
+ }
194
+ }
195
+ .active {
196
+ background-color: #FEF8F6;
197
+ }
198
+ .create {
199
+ color: rgba(48, 48, 48, 0.5);
200
+ }
201
+ &.single {
202
+ border-color: #b8b8b8;
203
+ }
204
+ }
205
+ .selectize-input {
206
+ color: #303030;
207
+ font-family: inherit;
208
+ font-size: 13px;
209
+ line-height: 18px;
210
+ -webkit-font-smoothing: inherit;
211
+ background: #ffffff;
212
+ cursor: text;
213
+ display: inline-block;
214
+ padding: 15px;
215
+ width: 100%;
216
+ overflow: hidden;
217
+ position: relative;
218
+ z-index: 1;
219
+ box-shadow: none;
220
+ background: transparent;
221
+ background-image: none;
222
+ -webkit-appearance: none;
223
+
224
+ input {
225
+ color: #303030;
226
+ font-family: inherit;
227
+ font-size: 13px;
228
+ line-height: 18px;
229
+ -webkit-font-smoothing: inherit;
230
+ }
231
+ &.full {
232
+ background-color: #ffffff;
233
+ }
234
+ &.disabled {
235
+ cursor: default !important;
236
+ * {
237
+ cursor: default !important;
238
+ }
239
+ }
240
+ &.focus {
241
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
242
+ //Instead of the line below you could use @includebox-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
243
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
244
+ }
245
+ &.dropdown-active {
246
+ -webkit-border-radius: 3px 3px 0 0;
247
+ -moz-border-radius: 3px 3px 0 0;
248
+ //Instead of the line below you could use @includeborder-radius($radius, $vertical-radius)
249
+ border-radius: 3px 3px 0 0;
250
+ }
251
+ > {
252
+ * {
253
+ vertical-align: baseline;
254
+ display: inline-block;
255
+ zoom: 1;
256
+ *display: inline;
257
+ }
258
+ input {
259
+ display: inline-block !important;
260
+ padding: 0 !important;
261
+ min-height: 0 !important;
262
+ max-height: none !important;
263
+ max-width: 100% !important;
264
+ margin: 0 1px !important;
265
+ text-indent: 0 !important;
266
+ border: 0 none !important;
267
+ background: none !important;
268
+ line-height: inherit !important;
269
+ -webkit-user-select: auto !important;
270
+ -webkit-box-shadow: none !important;
271
+ //Instead of the line below you could use @includebox-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
272
+ box-shadow: none !important;
273
+ &:focus {
274
+ outline: none !important;
275
+ }
276
+ }
277
+ input::-ms-clear {
278
+ display: none;
279
+ }
280
+ }
281
+ &.dropdown-active::before {
282
+ content: ' ';
283
+ display: block;
284
+ position: absolute;
285
+ background: #f0f0f0;
286
+ height: 1px;
287
+ bottom: 0;
288
+ left: 0;
289
+ right: 0;
290
+ }
291
+ }
292
+ .selectize-input::after {
293
+ content: ' ';
294
+ display: block;
295
+ clear: left;
296
+ }
297
+ .selectize-dropdown-content {
298
+ overflow-y: auto;
299
+ overflow-x: hidden;
300
+ max-height: 200px;
301
+ }
302
+ .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
303
+ visibility: visible !important;
304
+ background: rgba(0, 0, 0, 0.06) !important;
305
+ border: 0 none !important;
306
+ -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
307
+ //Instead of the line below you could use @includebox-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
308
+ box-shadow: inset 0 0 12px 4px #ffffff;
309
+ }
310
+ .selectize-control.plugin-remove_button [data-value].active .remove {
311
+ border-left-color: #cc6e42;
312
+ }
313
+ .selectize-control.single .selectize-input {
314
+ &.input-active {
315
+ background: #ffffff;
316
+ cursor: text;
317
+ display: inline-block;
318
+ cursor: text;
319
+ input {
320
+ cursor: text;
321
+ }
322
+ }
323
+ &.dropdown-active:after {
324
+ margin-top: -4px;
325
+ border-width: 0 5px 5px 5px;
326
+ border-color: transparent transparent #808080 transparent;
327
+ }
328
+ }
329
+ .selectize-control.multi .selectize-input {
330
+ &.has-items {
331
+ padding: 15px 15px 6px 15px;
332
+ }
333
+ &.disabled {
334
+ [data-value] {
335
+ color: #999;
336
+ text-shadow: none;
337
+ background: none;
338
+ -webkit-box-shadow: none;
339
+ box-shadow: none;
340
+ border-color: #e6e6e6;
341
+ .remove {
342
+ border-color: #e6e6e6;
343
+ background: none;
344
+ }
345
+ }
346
+ > div {
347
+ color: #ffffff;
348
+ background: #d2d2d2;
349
+ border: 1px solid #aaaaaa;
350
+ &.active {
351
+ color: #ffffff;
352
+ background: #d2d2d2;
353
+ border: 1px solid #aaaaaa;
354
+ }
355
+ }
356
+ }
357
+ }
358
+ .selectize-control.rtl.single .selectize-input:after {
359
+ left: 15px;
360
+ right: auto;
361
+ }
@@ -0,0 +1,184 @@
1
+ *,
2
+ *:after,
3
+ *::before {
4
+ -moz-box-sizing: border-box;
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ html,
9
+ body,
10
+ .st-container,
11
+ .st-pusher,
12
+ .st-content {
13
+ height: 100%;
14
+ }
15
+
16
+ .st-content {
17
+ overflow-x: hidden;
18
+ background-color: #F8F8F8;
19
+ -webkit-overflow-scrolling: touch;
20
+ }
21
+
22
+ .st-content,
23
+ .st-content-inner {
24
+ position: relative;
25
+ }
26
+
27
+ .st-container {
28
+ position: relative;
29
+ overflow: hidden;
30
+ }
31
+
32
+ .st-pusher {
33
+ -webkit-transition: -webkit-transform 0.5s;
34
+ height: 100%;
35
+ overflow: hidden;
36
+ position: relative;
37
+ right: 0;
38
+ transition: transform 0.5s;
39
+ z-index: 99999;
40
+ }
41
+
42
+ .st-pusher::after {
43
+ -webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
44
+ background: rgba(0,0,0,0.3);
45
+ content: '';
46
+ height: 0;
47
+ opacity: 0;
48
+ position: absolute;
49
+ right: 0;
50
+ top: 0;
51
+ transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
52
+ width: 0;
53
+ z-index: 2000;
54
+ }
55
+
56
+ .st-menu-open .st-pusher::after {
57
+ width: 100%;
58
+ height: 100%;
59
+ opacity: 1;
60
+ -webkit-transition: opacity 0.5s;
61
+ transition: opacity 0.5s;
62
+ }
63
+
64
+ .st-menu {
65
+ position: absolute;
66
+ top: 0;
67
+ right: 0;
68
+ z-index: 100;
69
+ visibility: hidden;
70
+ width: 300px;
71
+ height: 100%;
72
+ background: #4F90BA;
73
+ -webkit-transition: all 0.5s;
74
+ overflow-y: auto;
75
+ color: white;
76
+ transition: all 0.5s;
77
+
78
+ .slideout-content {
79
+ padding: 40px;
80
+
81
+ ul {
82
+ margin: 0;
83
+ padding: 0;
84
+ list-style: none;
85
+ }
86
+
87
+ h2 {
88
+ font-size: 2em;
89
+ font-weight: 300;
90
+ line-height: 1em;
91
+ margin: 0;
92
+ margin-bottom: 20px;
93
+ text-shadow: 0 0 1px rgba(0,0,0,0.1);
94
+ }
95
+
96
+ form {
97
+
98
+ input {
99
+ margin-bottom: 20px;
100
+ height: 40px;
101
+ }
102
+
103
+ button {
104
+ background-color: $dark-grey;
105
+ font-size: 14px;
106
+ padding: 20px 10px;
107
+ }
108
+ }
109
+
110
+ }
111
+ }
112
+
113
+ .st-menu::after {
114
+ -webkit-transition: opacity 0.5s;
115
+ background: rgba(0,0,0,0.2);
116
+ content: '';
117
+ height: 100%;
118
+ opacity: 1;
119
+ position: absolute;
120
+ right: 0;
121
+ top: 0;
122
+ transition: opacity 0.5s;
123
+ width: 100%;
124
+ }
125
+
126
+ .st-menu-open .st-menu::after {
127
+ -webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
128
+ height: 0;
129
+ opacity: 0;
130
+ transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
131
+ width: 0;
132
+ }
133
+
134
+ /* content style */
135
+
136
+
137
+ /* Individual effects */
138
+
139
+ /* Profile Reveal */
140
+ .st-effect-profile-reveal.st-menu-open .st-pusher {
141
+ -webkit-transform: translate3d(-300px, 0, 0);
142
+ transform: translate3d(-300px, 0, 0);
143
+ }
144
+
145
+ .st-effect-profile-reveal.st-menu {
146
+ z-index: 1;
147
+ }
148
+
149
+ .st-effect-profile-reveal.st-menu-open .st-effect-profile-reveal.st-menu {
150
+ visibility: visible;
151
+ -webkit-transition: -webkit-transform 0.5s;
152
+ transition: transform 0.5s;
153
+ }
154
+
155
+ .st-effect-profile-reveal.st-menu::after {
156
+ display: none;
157
+ }
158
+
159
+ /* Password Reveal */
160
+ .st-effect-password-reveal.st-menu-open .st-pusher {
161
+ -webkit-transform: translate3d(-300px, 0, 0);
162
+ transform: translate3d(-300px, 0, 0);
163
+ }
164
+
165
+ .st-effect-password-reveal.st-menu {
166
+ z-index: 1;
167
+ }
168
+
169
+ .st-effect-password-reveal.st-menu-open .st-effect-password-reveal.st-menu {
170
+ visibility: visible;
171
+ -webkit-transition: -webkit-transform 0.5s;
172
+ transition: transform 0.5s;
173
+ }
174
+
175
+ .st-effect-password-reveal.st-menu::after {
176
+ display: none;
177
+ }
178
+
179
+
180
+ /* Fallback example for browsers that don't support 3D transforms (and no JS fallback) */
181
+ .no-csstransforms3d .st-pusher,
182
+ .no-js .st-pusher {
183
+ padding-right: 300px;
184
+ }