@meduza/ui-kit-2 1.4.5 → 1.4.6

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.
@@ -2431,6 +2431,10 @@
2431
2431
  color: #757575;
2432
2432
  }
2433
2433
 
2434
+ .Meta-module_richRelated__fIo0x {
2435
+ color: rgba(0, 0, 0, 0.4);
2436
+ }
2437
+
2434
2438
  .Meta-module_isInBookRelated__Ohidg {
2435
2439
  opacity: 0.5;
2436
2440
  }
@@ -3254,6 +3258,29 @@
3254
3258
  }
3255
3259
  }
3256
3260
 
3261
+ .RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o {
3262
+ margin: 0;
3263
+
3264
+ font-size: 18px;
3265
+ line-height: 1.3;
3266
+ letter-spacing: normal;
3267
+ }
3268
+
3269
+ .RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o span {
3270
+ margin-top: 0;
3271
+ padding-top: 0;
3272
+
3273
+ font-size: 16px;
3274
+ line-height: 1.3;
3275
+ }
3276
+
3277
+ @media only screen and (min-width: 40.625em) {
3278
+
3279
+ .RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o span {
3280
+ font-size: 18px;
3281
+ }
3282
+ }
3283
+
3257
3284
  .RichTitle-module_isInBookRelated__LcCPV {
3258
3285
  margin: 6px 0 20px;
3259
3286
  }
@@ -6028,11 +6055,12 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6028
6055
 
6029
6056
  display: flex;
6030
6057
  flex-flow: column nowrap;
6031
- gap: 20px;
6058
+ gap: 30px;
6032
6059
 
6033
- padding: 10px 20px 20px;
6060
+ padding: 12px 20px 20px;
6034
6061
  overflow: hidden;
6035
6062
 
6063
+ color: #000;
6036
6064
  text-decoration: none;
6037
6065
 
6038
6066
  background-color: #f7f7f7;
@@ -6043,38 +6071,74 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6043
6071
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
6044
6072
  }
6045
6073
 
