concisecss 0.0.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -8
  3. data/app/assets/javascripts/concisecss/dropdown.js +17 -8
  4. data/app/assets/javascripts/concisecss/naver.js +8 -8
  5. data/app/assets/javascripts/concisecss/navigation.js +5 -5
  6. data/app/assets/javascripts/concisecss/non-responsive.js +8 -8
  7. data/app/assets/stylesheets/base/_headings.scss +129 -119
  8. data/app/assets/stylesheets/base/_main.scss +15 -13
  9. data/app/assets/stylesheets/{generic → base}/_print.scss +38 -56
  10. data/app/assets/stylesheets/base/_selection.scss +15 -9
  11. data/app/assets/stylesheets/base/_type.scss +21 -19
  12. data/app/assets/stylesheets/{generic/_shared.scss → base/_vertical-rhythm.scss} +9 -10
  13. data/app/assets/stylesheets/components/_buttons.scss +174 -0
  14. data/app/assets/stylesheets/components/_colors.scss +25 -0
  15. data/app/assets/stylesheets/{objects → components}/_dropdowns.scss +67 -79
  16. data/app/assets/stylesheets/components/_navigation.scss +133 -0
  17. data/app/assets/stylesheets/concise.scss +31 -31
  18. data/app/assets/stylesheets/{generic → helpers}/_clearfix.scss +2 -6
  19. data/app/assets/stylesheets/helpers/_conditional.scss +128 -0
  20. data/app/assets/stylesheets/helpers/_functions.scss +32 -0
  21. data/app/assets/stylesheets/{generic/_helper.scss → helpers/_helpers.scss} +29 -38
  22. data/app/assets/stylesheets/helpers/_mixins.scss +315 -0
  23. data/app/assets/stylesheets/{generic → helpers}/_normalize.scss +35 -35
  24. data/app/assets/stylesheets/{_defaults.scss → helpers/_variables.scss} +68 -78
  25. data/app/assets/stylesheets/layout/_container.scss +17 -0
  26. data/app/assets/stylesheets/layout/_forms.scss +103 -0
  27. data/app/assets/stylesheets/layout/_grid.scss +71 -0
  28. data/app/assets/stylesheets/layout/_lists.scss +88 -0
  29. data/app/assets/stylesheets/layout/tables.scss +63 -0
  30. data/lib/concisecss/concisecss_source.rb +30 -40
  31. data/lib/concisecss/version.rb +1 -1
  32. metadata +21 -20
  33. data/app/assets/stylesheets/generic/_conditional.scss +0 -126
  34. data/app/assets/stylesheets/generic/_mixins.scss +0 -157
  35. data/app/assets/stylesheets/objects/_badges.scss +0 -53
  36. data/app/assets/stylesheets/objects/_breadcrumbs.scss +0 -35
  37. data/app/assets/stylesheets/objects/_buttons.scss +0 -287
  38. data/app/assets/stylesheets/objects/_colors.scss +0 -48
  39. data/app/assets/stylesheets/objects/_groups.scss +0 -102
  40. data/app/assets/stylesheets/objects/_navigation.scss +0 -382
  41. data/app/assets/stylesheets/objects/_progress.scss +0 -106
  42. data/app/assets/stylesheets/objects/_wells.scss +0 -103
