@meduza/ui-kit-2 1.4.3 → 1.4.5

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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.3",
2
+ "version": "1.4.5",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -42,8 +42,7 @@ export const Image: React.FC<ImageProps> = ({
42
42
  }
43
43
 
44
44
  const pictureStyles = {
45
- paddingBottom:
46
- ratio === null ? 'unset' : `${100 / (ratio || width / height)}%`
45
+ aspectRatio: ratio === null ? 'unset' : `${ratio || width / height}`
47
46
  }
48
47
 
49
48
  /* fallback w325 url until w6 was released */
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .root a:hover {
13
- color: #b88b58;
13
+ color: $gold;
14
14
  }
15
15
 
16
16
  .caption {
@@ -3,7 +3,7 @@
3
3
 
4
4
  border-radius: 8px;
5
5
  background-color: $platinum;
6
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 4px 0 0 #b78b5c;
6
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 2px 0 0 $gold;
7
7
 
8
8
  @media $portraitTablet {
9
9
  margin: 25px 0;
@@ -10,8 +10,9 @@
10
10
  }
11
11
 
12
12
  .track {
13
+ --slideGap: 20px;
14
+
13
15
  display: flex;
14
- gap: 20px;
15
16
 
16
17
  touch-action: pan-y pinch-zoom;
17
18
  }
@@ -19,8 +20,10 @@
19
20
  .slide {
20
21
  position: relative;
21
22
 
22
- flex: 0 0 85%;
23
+ box-sizing: border-box;
24
+ flex: 0 0 calc(85% + var(--slideGap));
23
25
  min-width: 0;
26
+ padding-right: var(--slideGap);
24
27
 
25
28
  overflow: hidden;
26
29
  }
@@ -11,7 +11,7 @@
11
11
  padding: 8px 20px 20px;
12
12
 
13
13
  background-color: #f7f7f7;
14
- border-top: 4px solid #b88b58;
14
+ border-top: 4px solid #b78a54;
15
15
 
16
16
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
17
17
  }
@@ -13,7 +13,7 @@
13
13
 
14
14
  background-color: #f7f7f7;
15
15
 
16
- border-top: 2px solid #b78a54;
16
+ border-top: 2px solid $gold;
17
17
 
18
18
  outline-width: 0;
19
19
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
@@ -110,12 +110,13 @@
110
110
  }
111
111
 
112
112
  .isInMediaBlock:not(.featured) span {
113
- display: block;
114
-
115
- margin-top: 4px;
116
-
117
113
  font-size: 18px;
118
114
  line-height: 132%;
115
+
116
+ @media $landscapeTabletMax {
117
+ display: block;
118
+ margin-top: 4px;
119
+ }
119
120
  }
120
121
 
121
122
  .isInBookRelated {
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  .root::after {
46
- box-shadow: inset 0 4px #b88b59, inset 0 5px rgba(0, 0, 0, 0.2),
46
+ box-shadow: inset 0 4px $gold, inset 0 5px rgba(0, 0, 0, 0.2),
47
47
  inset 0 0 0 1px rgba(0, 0, 0, 0.1);
48
48
  }
49
49
 
@@ -25,6 +25,6 @@ span[data-body]:hover {
25
25
  span[data-highlight='true'],
26
26
  span[data-highlight='true']:hover {
27
27
  background-color: #f4efe9;
28
- box-shadow: inset 1px 0 #b88b58, inset 0 1px #b88b58, inset -1px 0 #b88b58,
29
- inset 0 -1px #b88b58;
28
+ box-shadow: inset 1px 0 $gold, inset 0 1px $gold, inset -1px 0 $gold,
29
+ inset 0 -1px $gold;
30
30
  }
@@ -468,5 +468,5 @@ a mark {
468
468
  .blockquote.isDark a {
469
469
  color: inherit;
470
470
 
471
- box-shadow: inset 0 -1px #b88b59;
471
+ box-shadow: inset 0 -1px $gold;
472
472
  }
@@ -7,7 +7,7 @@
7
7
  color: #000;
8
8
  border-radius: 2px 8px 8px 2px;
9
9
  background-color: $platinum;
10
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 4px 0 0 0 #b78b5c;
10
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 4px 0 0 0 $gold;
11
11
 
12
12
  font-size: 16px;
13
13
  line-height: 20px;
@@ -52,9 +52,9 @@
52
52
  }
53
53
 
54
54
  .row[data-type='MediaBlock'] svg {
55
- color: #b88b58;
55
+ color: #b78a54;
56
56
 
57
- fill: #b88b58;
57
+ fill: #b78a54;
58
58
  }
59
59
 
60
60
  .row[data-type='MediaMaterial'] {
@@ -170,8 +170,8 @@
170
170
  }
171
171
 
172
172
  .cell a:hover {
173
- color: #b88b58;
174
- box-shadow: inset 0 -1px #b88b58;
173
+ color: $gold;
174
+ box-shadow: inset 0 -1px $gold;
175
175
  }
176
176
 
177
177
  .cell p {