spectre_scss 0.4.5.0 → 0.4.6.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: d4d74fc17f69749bbd69f4f34239a3ac820678c7
4
- data.tar.gz: 9cfd051c27b55fc86fd07620c05e17a84e1256d4
3
+ metadata.gz: 19f1ad082d25b959639c474540f1aa7bbd52b8c6
4
+ data.tar.gz: 38745a1c58e3ba0b89146be7384b24bedfb26ac3
5
5
  SHA512:
6
- metadata.gz: b4cf506ac7f49649634528d958564386ee770f1785ce850dbbde3f8c971fbb5b1145f1724259e48c1704ba7542ad79814a4f8522351e9840523ad6671f7806ee
7
- data.tar.gz: 57030dd33f89a024ded439b0064889f810258a4f1f594a827f234f4d6899d90cfeab3f3b27e730227e124342219c8ed75f6447781f312a1f6c0d682f8d6a0473
6
+ metadata.gz: 49be9647a5d40cc65cbdd4bbaa6c473cf3d595b1e14a09de2019daace72e8c59a57e3e9a50a06e38afca0b13c032118e22226915a8d63912280b68d0b70b24e2
7
+ data.tar.gz: 58e21edfe10dd05e5d93e5f43382f682c2d5516f260a7e3eb008266bbf41ee9bbb602bad50293569215cb0c59935a136ffe400e9a3bd27c5b76933a0e589206c
@@ -1,3 +1,3 @@
1
1
  module SpectreScss
2
- VERSION = '0.4.5.0'
2
+ VERSION = '0.4.6.0'
3
3
  end
@@ -22,7 +22,7 @@
22
22
  &::before {
23
23
  color: $gray-color-light;
24
24
  content: "/";
25
- padding-right: $unit-1;
25
+ padding-right: $unit-2;
26
26
  }
27
27
  }
28
28
  }
@@ -190,9 +190,7 @@
190
190
  }
191
191
 
192
192
  .calendar-event {
193
- background: $secondary-color;
194
193
  border-radius: $border-radius;
195
- color: $primary-color;
196
194
  font-size: $font-size-sm;
197
195
  display: block;
198
196
  margin: $unit-h auto;
@@ -17,7 +17,7 @@
17
17
 
18
18
  img {
19
19
  height: 100%;
20
- object-fit: none;
20
+ object-fit: cover;
21
21
  object-position: left center;
22
22
  position: absolute;
23
23
  width: 100%;
@@ -5,7 +5,7 @@
5
5
  border-radius: $border-radius;
6
6
  list-style: none;
7
7
  margin: 0;
8
- min-width: $control-min-width;
8
+ min-width: $control-width-xs;
9
9
  padding: $unit-2;
10
10
  transform: translateY($layout-spacing-sm);
11
11
  z-index: $zindex-1;
@@ -10,6 +10,10 @@
10
10
  @mixin bg-color-variant($name: ".bg-primary", $color: $primary-color) {
11
11
  #{$name} {
12
12
  background: $color;
13
+
14
+ @if (lightness($color) < 60) {
15
+ color: $light-color;
16
+ }
13
17
  }
14
18
  }
15
19
 
@@ -31,7 +31,7 @@
31
31
 
32
32
  .modal-container {
33
33
  animation: slide-down .2s ease 1;
34
- max-width: 640px;
34
+ max-width: $control-width-md;
35
35
  width: 100%;
36
36
  z-index: $zindex-0;
37
37
  }
@@ -39,7 +39,7 @@
39
39
 
40
40
  &.modal-sm {
41
41
  .modal-container {
42
- max-width: 320px;
42
+ max-width: $control-width-sm;
43
43
  padding: 0 $unit-2;
44
44
  }
45
45
  }
@@ -51,7 +51,7 @@
51
51
 
52
52
  .modal-container {
53
53
  box-shadow: none;
54
- max-width: 960px;
54
+ max-width: $control-width-lg;
55
55
  }
56
56
  }
57
57
  }
@@ -1,5 +1,5 @@
1
1
  // Off canvas menus
2
- $off-canvas-breakpoint: 960px !default;
2
+ $off-canvas-breakpoint: $size-lg !default;
3
3
 
