semantic-ui-sass 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +51 -0
  6. data/Rakefile +5 -0
  7. data/app/assets/fonts/semantic-ui/basic.icons.eot +0 -0
  8. data/app/assets/fonts/semantic-ui/basic.icons.svg +450 -0
  9. data/app/assets/fonts/semantic-ui/basic.icons.ttf +0 -0
  10. data/app/assets/fonts/semantic-ui/basic.icons.woff +0 -0
  11. data/app/assets/fonts/semantic-ui/icons.eot +0 -0
  12. data/app/assets/fonts/semantic-ui/icons.otf +0 -0
  13. data/app/assets/fonts/semantic-ui/icons.svg +399 -0
  14. data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
  15. data/app/assets/fonts/semantic-ui/icons.woff +0 -0
  16. data/app/assets/images/semantic-ui/loader-large-inverted.gif +0 -0
  17. data/app/assets/images/semantic-ui/loader-large.gif +0 -0
  18. data/app/assets/images/semantic-ui/loader-medium-inverted.gif +0 -0
  19. data/app/assets/images/semantic-ui/loader-medium.gif +0 -0
  20. data/app/assets/images/semantic-ui/loader-mini-inverted.gif +0 -0
  21. data/app/assets/images/semantic-ui/loader-mini.gif +0 -0
  22. data/app/assets/images/semantic-ui/loader-small-inverted.gif +0 -0
  23. data/app/assets/images/semantic-ui/loader-small.gif +0 -0
  24. data/app/assets/javascripts/semantic-ui.js +20 -0
  25. data/app/assets/javascripts/semantic-ui/accordion.js +419 -0
  26. data/app/assets/javascripts/semantic-ui/behavior/api.js +638 -0
  27. data/app/assets/javascripts/semantic-ui/behavior/colorize.js +270 -0
  28. data/app/assets/javascripts/semantic-ui/behavior/form.js +702 -0
  29. data/app/assets/javascripts/semantic-ui/behavior/state.js +725 -0
  30. data/app/assets/javascripts/semantic-ui/chatroom.js +769 -0
  31. data/app/assets/javascripts/semantic-ui/checkbox.js +344 -0
  32. data/app/assets/javascripts/semantic-ui/dimmer.js +564 -0
  33. data/app/assets/javascripts/semantic-ui/dropdown.js +724 -0
  34. data/app/assets/javascripts/semantic-ui/modal.js +553 -0
  35. data/app/assets/javascripts/semantic-ui/nag.js +545 -0
  36. data/app/assets/javascripts/semantic-ui/popup.js +727 -0
  37. data/app/assets/javascripts/semantic-ui/rating.js +403 -0
  38. data/app/assets/javascripts/semantic-ui/search.js +772 -0
  39. data/app/assets/javascripts/semantic-ui/shape.js +778 -0
  40. data/app/assets/javascripts/semantic-ui/sidebar.js +490 -0
  41. data/app/assets/javascripts/semantic-ui/tab.js +689 -0
  42. data/app/assets/javascripts/semantic-ui/transition.js +654 -0
  43. data/app/assets/javascripts/semantic-ui/video.js +457 -0
  44. data/app/assets/stylesheets/semantic-ui.scss +4 -0
  45. data/app/assets/stylesheets/semantic-ui/collections/_all.scss +6 -0
  46. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +77 -0
  47. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +569 -0
  48. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +643 -0
  49. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +1767 -0
  50. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +347 -0
  51. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +524 -0
  52. data/app/assets/stylesheets/semantic-ui/elements/_all.scss +12 -0
  53. data/app/assets/stylesheets/semantic-ui/elements/_basic.icon.scss +479 -0
  54. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +1187 -0
  55. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +199 -0
  56. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +342 -0
  57. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +772 -0
  58. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +181 -0
  59. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +338 -0
  60. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +827 -0
  61. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +185 -0
  62. data/app/assets/stylesheets/semantic-ui/elements/_progress.scss +352 -0
  63. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +464 -0
  64. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +293 -0
  65. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +199 -0
  66. data/app/assets/stylesheets/semantic-ui/modules/_all.scss +16 -0
  67. data/app/assets/stylesheets/semantic-ui/modules/_chatroom.scss +281 -0
  68. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +481 -0
  69. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +236 -0
  70. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +548 -0
  71. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +217 -0
  72. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +173 -0
  73. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +255 -0
  74. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +179 -0
  75. data/app/assets/stylesheets/semantic-ui/modules/_reveal.scss +365 -0
  76. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +273 -0
  77. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +113 -0
  78. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +150 -0
  79. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +63 -0
  80. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1096 -0
  81. data/app/assets/stylesheets/semantic-ui/modules/_video.scss +98 -0
  82. data/app/assets/stylesheets/semantic-ui/views/_all.scss +5 -0
  83. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +221 -0
  84. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +152 -0
  85. data/app/assets/stylesheets/semantic-ui/views/_item.scss +651 -0
  86. data/app/assets/stylesheets/semantic-ui/views/_list.scss +555 -0
  87. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +27 -0
  88. data/lib/semantic/ui/sass.rb +10 -0
  89. data/lib/semantic/ui/sass/engine.rb +13 -0
  90. data/lib/semantic/ui/sass/version.rb +8 -0
  91. data/semantic-ui-sass.gemspec +24 -0
  92. data/tasks/converter.rb +237 -0
  93. metadata +177 -0