6046
- @media only screen and (min-width: 32em) {
6074
+ .RelatedRichBlock-module_root__-SEe7 {
6075
+ margin: 16px -20px;
6076
+ }
6047
6077
 
6048
- .RelatedRichBlock-module_root__-SEe7:hover {
6049
- opacity: 0.95;
6078
+ @media only screen and (min-width: 40.625em) {
6079
+
6080
+ .RelatedRichBlock-module_root__-SEe7 {
6081
+ margin-top: 25px;
6082
+ margin-bottom: 25px;
6050
6083
  }
6051
6084
  }
6052
6085
 
6053
- .RelatedRichBlock-module_root__-SEe7 {
6054
- margin: 16px 0;
6086
+ .RelatedRichBlock-module_root__-SEe7:first-child {
6087
+ margin-top: 0;
6088
+ }
6089
+
6090
+ .RelatedRichBlock-module_root__-SEe7:last-child {
6091
+ margin-bottom: 0;
6092
+ }
6093
+
6094
+ .RelatedRichBlock-module_isInCard__F3ip3 {
6095
+ margin-right: -11px;
6096
+ margin-left: -11px;
6055
6097
  }
6056
6098
 
6057
6099
  @media only screen and (min-width: 40.625em) {
6058
6100
 
6059
- .RelatedRichBlock-module_root__-SEe7 {
6060
- margin: 25px 0;
6101
+ .RelatedRichBlock-module_isInCard__F3ip3 {
6102
+ margin-right: 0;
6103
+ margin-left: 0;
6061
6104
  }
6062
6105
  }
6063
6106
 
6064
6107
  .RelatedRichBlock-module_content__iyMrN {
6065
6108
  display: flex;
6066
- flex-flow: row nowrap;
6109
+ flex-flow: column nowrap;
6067
6110
  gap: 20px;
6068
6111
  }
6069
6112
 
6113
+ @media only screen and (min-width: 40.625em) {
6114
+
6115
+ .RelatedRichBlock-module_content__iyMrN {
6116
+ flex-flow: row nowrap;
6117
+ }
6118
+ }
6119
+
6070
6120
  .RelatedRichBlock-module_cover__3gnIx {
6071
6121
  flex-shrink: 0;
6072
- width: 200px;
6122
+ width: 100%;
6073
6123
  }
6074
6124
 
6125
+ @media only screen and (min-width: 40.625em) {
6126
+
6127
+ .RelatedRichBlock-module_cover__3gnIx {
6128
+ width: 200px;
6129
+ }
6130
+ }
6131
+
6075
6132
  .RelatedRichBlock-module_body__XhS0U {
6076
6133
  display: flex;
6077
6134
  flex-flow: column nowrap;
6135
+ gap: 16px;
6136
+
6137
+ transition: color 0.15s;
6138
+ }
6139
+
6140
+ .RelatedRichBlock-module_root__-SEe7:hover .RelatedRichBlock-module_body__XhS0U {
6141
+ color: #5c5c5c;
6078
6142
  }
6079
6143
 
6080
6144
  .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx {
@@ -6090,21 +6154,36 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6090
6154
  }
6091
6155
 
6092
6156
  .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
6093
- width: 100px;
6094
- height: 100px;
6157
+ width: 180px;
6158
+ height: 180px;
6095
6159
  }
6096
6160
 
6161
+ @media only screen and (min-width: 40.625em) {
6162
+
6163
+ .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
6164
+ width: 100px;
6165
+ height: 100px;
6166
+ }
6167
+ }
6168
+
6097
6169
  .RelatedRichBlock-module_tag__c18sv {
6098
- color: rgba(0, 0, 0, 0.5);
6170
+ display: flex;
6171
+
6172
+ color: #7f7f7f;
6099
6173
  }
6100
6174
 
6101
6175
  .RelatedRichBlock-module_center__KANd- {
6102
- width: 100%;
6103
6176
  max-width: 650px;
6104
- margin-right: auto;
6105
- margin-left: auto;
6106
6177
  }
6107
6178
 
6179
+ @media only screen and (min-width: 32em) {
6180
+
6181
+ .RelatedRichBlock-module_center__KANd- {
6182
+ margin-right: auto;
6183
+ margin-left: auto;
6184
+ }
6185
+ }
6186
+
6108
6187
  /* Display */
6109
6188
 
6110
6189
  @media only screen and (min-width: 32em) {
package/dist/ui-kit.css CHANGED
@@ -2431,6 +2431,10 @@
2431
2431
  color: #757575;
2432
2432
  }
2433
2433
 
2434
+ .Meta-module_richRelated__fIo0x {
2435
+ color: rgba(0, 0, 0, 0.4);
2436
+ }
2437
+
2434
2438
  .Meta-module_isInBookRelated__Ohidg {
2435
2439
  opacity: 0.5;
2436
2440
  }
@@ -3254,6 +3258,29 @@
3254
3258
  }
3255
3259
  }
3256
3260
 
3261
+ .RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o {
3262
+ margin: 0;
3263
+
3264
+ font-size: 18px;
3265
+ line-height: 1.3;
3266
+ letter-spacing: normal;
3267
+ }
3268
+
3269
+ .RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o span {
3270
+ margin-top: 0;
3271
+ padding-top: 0;
3272
+
3273
+ font-size: 16px;
3274
+ line-height: 1.3;
3275
+ }
3276
+
3277
+ @media only screen and (min-width: 64em) {
3278
+
3279
+ .RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o span {
3280
+ font-size: 18px;
3281
+ }
3282
+ }
3283
+
3257
3284
  .RichTitle-module_isInBookRelated__LcCPV {
3258
3285
  margin: 6px 0 20px;
3259
3286
  }
@@ -6028,11 +6055,12 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6028
6055
 
6029
6056
  display: flex;
6030
6057
  flex-flow: column nowrap;
6031
- gap: 20px;
6058
+ gap: 30px;
6032
6059
 
6033
- padding: 10px 20px 20px;
6060
+ padding: 12px 20px 20px;
6034
6061
  overflow: hidden;
6035
6062
 
6063
+ color: #000;
6036
6064
  text-decoration: none;
6037
6065
 
6038
6066
  background-color: #f7f7f7;