4
4
  .off-canvas {
5
5
  display: flex;
@@ -4,6 +4,7 @@ $parallax-offset: 4.5px !default;
4
4
  $parallax-offset-z: 50px !default;
5
5
  $parallax-perspective: 1000px !default;
6
6
  $parallax-scale: .95 !default;
7
+ $parallax-fade-color: rgba(255, 255, 255, .35) !default;
7
8
 
8
9
  // Mixin: Parallax direction
9
10
  @mixin parallax-dir() {
@@ -64,7 +65,7 @@ $parallax-scale: .95 !default;
64
65
  transform: perspective($parallax-perspective) rotateX($parallax-deg) rotateY(-$parallax-deg);
65
66
 
66
67
  &::before {
67
- background: linear-gradient(135deg, rgba(255, 255, 255, .35) 0%, transparent 50%);
68
+ background: linear-gradient(135deg, $parallax-fade-color 0%, transparent 50%);
68
69
  }
69
70
 
70
71
  .parallax-front {
@@ -82,7 +83,7 @@ $parallax-scale: .95 !default;
82
83
  transform: perspective($parallax-perspective) rotateX($parallax-deg) rotateY($parallax-deg);
83
84
 
84
85
  &::before {
85
- background: linear-gradient(-135deg, rgba(255, 255, 255, .35) 0%, transparent 50%);
86
+ background: linear-gradient(-135deg, $parallax-fade-color 0%, transparent 50%);
86
87
  }
87
88
 
88
89
  .parallax-front {
@@ -100,7 +101,7 @@ $parallax-scale: .95 !default;
100
101
  transform: perspective($parallax-perspective) rotateX(-$parallax-deg) rotateY(-$parallax-deg);
101
102
 
102
103
  &::before {
103
- background: linear-gradient(45deg, rgba(255, 255, 255, .35) 0%, transparent 50%);
104
+ background: linear-gradient(45deg, $parallax-fade-color 0%, transparent 50%);
104
105
  }
105
106
 
106
107
  .parallax-front {
@@ -118,7 +119,7 @@ $parallax-scale: .95 !default;
118
119
  transform: perspective($parallax-perspective) rotateX(-$parallax-deg) rotateY($parallax-deg);
119
120
 
120
121
  &::before {
121
- background: linear-gradient(-45deg, rgba(255, 255, 255, .35) 0%, transparent 50%);
122
+ background: linear-gradient(-45deg, $parallax-fade-color 0%, transparent 50%);
122
123
  }
123
124
 
124
125
  .parallax-front {
@@ -4,19 +4,18 @@
4
4
  position: relative;
5
5
 
6
6
  .popover-container {
7
- content: attr(data-tooltip);
8
- opacity: 0;
9
7
  left: 50%;
8
+ opacity: 0;
10
9
  padding: $layout-spacing;
11
10
  position: absolute;
12
11
  top: 0;
13
12
  transform: translate(-50%, -50%) scale(0);
14
13
  transition: transform .2s ease;
15
- width: $control-max-width;
14
+ width: $control-width-sm;
16
15
  z-index: $zindex-4;
17
16
  }
18
17
 
19
- :focus + .popover-container,
18
+ *:focus + .popover-container,
20
19
  &:hover .popover-container,
21
20
  .popover-container:hover {
22
21
  display: block;
@@ -12,6 +12,12 @@
12
12
  outline: none;
13
13
  }
14
14
 
15
+ &.tooltip:not([data-tooltip]) {
16
+ &::after {
17
+ content: attr(value);
18
+ }
19
+ }
20
+
15
21
  // Slider Thumb
16
22
  &::-webkit-slider-thumb {
17
23
  -webkit-appearance: none;
@@ -13,27 +13,35 @@
13
13
  }
14
14
  }
15
15
 
16
- &.table-hover {
16
+ &,
17
+ &.table-striped {
17
18
  tbody {
18
19
  tr {
19
- &:hover {
20
+ &.active {
20
21
  background: $bg-color-dark;
21
22
  }
22
23
  }
23
24
  }
24
25
  }
25
26
 
26
- &,
27
- &.table-striped {
27
+ &.table-hover {
28
28
  tbody {
29
29
  tr {
30
- &.active {
30
+ &:hover {
31
31
  background: $bg-color-dark;
32
32
  }
33
33
  }
34
34
  }
35
35
  }
36
36
 
37
+ // Tables with horizontal scrollbar
38
+ &.table-scroll {
39
+ display: block;
40
+ overflow-x: auto;
41
+ padding-bottom: .75rem;
42
+ white-space: nowrap;
43
+ }
44
+
37
45
  td,
38
46
  th {
39
47
  border-bottom: $border-width solid $border-color;
@@ -10,7 +10,7 @@
10
10
  display: block;
11
11
  font-size: $font-size-sm;
12
12
  left: 50%;
13
- max-width: $control-max-width;
13
+ max-width: $control-width-sm;
14
14
  opacity: 0;
15
15
  overflow: hidden;
16
16
  padding: $unit-1 $unit-2;
@@ -1,5 +1,5 @@
1
1
  // Core variables
2
- $version: "0.4.5";
2
+ $version: "0.4.6";
3
3
 
4
4
  // Core colors
5
5
  $primary-color: #5755d9 !default;
@@ -86,8 +86,12 @@ $control-padding-y: ($control-size - $line-height) / 2 - $border-width !default;
86
86
  $control-padding-y-sm: ($control-size-sm - $line-height) / 2 - $border-width !default;
87
87
  $control-padding-y-lg: ($control-size-lg - $line-height) / 2 - $border-width !default;
88
88
  $control-icon-size: .8rem !default;
89
- $control-min-width: 180px !default;
90
- $control-max-width: 320px !default;
89
+
90
+ $control-width-xs: 180px !default;
91
+ $control-width-sm: 320px !default;
92
+ $control-width-md: 640px !default;
93
+ $control-width-lg: 960px !default;
94
+ $control-width-xl: 1280px !default;
91
95
 
92
96
  // Responsive breakpoints
93
97
  $size-xs: 480px !default;
@@ -97,6 +101,8 @@ $size-lg: 960px !default;
97
101
  $size-xl: 1280px !default;
98
102
  $size-2x: 1440px !default;
99
103
 
104
+ $responsive-breakpoint: $size-xs !default;
105
+
100
106
  // Z-index
101
107
  $zindex-0: 1 !default;
102
108
  $zindex-1: 100 !default;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectre_scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5.0
4
+ version: 0.4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoran
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-25 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler