spectre_scss 0.4.2.0 → 0.4.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be417767231d81cefdf51d3f739bce28c9bf9506
4
- data.tar.gz: 2a15d5bc33ed6aef5555f27fe384a60229cfa994
3
+ metadata.gz: a21322a1c1f3732b1ddeb34f86b7b0d587a53bc4
4
+ data.tar.gz: 529555351cf07d6167362f95635a8e4f4326e7eb
5
5
  SHA512:
6
- metadata.gz: 610caeff6cfc7cd4a5a23dd993ac77609d6e1d7eb2a60a52463edf12f4122b434ae153416a486b0e961cda2c5ba49134bc27b8ccde0625932f1a09feae27813d
7
- data.tar.gz: fce31040f37c82992886d3b0f50a0b71c0053fa370562db26cd03e872aed6f065ea04a91919c120714ecc7fd88722a65da33c1a30c1ace20262c636ab78f4ae3
6
+ metadata.gz: 4257b974d3bc94d5b3687e747834ac9d9474c7e7eb715a29f55325b5a506cfbe955c623e47b224592345e572f0e088dfe2b72fcbc0cc6a924cd98cf4add6a25a
7
+ data.tar.gz: 876f830df1d7e9928cbc8d90aaa468c7ddd582131e55faf2a361d9ce0b6a4c9f3fce69a421569bb9cd62ca2f56070147f7271edb13725875e530835b47590073
@@ -1,3 +1,3 @@
1
1
  module SpectreScss
2
- VERSION = '0.4.2.0'
2
+ VERSION = '0.4.3.0'
3
3
  end
@@ -30,6 +30,7 @@
30
30
  }
31
31
  }
32
32
 