@@ -0,0 +1,16 @@
1
+ @import 'accordion';
2
+ @import 'chatroom';
3
+ @import 'checkbox';
4
+ @import 'dimmer';
5
+ @import 'dropdown';
6
+ @import 'modal';
7
+ @import 'nag';
8
+ @import 'popup';
9
+ @import 'rating';
10
+ @import 'reveal';
11
+ @import 'search';
12
+ @import 'shape';
13
+ @import 'sidebar';
14
+ @import 'tab';
15
+ @import 'transition';
16
+ @import 'video';
@@ -0,0 +1,281 @@
1
+ /*
2
+ * # Semantic - Chat Room
3
+ * http://github.com/jlukic/semantic-ui/
4
+ *
5
+ *
6
+ * Copyright 2013 Contributors
7
+ * Released under the MIT license
8
+ * http://opensource.org/licenses/MIT
9
+ *
10
+ */
11
+
12
+ /*******************************
13
+ Chat Room
14
+ *******************************/
15
+
16
+ .ui.chatroom {
17
+ background-color: #F8F8F8;
18
+ width: 330px;
19
+ height: 370px;
20
+ padding: 0px;
21
+ }
22
+ .ui.chatroom .room {
23
+ position: relative;
24
+ background-color: #FFFFFF;
25
+ overflow: hidden;
26
+ height: 286px;
27
+ border: 1px solid rgba(0, 0, 0, 0.1);
28
+ border-top: none;
29
+ border-bottom: none;
30
+ }
31
+ .ui.chatroom .room .loader {
32
+ display: none;
33
+ margin: -25px 0px 0px -25px;
34
+ }
35
+ /* Chat Room Actions */
36
+ .ui.chatroom .actions {
37
+ overflow: hidden;
38
+ background-color: #EEEEEE;
39
+ padding: 4px;
40
+ border: 1px solid rgba(0, 0, 0, 0.1);
41
+
42
+ -moz-border-radius: 5px 5px 0px 0px;
43
+ -webkit-border-radius: 5px 5px 0px 0px;
44
+ border-radius: 5px 5px 0px 0px;
45
+ }
46
+ .ui.chatroom .actions .button {
47
+ float: right;
48
+ margin-left: 3px;
49
+ }
50
+
51
+ /* Online User Count */
52
+ .ui.chatroom .actions .message {
53
+ float: left;
54
+ margin-left: 6px;
55
+ font-size: 11px;
56
+ color: #AAAAAA;
57
+ text-shadow: 0px -1px 0px rgba(255, 255, 255, 0.8);
58
+ line-height: 28px;
59
+ }
60
+ .ui.chatroom .actions .message .loader {
61
+ display: inline-block;
62
+ margin-right: 8px;
63
+ }
64
+
65
+
66
+ /* Chat Room Text Log */
67
+ .ui.chatroom .log {
68
+ float: left;
69
+
70
+ overflow: auto;
71
+ overflow-x: hidden;
72
+ overflow-y: auto;
73
+ }
74
+ .ui.chatroom .log .message {
75
+ padding: 3px 0px;
76
+ border-top: 1px dotted #DADADA;
77
+ }
78
+ .ui.chatroom .log .message:first-child {
79
+ border-top: none;
80
+ }
81
+ /* status event */
82
+ .ui.chatroom .status {
83
+ padding: 5px 0px;
84
+ color: #AAAAAA;
85
+
86
+ font-size: 12px;
87
+ font-style: italic;
88
+ line-height: 1.33;
89
+ border-top: 1px dotted #DADADA;
90
+ }
91
+ .ui.chatroom .log .status:first-child {
92
+ border-top: none;
93
+ }
94
+
95
+
96
+
97
+ .ui.chatroom .log .flag {
98
+ float: left;
99
+ }
100
+ .ui.chatroom .log p {
101
+ margin-left: 0px;
102
+ }
103
+ .ui.chatroom .log .author {
104
+ font-weight: bold;
105
+ -webkit-transition: color 0.3s ease-out;
106
+ -moz-transition: color 0.3s ease-out;
107
+ -o-transition: color 0.3s ease-out;
108
+ -ms-transition: color 0.3s ease-out;
109
+ transition: color 0.3s ease-out;
110
+ }
111
+ .ui.chatroom .log a.author:hover {
112
+ opacity: 0.8;
113
+ }
114
+
115
+ .ui.chatroom .log .message.admin p {
116
+ font-weight: bold;
117
+ margin: 1px 0px 0px 23px;
118
+ }
119
+ .ui.chatroom .log .divider {
120
+ margin: -1px 0px;
121
+ font-size: 11px;
122
+ padding: 10px 0px;
123
+ border-top: 1px solid #F8F8F8;
124
+ border-bottom: 1px solid #F8F8F8;
125
+ }
126
+ .ui.chatroom .log .divider .rule {
127
+ top: 50%;
128
+ width: 15%;
129
+ }
130
+
131
+ .ui.chatroom .log .divider .label {
132
+ color: #777777;
133
+ margin: 0px;
134
+ }
135
+
136
+ /* Chat Room User List */
137
+ .ui.chatroom .room .list {
138
+ position: relative;
139
+ overflow: auto;
140
+ overflow-x: hidden;
141
+ overflow-y: auto;
142
+
143
+ float: left;
144
+ background-color: #EEEEEE;
145
+ border-left: 1px solid #DDDDDD;
146
+ }
147
+ .ui.chatroom .room .list .user {
148
+ display: table;
149
+ padding: 3px 7px;
150
+ border-bottom: 1px solid #DDDDDD;
151
+ }
152
+ .ui.chatroom .room .list .user:hover {
153
+ background-color: #F8F8F8;
154
+ }
155
+ .ui.chatroom .room .list .image {
156
+ display: table-cell;
157
+ vertical-align: middle;
158
+ width: 20px;
159
+ }
160
+ .ui.chatroom .room .list .image img {
161
+ width: 20px;
162
+ height: 20px;
163
+ vertical-align: middle;
164
+ }
165
+ .ui.chatroom .room .list p {
166
+ display: table-cell;
167
+ vertical-align: middle;
168
+ padding-left: 7px;
169
+ padding-right: 14px;
170
+ font-size: 11px;
171
+ line-height: 1.2;
172
+ font-weight: bold;
173
+ }
174
+ .ui.chatroom .room .list a:hover {
175
+ opacity: 0.8;
176
+ }
177
+
178
+ /* User List Loading */
179
+ .ui.chatroom.loading .loader {
180
+ display: block;
181
+ }
182
+
183
+
184
+
185
+ /* Chat Room Talk Input */
186
+ .ui.chatroom .talk {
187
+ border: 1px solid rgba(0, 0, 0, 0.1);
188
+ padding: 5px 0px 0px;
189
+
190
+ background-color: #EEEEEE;
191
+
192
+ -webkit-border-radius: 0px 0px 5px 5px;
193
+ -moz-border-radius: 0px 0px 5px 5px;
194
+ border-radius: 0px 0px 5px 5px;
195
+ }
196
+ .ui.chatroom .talk .avatar,
197
+ .ui.chatroom .talk input,
198
+ .ui.chatroom .talk .button {
199
+ float: left;
200
+ }
201
+
202
+ .ui.chatroom .talk .avatar img {
203
+ display: block;
204
+ width: 30px;
205
+ height: 30px;
206
+ margin-right: 4px;
207
+ border-radius: 500rem;
208
+ }
209
+ .ui.chatroom .talk input {
210
+ border: 1px solid #CCCCCC;
211
+ margin: 0px;
212
+ width: 196px;
213
+ height: 14px;
214
+ padding: 8px 5px;
215
+ font-size: 12px;
216
+ color: #555555;
217
+ }
218
+ .ui.chatroom .talk input.focus {
219
+ border: 1px solid #AAAAAA;
220
+ }
221
+ .ui.chatroom .send {
222
+ width: 80px;
223
+ height: 32px;
224
+
225
+ margin-left: -1px;
226
+ padding: 4px 12px;
227
+ font-size: 12px;
228
+ line-height: 23px;
229
+
230
+ -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
231
+ -moz-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
232
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
233
+
234
+ border-radius: 0 5px 5px 0;
235
+ }
236
+ .ui.chatroom .talk .log-in.button {
237
+ display: block;
238
+ float: none;
239
+ margin-top: -6px;
240
+ height: 22px;
241
+ border-radius: 0px 0px 4px 4px;
242
+ }
243
+ .ui.chatroom .talk .log-in.button i {
244
+ vertical-align: text-top;
245
+ }
246
+
247
+ /* Quirky Flags */
248
+ .ui.chatroom .log .team.flag {
249
+ width: 18px;
250
+ }
251
+
252
+ /* Chat room Loaded */
253
+ .ui.chatroom.loading .loader {
254
+ display: block;
255
+ }
256
+
257
+
258
+ /* Standard Size */
259
+ .ui.chatroom {
260
+ width: 330px;
261
+ height: 370px;
262
+ }
263
+ .ui.chatroom .room .container {
264
+ width: 3000px;
265
+ }
266
+ .ui.chatroom .log {
267
+ width: 314px;
268
+ height: 278px;
269
+ padding: 4px 7px;
270
+ }
271
+ .ui.chatroom .room .list {
272
+ width: 124px;
273
+ height: 278px;
274
+ padding: 4px 0px;
275
+ }
276
+ .ui.chatroom .room .list .user {
277
+ width: 110px;
278
+ }
279
+ .ui.chatroom .talk {
280
+ height: 40px;
281
+ }
@@ -0,0 +1,481 @@
1
+ /*
2
+ * # Semantic - Checkbox
3
+ * http://github.com/jlukic/semantic-ui/
4
+ *
5
+ *
6
+ * Copyright 2013 Contributors
7
+ * Released under the MIT license
8
+ * http://opensource.org/licenses/MIT
9
+ *
10
+ */
11
+
12
+ /*******************************
13
+ Checkbox
14
+ *******************************/
15
+
16
+ /*--------------
17
+ Standard
18
+ ---------------*/
19
+
20
+
21
+ /*--- Content ---*/
22
+
23
+ .ui.checkbox {
24
+ position: relative;
25
+ display: inline-block;
26
+ outline: none;
27
+ vertical-align: middle;
28
+ }
29
+ .ui.checkbox input {
30
+ position: absolute;
31
+ top: 0px;
32
+ left: 0px;
33
+ opacity: 0;
34
+ outline: none;
35
+ }
36
+
37
+
38
+ /*--- Box ---*/
39
+
40
+ .ui.checkbox .box,
41
+ .ui.checkbox label {
42
+ cursor: pointer;
43
+ position: relative;
44
+
45
+ min-width: 1em;
46
+ height: 1em;
47
+
48
+ padding-left: 2em;
49
+ outline: none;
50
+
51
+ white-space: nowrap;
52
+ }
53
+
54
+ .ui.checkbox .box:before,
55
+ .ui.checkbox label:before {
56
+ position: absolute;
57
+ top: 0.25em;
58
+ left: 0em;
59
+
60
+ line-height: 1;
61
+ width: 1em;
62
+ height: 1em;
63
+ left: 0em;
64
+ content: '';
65
+
66
+ border-radius: 4px;
67
+
68
+ background: #FFFFFF;
69
+
70
+ -webkit-transition:
71
+ background-color 0.3s ease,
72
+ box-shadow 0.3s ease
73
+ ;
74
+ -moz-transition:
75
+ background-color 0.3s ease,
76
+ box-shadow 0.3s ease
77
+ ;
78
+ -o-transition:
79
+ background-color 0.3s ease,
80
+ box-shadow 0.3s ease
81
+ ;
82
+ -ms-transition:
83
+ background-color 0.3s ease,
84
+ box-shadow 0.3s ease
85
+ ;
86
+ transition:
87
+ background-color 0.3s ease,
88
+ box-shadow 0.3s ease
89
+ ;
90
+
91
+ -webkit-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.2);
92
+ -moz-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.2);
93
+ box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.2);
94
+ }
95
+
96
+ /*--- Checkbox ---*/
97
+ .ui.checkbox .box:after,
98
+ .ui.checkbox label:after {
99
+ -ms-filter: "progid:DXImageTransform.Microsoft@include ctb-Alpha(Opacity=0);";
100
+ filter: alpha(opacity=0);
101
+ opacity: 0;
102
+ content: '';
103
+ position: absolute;
104
+ background: transparent;
105
+ border: 0.2em solid #333333;
106
+ border-top: none;
107
+ border-right: none;
108
+ -webkit-transform: rotate(-45deg);
109
+ -moz-transform: rotate(-45deg);
110
+ -o-transform: rotate(-45deg);
111
+ -ms-transform: rotate(-45deg);
112
+ transform: rotate(-45deg);
113
+ }
114
+ .ui.checkbox .box:after,
115
+ .ui.checkbox label:after {
116
+ top: 0.54em;
117
+ left: 0.2em;
118
+ width: 0.45em;
119
+ height: 0.15em;
120
+ }
121
+
122
+ /*--- Inside Label ---*/
123
+ .ui.checkbox label {
124
+ color: rgba(0, 0, 0, 0.6);
125
+
126
+ -webkit-transition: color 0.2s ease;
127
+ -moz-transition: color 0.2s ease;
128
+ -o-transition: color 0.2s ease;
129
+ -ms-transition: color 0.2s ease;
130
+ transition: color 0.2s ease;
131
+ }
132
+ .ui.checkbox label:hover {
133
+ color: rgba(0, 0, 0, 0.8);
134
+ }
135
+
136
+ .ui.checkbox input:focus + label {
137
+ color: rgba(0, 0, 0, 0.8);
138
+ }
139
+
140
+ /*--- Outside Label ---*/
141
+ .ui.checkbox + label {
142
+ cursor: pointer;
143
+ opacity: 0.85;
144
+ vertical-align: middle;
145
+ }
146
+ .ui.checkbox + label:hover {
147
+ opacity: 1;
148
+ }
149
+
150
+
151
+ /*******************************
152
+ States
153
+ *******************************/
154
+
155
+
156
+ /*--- Hover ---*/
157
+ .ui.checkbox .box:hover::before,
158
+ .ui.checkbox label:hover::before {
159
+ -webkit-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
160
+ -moz-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
161
+ box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
162
+ }
163
+
164
+ /*--- Down ---*/
165
+ .ui.checkbox .box:active::before,
166
+ .ui.checkbox label:active::before {
167
+ background-color: #F5F5F5;
168
+ }
169
+
170
+ /*--- Focus ---*/
171
+ .ui.checkbox input:focus + .box:before,
172
+ .ui.checkbox input:focus + label:before {
173
+ -webkit-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
174
+ -moz-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
175
+ box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
176
+ }
177
+
178
+ /*--- Active ---*/
179
+ .ui.checkbox input:checked + .box:after,
180
+ .ui.checkbox input:checked + label:after {
181
+ -ms-filter: "progid:DXImageTransform.Microsoft@include ctb-Alpha(Opacity=100);";
182
+ filter: alpha(opacity=100);
183
+ opacity: 1;
184
+ }
185
+
186
+ /*--- Disabled ---*/
187
+ .ui.disabled.checkbox + .box:after,
188
+ .ui.checkbox input[disabled] + .box:after,
189
+ .ui.disabled.checkbox label,
190
+ .ui.checkbox input[disabled] + label {
191
+ opacity: 0.4;
192
+ color: rgba(0, 0, 0, 0.3);
193
+ }
194
+
195
+
196
+ /*******************************
197
+ Variations
198
+ *******************************/
199
+
200
+
201
+ /*--------------
202
+ Radio
203
+ ---------------*/
204
+
205
+ .ui.radio.checkbox .box:before,
206
+ .ui.radio.checkbox label:before {
207
+ width: 1em;
208
+ height: 1em;
209
+ -webkit-border-radius: 500px;
210
+ -moz-border-radius: 500px;
211
+ border-radius: 500px;
212
+ }
213
+ .ui.radio.checkbox .box:after,
214
+ .ui.radio.checkbox label:after {
215
+ border: none;
216
+ top: 0.45em;
217
+ left: 0.2em;
218
+
219
+ width: 0.6em;
220
+ height: 0.6em;
221
+
222
+ background-color: #555555;
223
+
224
+ -webkit-border-radius: 500px;
225
+ -moz-border-radius: 500px;
226
+ border-radius: 500px;
227
+ }
228
+
229
+ /*--------------
230
+ Slider
231
+ ---------------*/
232
+
233
+ .ui.slider.checkbox {
234
+ cursor: pointer;
235
+ min-width: 3em;
236
+ height: 2em;
237
+ }
238
+
239
+ /* Line */
240
+ .ui.slider.checkbox:after {
241
+ position: absolute;
242
+ top: 0.8em;
243
+ left: 0em;
244
+ content: '';
245
+
246
+ width: 3em;
247
+ height: 2px;
248
+ background-color: rgba(0, 0, 0, 0.1);
249
+ }
250
+
251
+ /* Button */
252
+ .ui.slider.checkbox .box,
253
+ .ui.slider.checkbox label {
254
+ padding-left: 4em;
255
+ }
256
+ .ui.slider.checkbox .box:before,
257
+ .ui.slider.checkbox label:before {
258
+ cursor: pointer;
259
+ display: block;
260
+
261
+ position: absolute;
262
+ top: 0em;
263
+ left: 0;
264
+ z-index: 1;
265
+
266
+ width: 1.5em;
267
+ height: 1.5em;
268
+
269
+ -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
270
+ -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
271
+ box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
272
+
273
+ border-radius: 50rem;
274
+
275
+ -webkit-transition: left 0.3s ease 0s;
276
+ -moz-transition: left 0.3s ease 0s;
277
+ -o-transition: left 0.3s ease 0s;
278
+ -ms-transition: left 0.3s ease 0s;
279
+ transition: left 0.3s ease 0s;
280
+ }
281
+
282
+ /* Button Activation Light */
283
+ .ui.slider.checkbox .box:after,
284
+ .ui.slider.checkbox label:after {
285
+ opacity: 1;
286
+
287
+ position: absolute;
288
+ content: '';
289
+ top: 0.375em;
290
+ left: 0em;
291
+ z-index: 2;
292
+
293
+ margin-left: 0.375em;
294
+
295
+ border: none;
296
+ width: 0.75em;
297
+ height: 0.75em;
298
+
299
+ border-radius: 50rem;
300
+
301
+ -webkit-transition:
302
+ background 0.3s ease 0s,
303
+ left 0.3s ease 0s
304
+ ;
305
+ -moz-transition:
306
+ background 0.3s ease 0s,
307
+ left 0.3s ease 0s
308
+ ;
309
+ -o-transition:
310
+ background 0.3s ease 0s,
311
+ left 0.3s ease 0s
312
+ ;
313
+ -ms-transition:
314
+ background 0.3s ease 0s,
315
+ left 0.3s ease 0s
316
+ ;
317
+ transition:
318
+ background 0.3s ease 0s,
319
+ left 0.3s ease 0s
320
+ ;
321
+ }
322
+
323
+ /* Selected Slider Toggle */
324
+ .ui.slider.checkbox input:checked + .box:before,
325
+ .ui.slider.checkbox input:checked + label:before,
326
+ .ui.slider.checkbox input:checked + .box:after,
327
+ .ui.slider.checkbox input:checked + label:after {
328
+ left: 1.75em;
329
+ }
330
+
331
+ /* Off Color */
332
+ // .ui.slider.checkbox .box,
333
+ // .ui.slider.checkbox label {
334
+ // color: #D95C5C !important;
335
+ // }
336
+ .ui.slider.checkbox .box:after,
337
+ .ui.slider.checkbox label:after {
338
+ background-color: #D95C5C;
339
+ }
340
+
341
+ /* On Color */
342
+ // .ui.slider.checkbox input:checked + .box,
343
+ // .ui.slider.checkbox input:checked + label {
344
+ // color: #89B84C !important;
345
+ // }
346
+ .ui.slider.checkbox input:checked + .box:after,
347
+ .ui.slider.checkbox input:checked + label:after {
348
+ background-color: #89B84C;
349
+ }
350
+
351
+
352
+
353
+ /*--------------
354
+ Toggle
355
+ ---------------*/
356
+
357
+ .ui.toggle.checkbox {
358
+ cursor: pointer;
359
+ height: 2em;
360
+ }
361
+
362
+ .ui.toggle.checkbox .box,
363
+ .ui.toggle.checkbox label {
364
+ padding-left: 4em;
365
+ }
366
+
367
+ /* Switch */
368
+ .ui.toggle.checkbox .box:before,
369
+ .ui.toggle.checkbox label:before {
370
+ cursor: pointer;
371
+ display: block;
372
+
373
+ position: absolute;
374
+ content: '';
375
+ top: 0em;
376
+ left: 0em;
377
+ z-index: 1;
378
+
379
+ background-color: #FFFFFF;
380
+ width: 3em;
381
+ height: 1.5em;
382
+
383
+ -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
384
+ -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
385
+ box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
386
+
387
+ border-radius: 50rem;
388
+ }
389
+
390
+ /* Activation Light */
391
+ .ui.toggle.checkbox .box:after,
392
+ .ui.toggle.checkbox label:after {
393
+ opacity: 1;
394
+
395
+ background-color: transparent;
396
+ -webkit-box-shadow: none;
397
+ -moz-box-shadow: none;
398
+ box-shadow: none;
399
+
400
+ content: '';
401
+ position: absolute;
402
+ top: 0.35em;
403
+ left: 0.5em;
404
+ z-index: 2;
405
+
406
+ border: none;
407
+ width: 0.75em;
408
+ height: 0.75em;
409
+
410
+ background-color: #D95C5C;
411
+ border-radius: 50rem;
412
+
413
+ -webkit-transition:
414
+ background 0.3s ease 0s,
415
+ left 0.3s ease 0s
416
+ ;
417
+ -moz-transition:
418
+ background 0.3s ease 0s,
419
+ left 0.3s ease 0s
420
+ ;
421
+ -o-transition:
422
+ background 0.3s ease 0s,
423
+ left 0.3s ease 0s
424
+ ;
425
+ -ms-transition:
426
+ background 0.3s ease 0s,
427
+ left 0.3s ease 0s
428
+ ;
429
+ transition:
430
+ background 0.3s ease 0s,
431
+ left 0.3s ease 0s
432
+ ;
433
+ }
434
+
435
+ /* Active */
436
+ .ui.toggle.checkbox:active .box:before,
437
+ .ui.toggle.checkbox:active label:before {
438
+ background-color: #F5F5F5;
439
+ }
440
+
441
+ /* Active */
442
+ .ui.toggle.checkbox input:checked + .box:after,
443
+ .ui.toggle.checkbox input:checked + label:after {
444
+ left: 1.75em;
445
+ background-color: #89B84C;
446
+ }
447
+
448
+
449
+
450
+ /*--------------
451
+ Sizes
452
+ ---------------*/
453
+
454
+ .ui.checkbox {
455
+ width: 1em;
456
+ height: 1em;
457
+ }
458
+ .ui.checkbox,
459
+ .ui.checkbox .box,
460
+ .ui.checkbox label {
461
+ font-size: 1em;
462
+ }
463
+
464
+ .ui.large.checkbox {
465
+ width: 1.25em;
466
+ height: 1.25em;
467
+ }
468
+ .ui.large.checkbox,
469
+ .ui.large.checkbox .box,
470
+ .ui.large.checkbox label {
471
+ font-size: 1.25em;
472
+ }
473
+ .ui.huge.checkbox {
474
+ width: 1.5em;
475
+ height: 1.5em;
476
+ }
477
+ .ui.huge.checkbox,
478
+ .ui.huge.checkbox .box,
479
+ .ui.huge.checkbox label {
480
+ font-size: 1.5em;
481
+ }