@@ -6043,38 +6071,74 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6043
6071
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
6044
6072
  }
6045
6073
 
6046
- @media only screen and (min-width: 32em) {
6074
+ .RelatedRichBlock-module_root__-SEe7 {
6075
+ margin: 16px -20px;
6076
+ }
6047
6077
 
6048
- .RelatedRichBlock-module_root__-SEe7:hover {
6049
- opacity: 0.95;
6078
+ @media only screen and (min-width: 48em) {
6079
+
6080
+ .RelatedRichBlock-module_root__-SEe7 {
6081
+ margin-top: 25px;
6082
+ margin-bottom: 25px;
6050
6083
  }
6051
6084
  }
6052
6085
 
6053
- .RelatedRichBlock-module_root__-SEe7 {
6054
- margin: 16px 0;
6086
+ .RelatedRichBlock-module_root__-SEe7:first-child {
6087
+ margin-top: 0;
6088
+ }
6089
+
6090
+ .RelatedRichBlock-module_root__-SEe7:last-child {
6091
+ margin-bottom: 0;
6092
+ }
6093
+
6094
+ .RelatedRichBlock-module_isInCard__F3ip3 {
6095
+ margin-right: -11px;
6096
+ margin-left: -11px;
6055
6097
  }
6056
6098
 
6057
6099
  @media only screen and (min-width: 48em) {
6058
6100
 
6059
- .RelatedRichBlock-module_root__-SEe7 {
6060
- margin: 25px 0;
6101
+ .RelatedRichBlock-module_isInCard__F3ip3 {
6102
+ margin-right: 0;
6103
+ margin-left: 0;
6061
6104
  }
6062
6105
  }
6063
6106
 
6064
6107
  .RelatedRichBlock-module_content__iyMrN {
6065
6108
  display: flex;
6066
- flex-flow: row nowrap;
6109
+ flex-flow: column nowrap;
6067
6110
  gap: 20px;
6068
6111
  }
6069
6112
 
6113
+ @media only screen and (min-width: 48em) {
6114
+
6115
+ .RelatedRichBlock-module_content__iyMrN {
6116
+ flex-flow: row nowrap;
6117
+ }
6118
+ }
6119
+
6070
6120
  .RelatedRichBlock-module_cover__3gnIx {
6071
6121
  flex-shrink: 0;
6072
- width: 200px;
6122
+ width: 100%;
6073
6123
  }
6074
6124
 
6125
+ @media only screen and (min-width: 48em) {
6126
+
6127
+ .RelatedRichBlock-module_cover__3gnIx {
6128
+ width: 200px;
6129
+ }
6130
+ }
6131
+
6075
6132
  .RelatedRichBlock-module_body__XhS0U {
6076
6133
  display: flex;
6077
6134
  flex-flow: column nowrap;
6135
+ gap: 16px;
6136
+
6137
+ transition: color 0.15s;
6138
+ }
6139
+
6140
+ .RelatedRichBlock-module_root__-SEe7:hover .RelatedRichBlock-module_body__XhS0U {
6141
+ color: #5c5c5c;
6078
6142
  }
6079
6143
 
6080
6144
  .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx {
@@ -6090,21 +6154,36 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6090
6154
  }
6091
6155
 
6092
6156
  .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
6093
- width: 100px;
6094
- height: 100px;
6157
+ width: 180px;
6158
+ height: 180px;
6095
6159
  }
6096
6160
 
6161
+ @media only screen and (min-width: 48em) {
6162
+
6163
+ .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
6164
+ width: 100px;
6165
+ height: 100px;
6166
+ }
6167
+ }
6168
+
6097
6169
  .RelatedRichBlock-module_tag__c18sv {
6098
- color: rgba(0, 0, 0, 0.5);
6170
+ display: flex;
6171
+
6172
+ color: #7f7f7f;
6099
6173
  }
6100
6174
 
6101
6175
  .RelatedRichBlock-module_center__KANd- {
6102
- width: 100%;
6103
6176
  max-width: 650px;
6104
- margin-right: auto;
6105
- margin-left: auto;
6106
6177
  }
6107
6178
 
6179
+ @media only screen and (min-width: 32em) {
6180
+
6181
+ .RelatedRichBlock-module_center__KANd- {
6182
+ margin-right: auto;
6183
+ margin-left: auto;
6184
+ }
6185
+ }
6186
+
6108
6187
  /* Display */
6109
6188
 
6110
6189
  @media only screen and (min-width: 32em) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.5",
2
+ "version": "1.4.6",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -96,6 +96,10 @@
96
96
  color: #757575;
97
97
  }
98
98
 
99
+ .richRelated {
100
+ color: rgba(0, 0, 0, 0.4);
101
+ }
102
+
99
103
  .isInBookRelated {
100
104
  opacity: 0.5;
101
105
  }
@@ -4,11 +4,12 @@
4
4
 
5
5
  display: flex;
6
6
  flex-flow: column nowrap;
7
- gap: 20px;
7
+ gap: 30px;
8
8
 
9
- padding: 10px 20px 20px;
9
+ padding: 12px 20px 20px;
10
10
  overflow: hidden;
11
11
 
12
+ color: #000;
12
13
  text-decoration: none;
13
14
 
14
15
  background-color: #f7f7f7;
@@ -19,34 +20,62 @@
19
20
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
20
21
  }
