@meduza/ui-kit-2 1.4.6-c → 1.4.7-b

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.
@@ -4,78 +4,49 @@
4
4
 
5
5
  display: flex;
6
6
  flex-flow: column nowrap;
7
- gap: 30px;
7
+ gap: 20px;
8
8
 
9
- padding: 12px 20px 20px;
9
+ padding: 10px 20px 20px;
10
10
  overflow: hidden;
11
11
 
12
- color: #000;
13
12
  text-decoration: none;
14
13
 
15
14
  background-color: #f7f7f7;
16
15
 
17
- border-top: 2px solid #b88b58;
16
+ border-top: 2px solid $gold;
18
17
 
19
18
  outline-width: 0;
20
19
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
21
20
  }
22
21
 
23
- .root {
24
- margin: 16px -20px;
25
-
26
- @media $portraitTablet {
27
- margin-top: 25px;
28
- margin-bottom: 25px;
22
+ .root:hover {
23
+ @media $mobile {
24
+ opacity: 0.95;
29
25
  }
30
26
  }
31
27
 
32
- .root:first-child {
33
- margin-top: 0;
34
- }
35
-
36
- .root:last-child {
37
- margin-bottom: 0;
38
- }
39
-
40
- .isInCard {
41
- margin-right: -11px;
42
- margin-left: -11px;
28
+ .root {
29
+ margin: 16px 0;
43
30
 
44
31
  @media $portraitTablet {
45
- margin-right: 0;
46
- margin-left: 0;
32
+ margin: 25px 0;
47
33
  }
48
34
  }
49
35
 
50
36
  .content {
51
37
  display: flex;
52
- flex-flow: column nowrap;
38
+ flex-flow: row nowrap;
53
39
  gap: 20px;
54
-
55
- @media $portraitTablet {
56
- flex-flow: row nowrap;
57
- }
58
40
  }
59
41
 
60
42
  .cover {
61
43
  flex-shrink: 0;
62
- width: 100%;
63
-
64
- @media $portraitTablet {
65
- width: 200px;
66
- }
44
+ width: 200px;
67
45
  }
68
46
 
69
47
  .body {
70
48
  display: flex;
71
49
  flex-flow: column nowrap;
72
- gap: 16px;
73
-
74
- transition: color 0.15s;
75
- }
76
-
77
- .root:hover .body {
78
- color: #5c5c5c;
79
50
  }
80
51
 
81
52
  .isCard .cover {
@@ -91,28 +62,19 @@
91
62
  }
92
63
 
93
64
  .isCard .cover > div {
94
- width: 180px;
95
- height: 180px;
96
-
97
- @media $portraitTablet {
98
- width: 100px;
99
- height: 100px;
100
- }
65
+ width: 100px;
66
+ height: 100px;
101
67
  }
102
68
 
103
69
  .tag {
104
- display: flex;
105
-
106
- color: #7f7f7f;
70
+ color: rgba(0, 0, 0, 0.5);
107
71
  }
108
72
 
109
73
  .center {
74
+ width: 100%;
110
75
  max-width: 650px;
111
-
112
- @media $mobile {
113
- margin-right: auto;
114
- margin-left: auto;
115
- }
76
+ margin-right: auto;
77
+ margin-left: auto;
116
78
  }
117
79
 
118
80
  /* Display */
@@ -33,12 +33,12 @@ export const RelatedRichBlock: React.FC<RelatedRichBlockProps> = ({
33
33
  [styles[onlyOn], !!onlyOn && !!styles[onlyOn]]
34
34
  ]
35
35
 
36
- let context = ['isInMediaBlock', 'richRelated']
36
+ let context = ['isInMediaBlock']
37
37
 
38
38
  if (styleContext) {
39
39
  classNames = makeStyleContext(classNames, styleContext, styles)
40
40
 
41
- context = [...styleContext, 'isInMediaBlock', 'richRelated']
41
+ context = [...styleContext, 'isInMediaBlock']
42
42
  }
43
43
 
44
44
  return (
@@ -119,26 +119,6 @@
119
119
  }
120
120
  }
121
121
 
122
- .root.richRelated {
123
- margin: 0;
124
-
125
- font-size: 18px;
126
- line-height: 1.3;
127
- letter-spacing: normal;
128
- }
129
-
130
- .root.richRelated span {
131
- margin-top: 0;
132
- padding-top: 0;
133
-
134
- font-size: 16px;
135
- line-height: 1.3;
136
-
137
- @media $landscapeTablet {
138
- font-size: 18px;
139
- }
140
- }
141
-
142
122
  .isInBookRelated {
143
123
  margin: 6px 0 20px;
144
124
 
@@ -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 {