@sima-land/moleculas 16.0.0-alpha.40 → 16.0.0-alpha.41

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.
@@ -14,26 +14,25 @@
14
14
  --modifier-text-color: #{colors.$basic-gray87};
15
15
  --modifier-border-width: 1px;
16
16
  --modifier-border-color: #{colors.$basic-gray12};
17
+ --modifier-border-style: solid;
17
18
  --modifier-corner-bg: #{colors.$basic-gray12};
18
19
  --modifier-corner-color: #{colors.$basic-gray87};
19
20
  --content-offset: 3px;
20
21
  &.active {
21
22
  --modifier-border-color: #{colors.$basic-blue};
22
- --modifier-corner-color: #fff;
23
+ --modifier-corner-color: #{colors.$basic-white};
23
24
  --modifier-corner-bg: #{colors.$basic-blue};
24
25
  }
25
26
  &:hover:not(.disabled) {
26
27
  cursor: pointer;
27
28
  }
28
- &:hover:not(.disabled):not(.active):not(.non-existent) {
29
- --modifier-border-width: 1px;
29
+ &:hover:not(.disabled):not(.active) {
30
30
  --modifier-border-color: #{colors.$basic-gray24};
31
31
  --modifier-corner-bg: #{colors.$basic-gray24};
32
32
  }
33
33
  &.disabled {
34
34
  --modifier-media-opacity: 0.24;
35
35
  --modifier-overlay-color: rgba(0, 0, 0, 0.04);
36
- --modifier-border-width: 1px;
37
36
  --modifier-text-color: #{colors.$basic-gray38};
38
37
  --modifier-corner-bg: transparent;
39
38
  --modifier-corner-color: #{colors.$basic-gray38};
@@ -42,20 +41,7 @@
42
41
  }
43
42
  }
44
43
  &.non-existent {
45
- --border-image-source: url(./default-border.svg);
46
- --border-image-slice: 6;
47
- --border-image-width: 6;
48
- &:hover {
49
- // ВАЖНО! Невидимость, чтобы не мелькала сплошлая граница во время загрузки изображения.
50
- --modifier-border-color: rgba(255, 255, 255, 0);
51
- --border-image-source: url(./hover-border.svg);
52
- }
53
- &::before {
54
- border-image-source: var(--border-image-source);
55
- border-image-slice: var(--border-image-slice);
56
- border-image-repeat: round;
57
- border-image-width: var(--border-image-width);
58
- }
44
+ --modifier-border-style: dashed;
59
45
  }
60
46
  &::before {
61
47
  content: '';
@@ -67,7 +53,7 @@
67
53
  width: calc(100% - var(--modifier-border-width) * 2);
68
54
  height: calc(100% - var(--modifier-border-width) * 2);
69
55
  border-radius: inherit;
70
- border: var(--modifier-border-width) solid var(--modifier-border-color);
56
+ border: var(--modifier-border-width) var(--modifier-border-style) var(--modifier-border-color);
71
57
  }
72
58
  &.more {
73
59
  width: var(--modifier-size);
@@ -183,7 +169,7 @@
183
169
  overflow: hidden;
184
170
  padding: 0 4px;
185
171
  background: colors.$additional-teal;
186
- color: #fff;
172
+ color: colors.$basic-white;
187
173
  position: absolute;
188
174
  right: -2px;
189
175
  top: -2px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sima-land/moleculas",
3
3
  "type": "commonjs",
4
- "version": "16.0.0-alpha.40",
4
+ "version": "16.0.0-alpha.41",
5
5
  "repository": "ssh://git@github.com:sima-land/moleculas.git",
6
6
  "author": "www.sima-land.ru team",
7
7
  "license": "Apache-2.0",
@@ -1,14 +0,0 @@
1
- <svg width="62" height="62" viewBox="0 0 62.5 62.5" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect
3
- x="0.5"
4
- y="0.5"
5
- width="61.5"
6
- height="61.5"
7
- rx="3.5"
8
- stroke="rgba(194, 194, 194, 1)"
9
- stroke-linecap="round"
10
- stroke-linejoin="round"
11
- stroke-dasharray="5 5"
12
- stroke-dashoffset="5"
13
- />
14
- </svg>
@@ -1,14 +0,0 @@
1
- <svg width="62" height="62" viewBox="0 0 62.5 62.5" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect
3
- x="0.5"
4
- y="0.5"
5
- width="61.5"
6
- height="61.5"
7
- rx="3.5"
8
- stroke="rgba(158, 158, 158, 1)"
9
- stroke-linecap="round"
10
- stroke-linejoin="round"
11
- stroke-dasharray="5 5"
12
- stroke-dashoffset="5"
13
- />
14
- </svg>