@@ -1,48 +0,0 @@
1
- //------------------------------------
2
- // COLORS
3
- //------------------------------------
4
-
5
- @if $use-bg-colors == true {
6
- // Background colors
7
- .bg-white { background-color: $bg-white !important; }
8
-
9
- .bg-black { background-color: $bg-black !important; }
10
-
11
- .bg-light-gray { background-color: $bg-light-gray !important; }
12
-
13
- .bg-gray { background-color: $bg-gray !important; }
14
-
15
- .bg-light-green { background-color: $bg-light-green !important; }
16
-
17
- .bg-green { background-color: $bg-green !important; }
18
-
19
- .bg-light-blue { background-color: $bg-light-blue !important; }
20
-
21
- .bg-blue { background-color: $bg-blue !important; }
22
-
23
- .bg-light-yellow { background-color: $bg-light-yellow !important; }
24
-
25
- .bg-yellow { background-color: $bg-yellow !important; }
26
-
27
- .bg-light-red { background-color: $bg-light-red !important; }
28
-
29
- .bg-red { background-color: $bg-red !important; }
30
- }
31
-
32
-
33
- @if $use-type-colors == true {
34
- // Type colors
35
- .color-white { color: $color-white; }
36
-
37
- .color-black { color: $color-black; }
38
-
39
- .color-gray { color: $color-gray; }
40
-
41
- .color-green { color: $color-green; }
42
-
43
- .color-blue { color: $color-blue; }
44
-
45
- .color-yellow { color: $color-yellow; }
46
-
47
- .color-red { color: $color-red; }
48
- }
@@ -1,102 +0,0 @@
1
- @if $use-groups == true {
2
- //------------------------------------
3
- // GROUPS
4
- //------------------------------------
5
- .group {
6
- display: inline-block;
7
- vertical-align: bottom;
8
-
9
- &:after {
10
- clear: both;
11
- content: ".";
12
- display: block;
13
- height: 0;
14
- visibility: hidden;
15
- }
16
- }
17
-
18
- .group-item,
19
- p.group-item {
20
- background-color: #fff;
21
- border: 1px solid #ddd;
22
- color: #666;
23
- padding: 4px 7px;
24
- width: auto;
25
-
26
- &.icon { @include font-size(14px); }
27
- }
28
-
29
- @include breakpoint(small) {
30
- .group-item {
31
- @include font-size($base-font-size);
32
- padding: 6px 12px;
33
- }
34
- }
35
-
36
- .group-item {
37
- &:hover { background-color: #f9f9f9; }
38
-
39
- &:active {
40
- @include vendor(box-shadow, inset 0 1px 1px rgba(100, 100, 100, 0.1));
41
- }
42
-
43
- &.active,
44
- .active { background-color: #f2f2f2; }
45
- }
46
-
47
- .group > .group-item {
48
- border-radius: 0;
49
- float: left;
50
- margin-left: -1px;
51
- }
52
-
53
-
54
- // Full-width
55
- .btn.full { width: 100%; }
56
-
57
-
58
- // Rounded corners
59
- .group.border-radius > .group-item {
60
- &:first-child { border-radius: $border-radius 0 0 $border-radius; }
61
-
62
- &:last-child { border-radius: 0 $border-radius $border-radius 0; }
63
- }
64
-
65
-
66
- // Dropdown
67
- .group-item.dropdown .dropdown-menu {
68
- margin-top: 15px;
69
- text-align: inherit;
70
- width: 100%;
71
-
72
- li a {
73
- @include font-size(12px);
74
- padding: 4px 7px;
75
- width: auto;
76
- }
77
- }
78
-
79
- .group {
80
- &.border-radius .group-item.dropdown {
81
- .dropdown-menu { border-radius: 0px 0px $border-radius $border-radius; }
82
-
83
- &.up .dropdown-menu { border-radius: $border-radius $border-radius 0px 0px; }
84
- }
85
-
86
-
87
- // Caret icon
88
- .caret {
89
- border-top: 4px solid;
90
- border-right: 4px solid transparent;
91
- border-left: 4px solid transparent;
92
- }
93
- }
94
-
95
- @include breakpoint(small) {
96
- .group .caret {
97
- border-top: 5px solid;
98
- border-right: 5px solid transparent;
99
- border-left: 5px solid transparent;
100
- }
101
- }
102
- }
@@ -1,382 +0,0 @@
1
- @if $use-navigation == true {
2
- //------------------------------------
3
- // NAVIGATION
4
- //------------------------------------
5
- nav {
6
- ul {
7
- list-style: none;
8
- margin: 0;
9
- }
10
-
11
- li {
12
- cursor: pointer;
13
- position: relative;
14
- }
15
-
16
-
17
- // Dropdown
18
- .dropdown li { margin-right: 0px; }
19
- }
20
-
21
-
22
- // Nested dropdown
23
- .nav-dropdown {
24
- ul {
25
- ul {
26
- display: none;
27
- left: 0;
28
- margin: 0;
29
- opacity: 0;
30
- padding: 0;
31
- position: absolute;
32
- visibility: hidden;
33
- width: 150px;
34
- z-index: 99999;
35
-
36
- ul {
37
- display: none;
38
- left: 0;
39
- margin: 0;
40
- opacity: 0;
41
- padding: 0;
42
- position: absolute;
43
- visibility: hidden;
44
- width: 150px;
45
- z-index: 99999;
46
- }
47
- }
48
-
49
- ol ul,
50
- ul ol,
51
- ol ol {
52
- display: none;
53
- left: 0;
54
- margin: 0;
55
- opacity: 0;
56
- padding: 0;
57
- position: absolute;
58
- visibility: hidden;
59
- width: 150px;
60
- z-index: 99999;
61
- }
62
- }
63
-
64
- ol {
65
- ol,
66
- ul {
67
- display: none;
68
- left: 0;
69
- margin: 0;
70
- opacity: 0;
71
- padding: 0;
72
- position: absolute;
73
- visibility: hidden;
74
- width: 150px;
75
- z-index: 99999;
76
- }
77
-
78
- ol {
79
- ol,
80
- ul {
81
- display: none;
82
- left: 0;
83
- margin: 0;
84
- opacity: 0;
85
- padding: 0;
86
- position: absolute;
87
- visibility: hidden;
88
- width: 150px;
89
- z-index: 99999;
90
- }
91
- }
92
-
93
- ul {
94
- ul,
95
- ol {
96
- display: none;
97
- left: 0;
98
- margin: 0;
99
- opacity: 0;
100
- padding: 0;
101
- position: absolute;
102
- visibility: hidden;
103
- width: 150px;
104
- z-index: 99999;
105
- }
106
- }
107
- }
108
-
109
- .list-inline li li,
110
- &.list-inline li li { margin-right: 0px; }
111
-
112
- li li {
113
- background: #fff;
114
- display: block;
115
- }
116
-
117
- ul {
118
- ul ul,
119
- ol ul,
120
- ul ol,
121
- ol ol { display: block; }
122
- }
123
-
124
- ol {
125
- ul ul,
126
- ol ul,
127
- ul ol { display: block; }
128
- }
129
-
130
- ul li:hover {
131
- ul,
132
- ol {
133
- display: block;
134
- opacity: 1;
135
- top: 100%;
136
- visibility: visible;
137
- }
138
- }
139
-
140
- ol li:hover {
141
- ul,
142
- ol {
143
- display: block;
144
- opacity: 1;
145
- top: 100%;
146
- visibility: visible;
147
- }
148
- }
149
-
150
- ul li:hover {
151
- ul ul,
152
- ol ul,
153
- ul ol,
154
- ol ol {
155
- display: none;
156
- opacity: 0;
157
- visibility: hidden;
158
- }
159
- }
160
-
161
- ol li:hover {
162
- ul ul,
163
- ol ul,
164
- ul ol,
165
- ol ol {
166
- display: none;
167
- opacity: 0;
168
- visibility: hidden;
169
- }
170
- }
171
-
172
- ul {
173
- ul li:hover {
174
- ul,
175
- ol {
176
- display: block;
177
- left: 100%;
178
- opacity: 1;
179
- position: absolute;
180
- top: 0;
181
- visibility: visible;
182
- }
183
- }
184
-
185
- ol li:hover {
186
- ol,
187
- ul {
188
- display: block;
189
- left: 100%;
190
- opacity: 1;
191
- position: absolute;
192
- top: 0;
193
- visibility: visible;
194
- }
195
- }
196
- }
197
-
198
- ol {
199
- ul li:hover {
200
- ul,
201
- ol {
202
- display: block;
203
- left: 100%;
204
- opacity: 1;
205
- position: absolute;
206
- top: 0;
207
- visibility: visible;
208
- }
209
- }
210
-
211
- ol li:hover {
212
- ol,
213
- ul {
214
- display: block;
215
- left: 100%;
216
- opacity: 1;
217
- position: absolute;
218
- top: 0;
219
- visibility: visible;
220
- }
221
- }
222
- }
223
- }
224
-
225
-
226
- // Vertical
227
- .nav-vertical {
228
- li {
229
- display: block;
230
- margin-right: 0px;
231
- padding: 10px;
232
- }
233
-
234
- .icon {
235
- line-height: inherit;
236
- margin-right: 7px;
237
-
238
- &.right, &.text-right { margin-right: 0px; }
239
- }
240
-
241
- &.nav-bordered {
242
- border: 1px solid #eee;
243
-
244
- li:hover { background-color: #f6f6f6; }
245
- }
246
-
247
- &.nav-line li:hover { background-color: #f6f6f6; }
248
-
249
- .badge,
250
- .label { margin-top: 5px; }
251
-
252
- .dropdown .dropdown-menu { top: 100%; }
253
- }
254
-
255
- @include breakpoint(small) {
256
- .nav-vertical .dropdown .dropdown-menu {
257
- left: 100%;
258
- top: 0;
259
- }
260
- }
261
-
262
-
263
- @if $use-responsive-navigation == true {
264
- // Responsive navigation
265
- //
266
- // Thanks to Ben Plum for the great work on his
267
- // Naver plugin (https://github.com/benplum/Naver/)
268
- .naver {
269
- .naver-handle {
270
- color: inherit;
271
- cursor: pointer;
272
- display: none;
273
- @include font-size(24px);
274
- text-align: right;
275
- text-transform: uppercase;
276
-
277
- @include vendor(user-select, none);
278
- }
279
-
280
- .naver-wrapper {
281
- height: auto;
282
- width: 100%;
283
- }
284
-
285
- &.enabled {
286
- .naver-handle { display: block; }
287
-
288
- .naver-wrapper {
289
- height: 0px;
290
- overflow: hidden;
291
-
292
- li {
293
- display: block;
294
- padding: 8px;
295
- text-align: left;
296
- width: 100%;
297
-
298
- &:hover { background: #f9f9f9; }
299
- }
300
- }
301
- }
302
- }
303
-
304
- .nav-responsive {
305
- &.naver .naver-handle:after {
306
- content: "\f0c9";
307
- font-family: FontAwesome;
308
- text-align: right;
309
- }
310
-
311
- &.nav-responsive-text.naver {
312
- .naver-handle:after { content: "\00a0 \f0c9"; }
313
-
314
- .naver-container:before {
315
- clear: both;
316
- content: ".";
317
- display: block;
318
- height: 0;
319
- line-height: 0;
320
- text-align: right;
321
- visibility: hidden;
322
- }
323
- }
324
- }
325
-
326
-
327
- // Left-aligned responsive navigation
328
- .nav-responsive-left {
329
- &.naver .naver-handle {
330
- text-align: left;
331
-
332
- &:before {
333
- content: "\f0c9";
334
- font-family: FontAwesome;
335
- text-align: left;
336
- }
337
- }
338
-
339
- &.nav-responsive-text.naver {
340
- .naver-handle:before { content: "\f0c9 \00a0"; }
341
-
342
- .naver-container:after {
343
- clear: both;
344
- content: ".";
345
- display: block;
346
- height: 0;
347
- line-height: 0;
348
- text-align: left;
349
- visibility: hidden;
350
- }
351
- }
352
- }
353
-
354
-
355
- // Centered responsive navigation
356
- .nav-responsive-center {
357
- &.naver .naver-handle {
358
- text-align: center;
359
-
360
- &:before {
361
- content: "\f0c9";
362
- font-family: FontAwesome;
363
- text-align: center;
364
- }
365
- }
366
-
367
- &.nav-responsive-text.naver {
368
- .naver-handle:before { content: "\f0c9 \00a0"; }
369
-
370
- .naver-container:after {
371
- clear: both;
372
- content: ".";
373
- display: block;
374
- height: 0;
375
- line-height: 0;
376
- text-align: center;
377
- visibility: hidden;
378
- }
379
- }
380
- }
381
- }
382
- }