21
22
 
22
- .root:hover {
23
- @media $mobile {
24
- opacity: 0.95;
23
+ .root {
24
+ margin: 16px -20px;
25
+
26
+ @media $portraitTablet {
27
+ margin-top: 25px;
28
+ margin-bottom: 25px;
25
29
  }
26
30
  }
27
31
 
28
- .root {
29
- margin: 16px 0;
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;
30
43
 
31
44
  @media $portraitTablet {
32
- margin: 25px 0;
45
+ margin-right: 0;
46
+ margin-left: 0;
33
47
  }
34
48
  }
35
49
 
36
50
  .content {
37
51
  display: flex;
38
- flex-flow: row nowrap;
52
+ flex-flow: column nowrap;
39
53
  gap: 20px;
54
+
55
+ @media $portraitTablet {
56
+ flex-flow: row nowrap;
57
+ }
40
58
  }
41
59
 
42
60
  .cover {
43
61
  flex-shrink: 0;
44
- width: 200px;
62
+ width: 100%;
63
+
64
+ @media $portraitTablet {
65
+ width: 200px;
66
+ }
45
67
  }
46
68
 
47
69
  .body {
48
70
  display: flex;
49
71
  flex-flow: column nowrap;
72
+ gap: 16px;
73
+
74
+ transition: color 0.15s;
75
+ }
76
+
77
+ .root:hover .body {
78
+ color: #5c5c5c;
50
79
  }
51
80
 
52
81
  .isCard .cover {
@@ -62,19 +91,28 @@
62
91
  }
63
92
 
64
93
  .isCard .cover > div {
65
- width: 100px;
66
- height: 100px;
94
+ width: 180px;
95
+ height: 180px;
96
+
97
+ @media $portraitTablet {
98
+ width: 100px;
99
+ height: 100px;
100
+ }
67
101
  }
68
102
 
69
103
  .tag {
70
- color: rgba(0, 0, 0, 0.5);
104
+ display: flex;
105
+
106
+ color: #7f7f7f;
71
107
  }
72
108
 
73
109
  .center {
74
- width: 100%;
75
110
  max-width: 650px;
76
- margin-right: auto;
77
- margin-left: auto;
111
+
112
+ @media $mobile {
113
+ margin-right: auto;
114
+ margin-left: auto;
115
+ }
78
116
  }
79
117
 
80
118
  /* 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']
36
+ let context = ['isInMediaBlock', 'richRelated']
37
37
 
38
38
  if (styleContext) {
39
39
  classNames = makeStyleContext(classNames, styleContext, styles)
40
40
 
41
- context = [...styleContext, 'isInMediaBlock']
41
+ context = [...styleContext, 'isInMediaBlock', 'richRelated']
42
42
  }
43
43
 
44
44
  return (
@@ -119,6 +119,26 @@
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
+
122
142
  .isInBookRelated {
123
143
  margin: 6px 0 20px;
124
144