33
+ // Remove default details marker in Webkit
33
34
  summary.accordion-header {
34
35
  &::-webkit-details-marker {
35
36
  display: none;
@@ -6,7 +6,7 @@
6
6
  color: rgba($light-color, .85);
7
7
  display: inline-block;
8
8
  font-weight: 300;
9
- line-height: 1;
9
+ line-height: 1.25;
10
10
  margin: 0;
11
11
  position: relative;
12
12
  vertical-align: middle;
@@ -12,7 +12,7 @@
12
12
  height: $control-size;
13
13
  line-height: $line-height;
14
14
  outline: none;
15
- padding: $control-padding-v $control-padding-h;
15
+ padding: $control-padding-y $control-padding-x;
16
16
  text-align: center;
17
17
  text-decoration: none;
18
18
  user-select: none;
@@ -90,13 +90,13 @@
90
90
  &.btn-sm {
91
91
  font-size: $font-size-sm;
92
92
  height: $control-size-sm;
93
- padding: $control-padding-v-sm $control-padding-h * .75;
93
+ padding: $control-padding-y-sm $control-padding-x-sm;
94
94
  }
95
95
 
96
96
  &.btn-lg {
97
97
  font-size: $font-size-lg;
98
98
  height: $control-size-lg;
99
- padding: $control-padding-v-lg $control-padding-h * 1.25;
99
+ padding: $control-padding-y-lg $control-padding-x-lg;
100
100
  }
101
101
 
102
102
  // Button Block
@@ -4,7 +4,7 @@
4
4
  border-radius: $border-radius;
5
5
  color: $gray-color-dark;
6
6
  text-align: center;
7
- padding: 4 * $layout-spacing;
7
+ padding: $unit-16 $unit-8;
8
8
 
9
9
  .empty-icon {
10
10
  margin-bottom: $layout-spacing-lg;
@@ -1,4 +1,16 @@
1
- // Filters
1
+ // Filters
2
+ // The number of filter options
3
+ $filter-number: 8 !default;
4
+
5
+ %filter-checked-nav {
6
+ background: $primary-color;
7
+ color: $light-color;
8
+ }
9
+
10
+ %filter-checked-body {
11
+ display: none;
12
+ }
13
+
2
14
  .filter {
3
15
  .filter-nav {
4
16
  margin: $layout-spacing 0;
@@ -10,20 +22,16 @@
10
22
  }
11
23
 
12
24
  .filter-tag {
13
- &#tag-all:checked ~ .filter-nav .chip[for="tag-all"],
14
- &#tag-action:checked ~ .filter-nav .chip[for="tag-action"],
15
- &#tag-roleplaying:checked ~ .filter-nav .chip[for="tag-roleplaying"],
16
- &#tag-shooter:checked ~ .filter-nav .chip[for="tag-shooter"],
17
- &#tag-sports:checked ~ .filter-nav .chip[for="tag-sports"] {
18
- background: $primary-color;
19
- color: $light-color;
25
+ @for $i from 0 through ($filter-number) {
26
+ &#tag-#{$i}:checked ~ .filter-nav .chip[for="tag-#{$i}"] {
27
+ @extend %filter-checked-nav;
28
+ }
20
29
  }
21
30
 
22
- &#tag-action:checked ~ .filter-body .column:not([data-tag~="tag-action"]),
23
- &#tag-roleplaying:checked ~ .filter-body .column:not([data-tag~="tag-roleplaying"]),
24
- &#tag-shooter:checked ~ .filter-body .column:not([data-tag~="tag-shooter"]),
25
- &#tag-sports:checked ~ .filter-body .column:not([data-tag~="tag-sports"]) {
26
- display: none;
31
+ @for $i from 1 through ($filter-number) {
32
+ &#tag-#{$i}:checked ~ .filter-body .filter-item:not([data-tag~="tag-#{$i}"]) {
33
+ @extend %filter-checked-body;
34
+ }
27
35
  }
28
36
  }
29
37
  }
@@ -18,14 +18,14 @@ legend {
18
18
  // Form element: Label
19
19
  .form-label {
20
20
  display: block;
21
- padding: $control-padding-v + $border-width 0;
21
+ padding: $control-padding-y + $border-width 0;
22
22
 
23
23
  &.label-sm {
24
- padding: $control-padding-v-sm + $border-width 0;
24
+ padding: $control-padding-y-sm + $border-width 0;
25
25
  }
26
26
 
27
27
  &.label-lg {
28
- padding: $control-padding-v-lg + $border-width 0;
28
+ padding: $control-padding-y-lg + $border-width 0;
29
29
  }
30
30
  }
31
31
 
@@ -44,7 +44,7 @@ legend {
44
44
  line-height: $line-height;
45
45
  max-width: 100%;
46
46
  outline: none;
47
- padding: $control-padding-v $control-padding-h;
47
+ padding: $control-padding-y $control-padding-x;
48
48
  position: relative;
49
49
  width: 100%;
50
50
  &:focus {
@@ -59,13 +59,13 @@ legend {
59
59
  &.input-sm {
60
60
  font-size: $font-size-sm;
61
61
  height: $control-size-sm;
62
- padding: $control-padding-v-sm $control-padding-h;
62
+ padding: $control-padding-y-sm $control-padding-x-sm;
63
63
  }
64
64
 
65
65
  &.input-lg {
66
66
  font-size: $font-size-lg;
67
67
  height: $control-size-lg;
68
- padding: $control-padding-v-lg $control-padding-h;
68
+ padding: $control-padding-y-lg $control-padding-x-lg;
69
69
  }
70
70
 
71
71
  &.input-inline {
@@ -112,7 +112,7 @@ textarea.form-input {
112
112
  height: $control-size;
113
113
  line-height: $line-height;
114
114
  outline: none;
115
- padding: $control-padding-v $control-padding-h;
115
+ padding: $control-padding-y $control-padding-x;
116
116
  vertical-align: middle;
117
117
  width: 100%;
118
118
 
@@ -125,8 +125,8 @@ textarea.form-input {
125
125
  }
126
126
  }
127
127
  &:not([multiple]):not([size]) {
128
- background: $bg-color-light url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23667189' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right ($control-icon-size / 2) center / .4rem .5rem;
129
- padding-right: $control-icon-size + $control-padding-h;
128
+ background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23667189'%20d='M2%200L0%202h4zm0%205L0%203h4z'/%3E%3C/svg%3E") no-repeat right .35rem center/.4rem .5rem;
129
+ padding-right: $control-icon-size + $control-padding-x;
130
130
  }
131
131
  &:focus {
132
132
  @include control-shadow();
@@ -140,13 +140,13 @@ textarea.form-input {
140
140
  &.select-sm {
141
141
  font-size: $font-size-sm;
142
142
  height: $control-size-sm;
143
- padding: $control-padding-v-sm ($control-icon-size + $control-padding-h) $control-padding-v-sm $control-padding-h;
143
+ padding: $control-padding-y-sm ($control-icon-size + $control-padding-x-sm) $control-padding-y-sm $control-padding-x-sm;
144
144
  }
145
145
 
146
146
  &.select-lg {
147
147
  font-size: $font-size-lg;
148
148
  height: $control-size-lg;
149
- padding: $control-padding-v-lg ($control-icon-size + $control-padding-h) $control-padding-v-lg $control-padding-h;
149
+ padding: $control-padding-y-lg ($control-icon-size + $control-padding-x-lg) $control-padding-y-lg $control-padding-x-lg;
150
150
  }
151
151
  }
152
152
 
@@ -157,7 +157,7 @@ textarea.form-input {
157
157
 
158
158
  .form-icon {
159
159
  height: $control-icon-size;
160
- margin: 0 $control-padding-v;
160
+ margin: 0 $control-padding-y;
161
161
  position: absolute;
162
162
  top: 50%;
163
163
  transform: translateY(-50%);
@@ -171,7 +171,7 @@ textarea.form-input {
171
171
  }
172
172
 
173
173
  .form-input {
174
- padding-left: $control-icon-size + $control-padding-v * 2;
174
+ padding-left: $control-icon-size + $control-padding-y * 2;
175
175
  }
176
176
  }
177
177
 
@@ -181,7 +181,7 @@ textarea.form-input {
181
181
  }
182
182
 
183
183
  .form-input {
184
- padding-right: $control-icon-size + $control-padding-v * 2;
184
+ padding-right: $control-icon-size + $control-padding-y * 2;
185
185
  }
186
186
  }
187
187
 
@@ -191,7 +191,7 @@ textarea.form-input {
191
191
  .form-switch {
192
192
  display: inline-block;
193
193
  line-height: $line-height;
194
- padding: (($control-size-sm - $line-height) / 2) ($control-icon-size + $control-padding-h);
194
+ padding: (($control-size-sm - $line-height) / 2) ($control-icon-size + $control-padding-x);
195
195
  position: relative;
196
196
 
197
197
  input {
@@ -301,7 +301,7 @@ textarea.form-input {
301
301
 
302
302
  // Form element: Switch
303
303
  .form-switch {
304
- padding-left: ($unit-8 + $control-padding-h);
304
+ padding-left: ($unit-8 + $control-padding-x);
305
305
 
306
306
  .form-icon {
307
307
  background: $gray-color-light;
@@ -348,15 +348,15 @@ textarea.form-input {
348
348
  border: $border-width solid $border-color-dark;
349
349
  border-radius: $border-radius;
350
350
  line-height: $line-height;
351
- padding: $control-padding-v $control-padding-h;
351
+ padding: $control-padding-y $control-padding-x;
352
352
 
353
353
  &.addon-sm {
354
354
  font-size: $font-size-sm;
355
- padding: $control-padding-v-sm $control-padding-h;
355
+ padding: $control-padding-y-sm $control-padding-x-sm;
356
356
  }
357
357
  &.addon-lg {
358
358
  font-size: $font-size-lg;
359
- padding: $control-padding-v-lg $control-padding-h;
359
+ padding: $control-padding-y-lg $control-padding-x-lg;
360
360
  }
361
361
  }
362
362