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,268 @@
1
+ /*===========================================
2
+ Table Styles
3
+ ============================================*/
4
+
5
+ table { max-width: 100%; background-color: transparent; }
6
+
7
+ thead { background-color: #777777; color: white; font-size: 12px; font-weight: 400; }
8
+
9
+ th { text-align: left; }
10
+
11
+ td { padding: 10px; vertical-align: center; }
12
+
13
+ .table { width: 100%; margin-bottom: 20px; }
14
+
15
+ .table > thead > tr > th,
16
+ .table > tbody > tr > th,
17
+ .table > tfoot > tr > th,
18
+ .table > thead > tr > td,
19
+ .table > tbody > tr > td,
20
+ .table > tfoot > tr > td {
21
+ padding: 8px 15px;
22
+ line-height: 1.42857143;
23
+ }
24
+ .table > thead > tr > th {
25
+ text-transform: uppercase;
26
+ letter-spacing: 0.2em;
27
+ font-size: 10px;
28
+ font-weight: 400;
29
+ }
30
+ .table > caption + thead > tr:first-child > th,
31
+ .table > colgroup + thead > tr:first-child > th,
32
+ .table > thead:first-child > tr:first-child > th,
33
+ .table > caption + thead > tr:first-child > td,
34
+ .table > colgroup + thead > tr:first-child > td,
35
+ .table > thead:first-child > tr:first-child > td {
36
+ border-top: 0;
37
+ }
38
+ .table > tbody + tbody {
39
+ border-top: 2px solid $neutral5;
40
+ }
41
+ .table .table {
42
+ background-color: #ffffff;
43
+ }
44
+
45
+ .table {
46
+
47
+ &.condensed > thead > tr > th,
48
+ &.condensed > tbody > tr > th,
49
+ &.condensed > tfoot > tr > th,
50
+ &.condensed > thead > tr > td,
51
+ &.condensed > tbody > tr > td,
52
+ &.condensed > tfoot > tr > td {
53
+ padding: 5px;
54
+ }
55
+
56
+ &.bordered {
57
+ border: 1px solid $neutral5;
58
+ }
59
+
60
+ &.bordered > thead > tr > th,
61
+ &.bordered > tbody > tr > th,
62
+ &.bordered > tfoot > tr > th,
63
+ &.bordered > thead > tr > td,
64
+ &.bordered > tbody > tr > td,
65
+ &.bordered > tfoot > tr > td {
66
+ border: 1px solid $neutral5;
67
+ }
68
+ &.bordered > thead > tr > th,
69
+ &.bordered > thead > tr > td {
70
+ border-bottom-width: 2px;
71
+ }
72
+
73
+ &.striped > tbody > tr:nth-child(odd) > td,
74
+ &.striped > tbody > tr:nth-child(odd) > th {
75
+ background-color: $neutral1;
76
+ }
77
+
78
+ }
79
+
80
+ .table-condensed > thead > tr > th,
81
+ .table-condensed > tbody > tr > th,
82
+ .table-condensed > tfoot > tr > th,
83
+ .table-condensed > thead > tr > td,
84
+ .table-condensed > tbody > tr > td,
85
+ .table-condensed > tfoot > tr > td {
86
+ padding: 5px;
87
+ }
88
+ .table-bordered {
89
+ border: 1px solid $neutral5;
90
+ }
91
+ .table-bordered > thead > tr > th,
92
+ .table-bordered > tbody > tr > th,
93
+ .table-bordered > tfoot > tr > th,
94
+ .table-bordered > thead > tr > td,
95
+ .table-bordered > tbody > tr > td,
96
+ .table-bordered > tfoot > tr > td {
97
+ border: 1px solid $neutral5;
98
+ }
99
+ .table-bordered > thead > tr > th,
100
+ .table-bordered > thead > tr > td {
101
+ border-bottom-width: 2px;
102
+ }
103
+ .table-striped > tbody > tr:nth-child(odd) > td,
104
+ .table-striped > tbody > tr:nth-child(odd) > th {
105
+ background-color: $neutral1;
106
+ }
107
+ .table-hover > tbody > tr:hover > td,
108
+ .table-hover > tbody > tr:hover > th {
109
+ background-color: #f5f5f5;
110
+ }
111
+ table col[class*="col-"] {
112
+ position: static;
113
+ float: none;
114
+ display: table-column;
115
+ }
116
+ table td[class*="col-"],
117
+ table th[class*="col-"] {
118
+ position: static;
119
+ float: none;
120
+ display: table-cell;
121
+ }
122
+ .table > thead > tr > td.active,
123
+ .table > tbody > tr > td.active,
124
+ .table > tfoot > tr > td.active,
125
+ .table > thead > tr > th.active,
126
+ .table > tbody > tr > th.active,
127
+ .table > tfoot > tr > th.active,
128
+ .table > thead > tr.active > td,
129
+ .table > tbody > tr.active > td,
130
+ .table > tfoot > tr.active > td,
131
+ .table > thead > tr.active > th,
132
+ .table > tbody > tr.active > th,
133
+ .table > tfoot > tr.active > th {
134
+ background-color: #f5f5f5;
135
+ }
136
+ .table-hover > tbody > tr > td.active:hover,
137
+ .table-hover > tbody > tr > th.active:hover,
138
+ .table-hover > tbody > tr.active:hover > td,
139
+ .table-hover > tbody > tr.active:hover > th {
140
+ background-color: #e8e8e8;
141
+ }
142
+ .table > thead > tr > td.success,
143
+ .table > tbody > tr > td.success,
144
+ .table > tfoot > tr > td.success,
145
+ .table > thead > tr > th.success,
146
+ .table > tbody > tr > th.success,
147
+ .table > tfoot > tr > th.success,
148
+ .table > thead > tr.success > td,
149
+ .table > tbody > tr.success > td,
150
+ .table > tfoot > tr.success > td,
151
+ .table > thead > tr.success > th,
152
+ .table > tbody > tr.success > th,
153
+ .table > tfoot > tr.success > th {
154
+ background-color: #dff0d8;
155
+ }
156
+ .table-hover > tbody > tr > td.success:hover,
157
+ .table-hover > tbody > tr > th.success:hover,
158
+ .table-hover > tbody > tr.success:hover > td,
159
+ .table-hover > tbody > tr.success:hover > th {
160
+ background-color: #d0e9c6;
161
+ }
162
+ .table > thead > tr > td.info,
163
+ .table > tbody > tr > td.info,
164
+ .table > tfoot > tr > td.info,
165
+ .table > thead > tr > th.info,
166
+ .table > tbody > tr > th.info,
167
+ .table > tfoot > tr > th.info,
168
+ .table > thead > tr.info > td,
169
+ .table > tbody > tr.info > td,
170
+ .table > tfoot > tr.info > td,
171
+ .table > thead > tr.info > th,
172
+ .table > tbody > tr.info > th,
173
+ .table > tfoot > tr.info > th {
174
+ background-color: #d9edf7;
175
+ }
176
+ .table-hover > tbody > tr > td.info:hover,
177
+ .table-hover > tbody > tr > th.info:hover,
178
+ .table-hover > tbody > tr.info:hover > td,
179
+ .table-hover > tbody > tr.info:hover > th {
180
+ background-color: #c4e3f3;
181
+ }
182
+ .table > thead > tr > td.warning,
183
+ .table > tbody > tr > td.warning,
184
+ .table > tfoot > tr > td.warning,
185
+ .table > thead > tr > th.warning,
186
+ .table > tbody > tr > th.warning,
187
+ .table > tfoot > tr > th.warning,
188
+ .table > thead > tr.warning > td,
189
+ .table > tbody > tr.warning > td,
190
+ .table > tfoot > tr.warning > td,
191
+ .table > thead > tr.warning > th,
192
+ .table > tbody > tr.warning > th,
193
+ .table > tfoot > tr.warning > th {
194
+ background-color: #fcf8e3;
195
+ }
196
+ .table-hover > tbody > tr > td.warning:hover,
197
+ .table-hover > tbody > tr > th.warning:hover,
198
+ .table-hover > tbody > tr.warning:hover > td,
199
+ .table-hover > tbody > tr.warning:hover > th {
200
+ background-color: #faf2cc;
201
+ }
202
+ .table > thead > tr > td.danger,
203
+ .table > tbody > tr > td.danger,
204
+ .table > tfoot > tr > td.danger,
205
+ .table > thead > tr > th.danger,
206
+ .table > tbody > tr > th.danger,
207
+ .table > tfoot > tr > th.danger,
208
+ .table > thead > tr.danger > td,
209
+ .table > tbody > tr.danger > td,
210
+ .table > tfoot > tr.danger > td,
211
+ .table > thead > tr.danger > th,
212
+ .table > tbody > tr.danger > th,
213
+ .table > tfoot > tr.danger > th {
214
+ background-color: #f2dede;
215
+ }
216
+ .table-hover > tbody > tr > td.danger:hover,
217
+ .table-hover > tbody > tr > th.danger:hover,
218
+ .table-hover > tbody > tr.danger:hover > td,
219
+ .table-hover > tbody > tr.danger:hover > th {
220
+ background-color: #ebcccc;
221
+ }
222
+ @media (max-width: 767px) {
223
+ .table-responsive {
224
+ width: 100%;
225
+ margin-bottom: 15px;
226
+ overflow-y: hidden;
227
+ overflow-x: scroll;
228
+ -ms-overflow-style: -ms-autohiding-scrollbar;
229
+ border: 1px solid $neutral5;
230
+ -webkit-overflow-scrolling: touch;
231
+ }
232
+ .table-responsive > .table {
233
+ margin-bottom: 0;
234
+ }
235
+ .table-responsive > .table > thead > tr > th,
236
+ .table-responsive > .table > tbody > tr > th,
237
+ .table-responsive > .table > tfoot > tr > th,
238
+ .table-responsive > .table > thead > tr > td,
239
+ .table-responsive > .table > tbody > tr > td,
240
+ .table-responsive > .table > tfoot > tr > td {
241
+ white-space: nowrap;
242
+ }
243
+ .table-responsive > .table-bordered {
244
+ border: 0;
245
+ }
246
+ .table-responsive > .table-bordered > thead > tr > th:first-child,
247
+ .table-responsive > .table-bordered > tbody > tr > th:first-child,
248
+ .table-responsive > .table-bordered > tfoot > tr > th:first-child,
249
+ .table-responsive > .table-bordered > thead > tr > td:first-child,
250
+ .table-responsive > .table-bordered > tbody > tr > td:first-child,
251
+ .table-responsive > .table-bordered > tfoot > tr > td:first-child {
252
+ border-left: 0;
253
+ }
254
+ .table-responsive > .table-bordered > thead > tr > th:last-child,
255
+ .table-responsive > .table-bordered > tbody > tr > th:last-child,
256
+ .table-responsive > .table-bordered > tfoot > tr > th:last-child,
257
+ .table-responsive > .table-bordered > thead > tr > td:last-child,
258
+ .table-responsive > .table-bordered > tbody > tr > td:last-child,
259
+ .table-responsive > .table-bordered > tfoot > tr > td:last-child {
260
+ border-right: 0;
261
+ }
262
+ .table-responsive > .table-bordered > tbody > tr:last-child > th,
263
+ .table-responsive > .table-bordered > tfoot > tr:last-child > th,
264
+ .table-responsive > .table-bordered > tbody > tr:last-child > td,
265
+ .table-responsive > .table-bordered > tfoot > tr:last-child > td {
266
+ border-bottom: 0;
267
+ }
268
+ }
@@ -0,0 +1,278 @@
1
+ /*===========================================
2
+ Header Styles
3
+ ============================================*/
4
+
5
+ header {
6
+ width: 100%;
7
+ background-color: white;
8
+ border-bottom: 1px solid rgba(0,0,0,0.1);
9
+ position: relative;
10
+ min-height: 70px;
11
+ font-weight: 300;
12
+ padding: 0px 30px;
13
+ z-index: 1000;
14
+
15
+ .logo-holder {
16
+ display: inline-block;
17
+ float: left;
18
+ height: 70px;
19
+
20
+ h1.wm-logo-title {
21
+ background: image-url("wcc/styles/logo-dark.png") no-repeat;
22
+ background-image: image-url("wcc/styles/logo-dark.svg"), none;
23
+ background-size: 30px 30px;
24
+ background-position: 0 50%;
25
+ font-size: 14px;
26
+ font-weight: 600;
27
+ letter-spacing: .3em;
28
+ padding: 25px 45px;
29
+ text-transform: uppercase;
30
+
31
+ a {
32
+ color: $text;
33
+
34
+ &:visited { color: $text; }
35
+ }
36
+ }
37
+
38
+ h1.logo {
39
+ width: 200px;
40
+ height: 70px;
41
+ margin: 15px 0 0 0;
42
+ background: image-url("wcc/styles/logo-dark.png") no-repeat;
43
+ background-image: image-url("wcc/styles/logo-dark.svg"), none;
44
+ background-size: 100%;
45
+ background-repeat: no-repeat;
46
+ font: 0/0 a;
47
+ text-shadow: none;
48
+ color: transparent;
49
+
50
+ a {
51
+ width: 100%;
52
+ height: 70px;
53
+ float: left;
54
+ color: $text;
55
+ display: inline;
56
+ cursor: pointer;
57
+ }
58
+ }
59
+
60
+ }
61
+
62
+ .account-block {
63
+ line-height: 70px;
64
+ float: right;
65
+ display: inline;
66
+ }
67
+
68
+ &.dark-bar {
69
+ background-color: #393939;
70
+ color: white;
71
+ margin: 0;
72
+
73
+ h1.wm-logo-title {
74
+ background: image-url("wcc/styles/logo.png") no-repeat;
75
+ background-image: image-url("wcc/styles/logo.svg"), none;
76
+ background-size: 30px 30px;
77
+ background-position: 0 50%;
78
+ font-weight: 600;
79
+
80
+
81
+ a {
82
+ color: white;
83
+
84
+ &:visited { color: white; }
85
+ }
86
+ }
87
+
88
+ nav {
89
+ background-color: #393939;
90
+ color: white;
91
+
92
+ ul li {
93
+ border-right: 1px solid rgba(255,255,255,0.1);
94
+ color: white;
95
+
96
+ a {
97
+ color: white;
98
+ }
99
+ }
100
+
101
+ li a:hover {
102
+ background-color: black;
103
+ }
104
+
105
+ li:last-of-type {
106
+ border-right: 1px solid rgba(0, 0, 0, 0);
107
+ }
108
+ }
109
+ }
110
+
111
+ nav {
112
+ height: 70px;
113
+ display: inline-block;
114
+
115
+ ul {
116
+ margin: 0;
117
+ padding: 0;
118
+ font-size: .825em;
119
+ list-style: none;
120
+ line-height: 70px;
121
+ color: $text;
122
+ float: left;
123
+ display: inline-block;
124
+
125
+ li {
126
+ border-right: 1px solid rgba(0,0,0,0.1);
127
+ margin: 0;
128
+ height: 70px;
129
+ display: inline-block;
130
+ float: left;
131
+
132
+ a {
133
+ width: 100%;
134
+ height: 70px;
135
+ line-height: 70px;
136
+ color: $text;
137
+ font-size: 1.25em;
138
+ font-weight: 400;
139
+ padding: 0 30px;
140
+ float: left;
141
+
142
+ &:hover {
143
+ background-color: $neutral2;
144
+ }
145
+ }
146
+
147
+ &:hover ul {
148
+ position: absolute;
149
+ width: 200px;
150
+ margin: 0;
151
+ margin-top: 70px;
152
+ background-color: $green;
153
+ display: list-item !important;
154
+ }
155
+
156
+ ul {
157
+ display:none;
158
+
159
+ li {
160
+ width: 200px;
161
+
162
+ a {
163
+ width: 200px;
164
+ float: left;
165
+
166
+ &:hover {
167
+ background-color: darken($green, 15%);
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }
173
+
174
+ &.main {
175
+ float: left;
176
+ margin: 0;
177
+ }
178
+
179
+ }
180
+ }
181
+
182
+ .search {
183
+ float: right;
184
+ position: relative;
185
+
186
+ i {
187
+ position: absolute;
188
+ top: 17px;
189
+ left: 15px;
190
+ z-index: 10;
191
+ }
192
+
193
+ input[type="search"] {
194
+ width: 100%;
195
+ height: 40px;
196
+ margin: 5px 0;
197
+ padding: 0px 15px 0 35px;
198
+ font-size: 1em;
199
+ border: none;
200
+ position: absolute;
201
+ top: 0;
202
+ right: 0;
203
+ z-index: 5;
204
+ }
205
+ }
206
+ }
207
+
208
+ @media (max-width: 480px) {
209
+ header {
210
+ padding: 0 10px;
211
+
212
+ nav {
213
+ height: auto;
214
+ width: 100%;
215
+
216
+ ul {
217
+ width: 100%;
218
+ height: auto;
219
+ line-height: inherit;
220
+
221
+ li,
222
+ li a {
223
+ height: 30px;
224
+ line-height: 30px;
225
+ }
226
+ }
227
+ }
228
+
229
+ .account-block .welcome {
230
+ display: none;
231
+ }
232
+
233
+ nav ul li {
234
+ width: 100%;
235
+ border-right: 0;
236
+ border-bottom: 1px solid rgba(0,0,0,0.1);
237
+
238
+ &:last-child {
239
+ border: 0;
240
+ }
241
+
242
+ a {
243
+ width: 100%;
244
+ }
245
+ }
246
+
247
+ &.dark-bar nav ul li {
248
+ border-right: 0;
249
+ border-bottom: 1px solid rgba(255,255,255,0.1);
250
+
251
+ &:last-child {
252
+ border: 0;
253
+ }
254
+ }
255
+ }
256
+ }
257
+ .page-header {
258
+ margin-top: 30px;
259
+
260
+ &.border-bottom {
261
+ border-bottom: 2px solid $neutral2;
262
+ padding-bottom: 10px;
263
+ margin-bottom: 30px;
264
+ }
265
+
266
+ form.search {
267
+ display: inline-block;
268
+ margin: 2px 10px;
269
+
270
+ input[type="search"] {
271
+ @extend input[type="text"];
272
+ padding: 10px;
273
+ margin: 0;
274
+ vertical-align: middle;
275
+ }
276
+ }
277
+
278
+ }