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,117 @@
1
+ // Styles for Labels - Managed in /theme/sass/snippets/_labels.scss
2
+
3
+ .label {
4
+ background-color: $light-grey;
5
+ display: inline;
6
+ padding: .2em .6em .3em;
7
+ font-size: 75%;
8
+ font-weight: bold;
9
+ line-height: 1;
10
+ color: #fff;
11
+ text-align: center;
12
+ white-space: nowrap;
13
+ vertical-align: baseline;
14
+ border-radius: .25em;
15
+
16
+ &.primary {
17
+ background-color: $orange;
18
+ }
19
+
20
+ &.success {
21
+ background-color: $green;
22
+ }
23
+
24
+ &.warning {
25
+ background-color: $yellow;
26
+ }
27
+
28
+ &.info {
29
+ background-color: $blue;
30
+ }
31
+
32
+ &.danger {
33
+ background-color: $red;
34
+ }
35
+ }
36
+
37
+ .label-info {
38
+ background-color: $blue;
39
+ }
40
+
41
+ .label[href]:hover,
42
+ .label[href]:focus {
43
+ background-color: $light-grey;
44
+ }
45
+
46
+ .primary[href]:hover,
47
+ .primary[href]:focus {
48
+ background-color: $orange;
49
+ }
50
+
51
+ .success[href]:hover,
52
+ .success[href]:focus {
53
+ background-color: $green;
54
+ }
55
+
56
+ .warning[href]:hover,
57
+ .warning[href]:focus {
58
+ background-color: #e8c941;
59
+ }
60
+
61
+ .danger[href]:hover,
62
+ .danger[href]:focus {
63
+ background-color: #c9302c;
64
+ }
65
+
66
+ a.label:hover,
67
+ a.label:focus {
68
+ color: #fff;
69
+ text-decoration: none;
70
+ cursor: pointer;
71
+ }
72
+
73
+ .label:empty {
74
+ display: none;
75
+ }
76
+
77
+ .btn .label {
78
+ position: relative;
79
+ top: -1px;
80
+ }
81
+
82
+ .badge {
83
+ display: inline-block;
84
+ min-width: 10px;
85
+ padding: 3px 7px;
86
+ font-size: 12px;
87
+ font-weight: bold;
88
+ line-height: 1;
89
+ color: #fff;
90
+ text-align: center;
91
+ white-space: nowrap;
92
+ vertical-align: baseline;
93
+ background-color: #777;
94
+ border-radius: 10px;
95
+ }
96
+
97
+ .badge:empty {
98
+ display: none;
99
+ }
100
+
101
+ .btn .badge {
102
+ position: relative;
103
+ top: -1px;
104
+ }
105
+
106
+ .btn-xs .badge,
107
+ .btn-group-xs > .btn .badge {
108
+ top: 0;
109
+ padding: 1px 5px;
110
+ }
111
+
112
+ a.badge:hover,
113
+ a.badge:focus {
114
+ color: #fff;
115
+ text-decoration: none;
116
+ cursor: pointer;
117
+ }
@@ -0,0 +1,146 @@
1
+ ul.nav {
2
+ display: inline-block;
3
+ }
4
+
5
+ .nav {
6
+ padding-left: 0;
7
+ margin-bottom: 0;
8
+ list-style: none;
9
+
10
+ > li {
11
+ position: relative;
12
+ display: block;
13
+
14
+ > a:not(.button) {
15
+ position: relative;
16
+ display: block;
17
+ padding: 10px 15px;
18
+
19
+ &:hover,
20
+ &:focus {
21
+ text-decoration: none;
22
+ background-color: #eee;
23
+ }
24
+ }
25
+ }
26
+
27
+ > li.disabled {
28
+ > a:not(.button) {
29
+ color: #777;
30
+ }
31
+ }
32
+
33
+ // Tabs
34
+ &.tabs,
35
+ &.nav-tabs {
36
+ border-bottom: 1px solid #ddd;
37
+
38
+ > li {
39
+ float: left;
40
+ margin-bottom: -1px;
41
+
42
+ > a:not(.button) {
43
+ margin-right: 2px;
44
+ line-height: 1.42857143;
45
+ border: 1px solid transparent;
46
+ border-radius: 4px 4px 0 0;
47
+
48
+ &:hover {
49
+ border-color: #eee #eee #ddd;
50
+ }
51
+ }
52
+
53
+ &.active > a:not(.button) {
54
+ &,
55
+ &:hover,
56
+ &:focus {
57
+ color: #555;
58
+ cursor: default;
59
+ background-color: #fff;
60
+ border: 1px solid #ddd;
61
+ border-bottom-color: transparent;
62
+ }
63
+ }
64
+ }
65
+
66
+ // Justified Tabs
67
+ &.justified,
68
+ &.nav-justified {
69
+ width: 100%;
70
+ border-bottom: 0;
71
+
72
+ > li {
73
+ float: none;
74
+
75
+ @media (min-width: 768px) {
76
+ display: table-cell;
77
+ width: 1%;
78
+ }
79
+
80
+ > a {
81
+ margin-bottom: 5px;
82
+ text-align: center;
83
+ margin-right: 0;
84
+ border-radius: 4px;
85
+
86
+ @media (min-width: 768px) {
87
+ margin-bottom: 0;
88
+ border-bottom: 1px solid #ddd;
89
+ border-radius: 4px 4px 0 0;
90
+ }
91
+ }
92
+
93
+ &.active > a,
94
+ &.active > a:hover,
95
+ &.active > a:focus {
96
+ border: 1px solid #ddd;
97
+
98
+ @media (min-width: 768px) {
99
+ border-bottom-color: #fff;
100
+ }
101
+ }
102
+ }
103
+
104
+ > .dropdown .dropdown-menu {
105
+ top: auto;
106
+ left: auto;
107
+ }
108
+ }
109
+ }
110
+
111
+ // Pills
112
+ &.pills,
113
+ &.nav-pills {
114
+ > li {
115
+ float: left;
116
+
117
+ > a {
118
+ border-radius: 4px;
119
+ }
120
+
121
+ & + li {
122
+ margin-left: 2px;
123
+ }
124
+
125
+ &.active > a,
126
+ &.active > a:hover,
127
+ &.active > a:focus {
128
+ color: #fff;
129
+ background-color: $orange;
130
+ }
131
+ }
132
+ }
133
+
134
+ // Veritcal
135
+ &.vertical,
136
+ &.nav-vertical {
137
+ width: 100%;
138
+
139
+ li.active a,
140
+ li.active a:hover,
141
+ li.active a:focus {
142
+ color: #fff;
143
+ background-color: $orange;
144
+ }
145
+ }
146
+ }
@@ -0,0 +1,99 @@
1
+ /*! normalize.css v3.0.1 | MIT License | git.io/normalize */
2
+ html {
3
+ font-family: sans-serif;
4
+ -ms-text-size-adjust: 100%;
5
+ -webkit-text-size-adjust: 100%;
6
+ }
7
+ body {
8
+ margin: 0;
9
+ }
10
+ article,
11
+ aside,
12
+ details,
13
+ figcaption,
14
+ figure,
15
+ footer,
16
+ header,
17
+ hgroup,
18
+ main,
19
+ nav,
20
+ section,
21
+ summary {
22
+ display: block;
23
+ }
24
+ audio,
25
+ canvas,
26
+ progress,
27
+ video {
28
+ display: inline-block;
29
+ vertical-align: baseline;
30
+ }
31
+ audio:not([controls]) {
32
+ display: none;
33
+ height: 0;
34
+ }
35
+ [hidden],
36
+ template {
37
+ display: none;
38
+ }
39
+ a {
40
+ background: transparent;
41
+ }
42
+ a:active,
43
+ a:hover {
44
+ outline: 0;
45
+ }
46
+ abbr[title] {
47
+ border-bottom: 1px dotted;
48
+ }
49
+ b,
50
+ strong {
51
+ font-weight: bold;
52
+ }
53
+ dfn {
54
+ font-style: italic;
55
+ }
56
+ mark {
57
+ background: #ff0;
58
+ color: #000;
59
+ }
60
+ small {
61
+ font-size: 80%;
62
+ }
63
+ sub,
64
+ sup {
65
+ font-size: 75%;
66
+ line-height: 0;
67
+ position: relative;
68
+ vertical-align: baseline;
69
+ }
70
+ sup {
71
+ top: -0.5em;
72
+ }
73
+ sub {
74
+ bottom: -0.25em;
75
+ }
76
+ img {
77
+ border: 0;
78
+ }
79
+ svg:not(:root) {
80
+ overflow: hidden;
81
+ }
82
+ figure {
83
+ margin: 1em 40px;
84
+ }
85
+ hr {
86
+ -moz-box-sizing: content-box;
87
+ box-sizing: content-box;
88
+ height: 0;
89
+ }
90
+ pre {
91
+ overflow: auto;
92
+ }
93
+ code,
94
+ kbd,
95
+ pre,
96
+ samp {
97
+ font-family: monospace, monospace;
98
+ font-size: 1em;
99
+ }
@@ -0,0 +1,135 @@
1
+ /*===========================================
2
+ Pagination Styles
3
+ ============================================*/
4
+
5
+ .pagination {
6
+ display: inline-block;
7
+ padding-left: 0;
8
+ margin: 20px 0;
9
+ border-radius: 4px;
10
+ }
11
+ .pagination > li {
12
+ display: inline;
13
+ }
14
+ .pagination > li > a,
15
+ .pagination > li > span {
16
+ position: relative;
17
+ float: left;
18
+ padding: 6px 12px;
19
+ line-height: 1.42857143;
20
+ text-decoration: none;
21
+ color: $orange;
22
+ background-color: #ffffff;
23
+ border: 1px solid $neutral5;
24
+ margin-left: -1px;
25
+ }
26
+ .pagination > li:first-child > a,
27
+ .pagination > li:first-child > span {
28
+ margin-left: 0;
29
+ border-bottom-left-radius: 4px;
30
+ border-top-left-radius: 4px;
31
+ }
32
+ .pagination > li:last-child > a,
33
+ .pagination > li:last-child > span {
34
+ border-bottom-right-radius: 4px;
35
+ border-top-right-radius: 4px;
36
+ }
37
+ .pagination > li > a:hover,
38
+ .pagination > li > span:hover,
39
+ .pagination > li > a:focus,
40
+ .pagination > li > span:focus {
41
+ color: $orange;
42
+ background-color: #eeeeee;
43
+ border-color: $neutral5;
44
+ }
45
+ .pagination > .active > a,
46
+ .pagination > .active > span,
47
+ .pagination > .active > a:hover,
48
+ .pagination > .active > span:hover,
49
+ .pagination > .active > a:focus,
50
+ .pagination > .active > span:focus {
51
+ z-index: 2;
52
+ color: #ffffff;
53
+ background-color: $orange;
54
+ border-color: $orange;
55
+ cursor: default;
56
+ }
57
+ .pagination > .disabled > span,
58
+ .pagination > .disabled > span:hover,
59
+ .pagination > .disabled > span:focus,
60
+ .pagination > .disabled > a,
61
+ .pagination > .disabled > a:hover,
62
+ .pagination > .disabled > a:focus {
63
+ color: #999999;
64
+ background-color: #ffffff;
65
+ border-color: $neutral5;
66
+ cursor: not-allowed;
67
+ }
68
+ .pagination-lg > li > a,
69
+ .pagination-lg > li > span {
70
+ padding: 10px 16px;
71
+ font-size: 18px;
72
+ }
73
+ .pagination-lg > li:first-child > a,
74
+ .pagination-lg > li:first-child > span {
75
+ border-bottom-left-radius: 6px;
76
+ border-top-left-radius: 6px;
77
+ }
78
+ .pagination-lg > li:last-child > a,
79
+ .pagination-lg > li:last-child > span {
80
+ border-bottom-right-radius: 6px;
81
+ border-top-right-radius: 6px;
82
+ }
83
+ .pagination-sm > li > a,
84
+ .pagination-sm > li > span {
85
+ padding: 5px 10px;
86
+ font-size: 12px;
87
+ }
88
+ .pagination-sm > li:first-child > a,
89
+ .pagination-sm > li:first-child > span {
90
+ border-bottom-left-radius: 3px;
91
+ border-top-left-radius: 3px;
92
+ }
93
+ .pagination-sm > li:last-child > a,
94
+ .pagination-sm > li:last-child > span {
95
+ border-bottom-right-radius: 3px;
96
+ border-top-right-radius: 3px;
97
+ }
98
+ .pager {
99
+ padding-left: 0;
100
+ margin: 20px 0;
101
+ list-style: none;
102
+ text-align: center;
103
+ }
104
+ .pager li {
105
+ display: inline;
106
+ }
107
+ .pager li > a,
108
+ .pager li > span {
109
+ display: inline-block;
110
+ padding: 5px 14px;
111
+ background-color: #ffffff;
112
+ border: 1px solid $neutral5;
113
+ border-radius: 15px;
114
+ }
115
+ .pager li > a:hover,
116
+ .pager li > a:focus {
117
+ text-decoration: none;
118
+ background-color: #eeeeee;
119
+ }
120
+ .pager .next > a,
121
+ .pager .next > span {
122
+ float: right;
123
+ }
124
+ .pager .previous > a,
125
+ .pager .previous > span {
126
+ float: left;
127
+ }
128
+ .pager .disabled > a,
129
+ .pager .disabled > a:hover,
130
+ .pager .disabled > a:focus,
131
+ .pager .disabled > span {
132
+ color: #999999;
133
+ background-color: #ffffff;
134
+ cursor: not-allowed;
135
+ }