@meduza/ui-kit-2 1.4.0 → 1.4.1

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/dist/ui-kit.css CHANGED
@@ -745,9 +745,10 @@
745
745
 
746
746
  display: block;
747
747
  overflow: hidden;
748
- transition: background-color 250ms ease;
749
748
 
750
749
  background-color: #f2f2f2;
750
+
751
+ transition: background-color 250ms ease;
751
752
  }
752
753
 
753
754
  @media only screen and (min-width: 32em) {
@@ -768,12 +769,14 @@
768
769
 
769
770
  .Image-module_root__H5wAh.Image-module_fullRatio__q7QPa img {
770
771
  position: static;
772
+
771
773
  width: 100%;
772
774
  height: 100%;
773
775
  }
774
776
 
775
777
  .Image-module_isStatic__TmQ1V img {
776
778
  position: relative;
779
+
777
780
  max-height: 160px;
778
781
  }
779
782
 
@@ -813,16 +816,18 @@
813
816
  width: 40px;
814
817
  height: 40px;
815
818
 
816
- transition: opacity 250ms ease;
817
- pointer-events: none;
818
-
819
- opacity: 0;
820
- border: 0.5px solid rgba(255, 255, 255, 0.15);
821
- border-radius: 20px;
822
819
  background-color: rgba(0, 0, 0, 0.7);
823
820
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.197 10.207V3.763h-6.463' stroke='%23DBDBDB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19.793 4.166l-6.173 6.172' stroke='%23DBDBDB' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.803 13.733v6.444h6.463' stroke='%23DBDBDB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.207 19.774l6.173-6.171' stroke='%23DBDBDB' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
824
821
  background-repeat: no-repeat;
825
822
  background-position: center;
823
+ border: 0.5px solid rgba(255, 255, 255, 0.15);
824
+ border-radius: 20px;
825
+
826
+ opacity: 0;
827
+
828
+ transition: opacity 250ms ease;
829
+
830
+ pointer-events: none;
826
831
  }
827
832
 
828
833
  @media only screen and (min-width: 64em) {
@@ -840,6 +845,10 @@
840
845
  background-color: transparent;
841
846
  }
842
847
 
848
+ .Image-module_isRelated__uSeSM img {
849
+ position: static;
850
+ }
851
+
843
852
  .Popover-module_root__nBiV4 {
844
853
  position: fixed;
845
854
  z-index: 1000;
@@ -1329,7 +1338,6 @@
1329
1338
  @media only screen and (min-width: 64em) {
1330
1339
 
1331
1340
  .Tag-module_richRelated__Qs6Ei {
1332
- font-size: 14px;
1333
1341
  line-height: 20px;
1334
1342
  }
1335
1343
  }
@@ -2419,6 +2427,10 @@
2419
2427
  }
2420
2428
  }
2421
2429
 
2430
+ .Meta-module_isInMediaBlock__TENZG {
2431
+ color: #757575;
2432
+ }
2433
+
2422
2434
  .Meta-module_isInBookRelated__Ohidg {
2423
2435
  opacity: 0.5;
2424
2436
  }
@@ -3220,33 +3232,23 @@
3220
3232
  @media only screen and (min-width: 64em) {
3221
3233
 
3222
3234
  .RichTitle-module_isInMediaBlock__2h6rl {
3223
- margin-bottom: 18px;
3235
+ margin-bottom: 16px;
3224
3236
  }
3225
3237
  }
3226
3238
 
3227
3239
  .RichTitle-module_isInMediaBlock__2h6rl:not(.RichTitle-module_featured__ULNQn) {
3228
- font-size: 19px;
3229
- line-height: 23px;
3230
- }
3231
-
3232
- @media only screen and (min-width: 64em) {
3233
-
3234
- .RichTitle-module_isInMediaBlock__2h6rl:not(.RichTitle-module_featured__ULNQn) {
3235
- font-size: 1.3rem;
3236
- line-height: 1.6rem;
3240
+ font-size: 20px;
3241
+ line-height: 130%;
3237
3242
  }
3238
- }
3239
3243
 
3240
3244
  .RichTitle-module_isInMediaBlock__2h6rl:not(.RichTitle-module_featured__ULNQn) span {
3241
- font-size: 20px;
3242
- }
3245
+ display: block;
3243
3246
 
3244
- @media only screen and (min-width: 64em) {
3247
+ margin-top: 4px;
3245
3248
 
3246
- .RichTitle-module_isInMediaBlock__2h6rl:not(.RichTitle-module_featured__ULNQn) span {
3247
- font-size: 1.35rem;
3249
+ font-size: 18px;
3250
+ line-height: 132%;
3248
3251
  }
3249
- }
3250
3252
 
3251
3253
  .RichTitle-module_isInBookRelated__LcCPV {
3252
3254
  margin: 6px 0 20px;
@@ -6020,13 +6022,21 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6020
6022
  position: relative;
6021
6023
  z-index: 10;
6022
6024
 
6023
- display: block;
6025
+ display: flex;
6026
+ flex-flow: column nowrap;
6027
+ gap: 20px;
6028
+
6029
+ padding: 10px 20px 20px;
6024
6030
  overflow: hidden;
6025
6031
 
6026
6032
  text-decoration: none;
6027
6033
 
6028
- border-radius: 8px;
6034
+ background-color: #f7f7f7;
6035
+
6036
+ border-top: 2px solid #b78a54;
6037
+
6029
6038
  outline-width: 0;
6039
+ box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
6030
6040
  }
6031
6041
 
6032
6042
  @media only screen and (min-width: 32em) {
@@ -6036,247 +6046,53 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6036
6046
  }
6037
6047
  }
6038
6048
 
6039
- .RelatedRichBlock-module_root__-SEe7::after {
6040
- position: absolute;
6041
- top: 0;
6042
- right: 0;
6043
- bottom: 0;
6044
- left: 0;
6045
- z-index: 20;
6046
-
6047
- border-radius: 8px;
6048
-
6049
- content: '';
6050
- }
6051
-
6052
- .RelatedRichBlock-module_root__-SEe7::before {
6053
- display: block;
6054
-
6055
- width: 100%;
6056
- }
6057
-
6058
- .RelatedRichBlock-module_root__-SEe7::after {
6059
- box-shadow: inset 0 4px #b88b59, inset 0 5px rgba(0, 0, 0, 0.2),
6060
- inset 0 0 0 1px rgba(0, 0, 0, 0.1);
6061
- }
6062
-
6063
- .RelatedRichBlock-module_root__-SEe7,
6064
- .RelatedRichBlock-module_wrapper__YkEpr {
6049
+ .RelatedRichBlock-module_root__-SEe7 {
6065
6050
  margin: 16px 0;
6066
6051
  }
6067
6052
 
6068
6053
  @media only screen and (min-width: 48em) {
6069
6054
 
6070
- .RelatedRichBlock-module_root__-SEe7,
6071
- .RelatedRichBlock-module_wrapper__YkEpr {
6055
+ .RelatedRichBlock-module_root__-SEe7 {
6072
6056
  margin: 25px 0;
6073
6057
  }
6074
6058
  }
6075
6059
 
6076
- .RelatedRichBlock-module_overlay__tWuyR,
6077
- .RelatedRichBlock-module_overlayHeader__V3ynX {
6078
- position: absolute;
6079
- right: 0;
6080
- left: 0;
6081
- z-index: 10;
6082
- }
6083
-
6084
- .RelatedRichBlock-module_overlay__tWuyR {
6085
- bottom: 0;
6086
-
6087
- height: 295px;
6060
+ .RelatedRichBlock-module_content__iyMrN {
6061
+ display: flex;
6062
+ flex-flow: row nowrap;
6063
+ gap: 20px;
6088
6064
  }
6089
6065
 
6090
- .RelatedRichBlock-module_overlayHeader__V3ynX {
6091
- top: 0;
6092
-
6093
- height: 150px;
6066
+ .RelatedRichBlock-module_cover__3gnIx {
6067
+ flex-shrink: 0;
6068
+ width: 200px;
6094
6069
  }
6095
6070
 
6096
6071
  .RelatedRichBlock-module_body__XhS0U {
6097
6072
  display: flex;
6098
6073
  flex-flow: column nowrap;
6099
- justify-content: flex-end;
6100
-
6101
- padding: 12px 15px;
6102
-
6103
- background-color: #f7f7f7;
6104
- }
6105
-
6106
- @media only screen and (min-width: 32em) {
6107
-
6108
- .RelatedRichBlock-module_body__XhS0U {
6109
- position: absolute;
6110
- right: 0;
6111
- bottom: 0;
6112
- left: 0;
6113
- z-index: 10;
6114
-
6115
- min-height: 295px;
6116
- padding: 20px;
6117
-
6118
- background-color: transparent;
6119
- }
6120
- }
6121
-
6122
- .RelatedRichBlock-module_isRich__Z2kQ8 {
6123
- color: #000;
6124
- }
6125
-
6126
- @media only screen and (min-width: 32em) {
6127
-
6128
- .RelatedRichBlock-module_isRich__Z2kQ8 {
6129
- color: #fff;
6130
- }
6131
- }
6132
-
6133
- @media only screen and (min-width: 32em) {
6134
-
6135
- .RelatedRichBlock-module_isRich__Z2kQ8.RelatedRichBlock-module_hasGradient__s5Krh .RelatedRichBlock-module_body__XhS0U {
6136
- position: absolute;
6137
- right: 0;
6138
- bottom: 0;
6139
- left: 0;
6140
- z-index: 10;
6141
-
6142
- min-height: 295px;
6143
-
6144
- background-color: transparent;
6145
- }
6146
- }
6147
-
6148
- .RelatedRichBlock-module_isRich__Z2kQ8 .RelatedRichBlock-module_picture__OmRKx {
6149
- position: relative;
6150
- }
6151
-
6152
- .RelatedRichBlock-module_isRich__Z2kQ8 .RelatedRichBlock-module_picture__OmRKx::after {
6153
- position: absolute;
6154
- right: 1px;
6155
- bottom: 0;
6156
- left: 1px;
6157
- z-index: 10;
6158
-
6159
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
6160
-
6161
- content: '';
6162
- }
6163
-
6164
- @media only screen and (min-width: 32em) {
6165
-
6166
- .RelatedRichBlock-module_isRich__Z2kQ8 .RelatedRichBlock-module_picture__OmRKx::after {
6167
- content: '';
6168
- }
6169
- }
6170
-
6171
- .RelatedRichBlock-module_isCard__wkMw- {
6172
- color: #fff;
6173
-
6174
- background-color: #191919;
6175
- }
6176
-
6177
- @media only screen and (min-width: 32em) {
6178
-
6179
- .RelatedRichBlock-module_isCard__wkMw- {
6180
- min-height: 350px;
6181
- }
6182
- }
6183
-
6184
- .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_body__XhS0U {
6185
- background-color: transparent;
6186
- }
6187
-
6188
- @media only screen and (min-width: 32em) {
6189
-
6190
- .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_body__XhS0U {
6191
- position: absolute;
6192
- right: 0;
6193
- bottom: 0;
6194
- left: 0;
6195
- z-index: 10;
6196
-
6197
- min-height: 295px;
6198
- }
6199
- }
6200
-
6201
- @media only screen and (min-width: 32em) {
6202
-
6203
- .RelatedRichBlock-module_isCard__wkMw-::before {
6204
- padding-bottom: 66.66%;
6205
-
6206
- content: '';
6207
6074
  }
6208
- }
6209
6075
 
6210
6076
  .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx {
6211
6077
  position: relative;
6212
6078
 
6213
- width: 100%;
6214
- }
6215
-
6216
- @media only screen and (min-width: 32em) {
6217
-
6218
- .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx {
6219
- position: absolute;
6220
- top: 0;
6221
- bottom: 0;
6222
- }
6223
- }
6224
-
6225
- .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx::before {
6226
- display: block;
6227
-
6228
- padding-bottom: 78.50746269%;
6229
-
6230
- content: '';
6231
- }
6232
-
6233
- @media only screen and (min-width: 32em) {
6234
-
6235
- .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx::before {
6236
- content: none;
6237
- }
6238
- }
6239
-
6240
- .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_picture__OmRKx {
6241
- position: absolute;
6242
- top: 50%;
6243
- left: 50%;
6244
-
6245
- width: 180px;
6246
- height: 180px;
6247
-
6248
- transform: translate(-50%, -50%);
6249
- }
6250
-
6251
- @media only screen and (min-width: 32em) {
6079
+ display: flex;
6080
+ align-items: center;
6081
+ justify-content: center;
6252
6082
 
6253
- .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_picture__OmRKx {
6254
- top: 25%;
6083
+ background-color: #191919;
6255
6084
 
6256
- transform: translate(-50%, -25%);
6085
+ aspect-ratio: 1 / 1;
6257
6086
  }
6258
- }
6259
6087
 
6260
- .RelatedRichBlock-module_tag__c18sv {
6261
- position: absolute;
6262
- top: 14px;
6263
- right: 15px;
6264
- left: 15px;
6265
- z-index: 10;
6266
-
6267
- color: rgba(255, 255, 255, 0.7);
6268
-
6269
- font-size: 12px;
6088
+ .RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
6089
+ width: 100px;
6090
+ height: 100px;
6270
6091
  }
6271
6092
 
6272
- @media only screen and (min-width: 64em) {
6273
-
6274
6093
  .RelatedRichBlock-module_tag__c18sv {
6275
- top: 16px;
6276
- right: 20px;
6277
- left: 20px;
6094
+ color: rgba(0, 0, 0, 0.5);
6278
6095
  }
6279
- }
6280
6096
 
6281
6097
  .RelatedRichBlock-module_center__KANd- {
6282
6098
  width: 100%;
@@ -6285,24 +6101,6 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6285
6101
  margin-left: auto;
6286
6102
  }
6287
6103
 
6288
- /* Themes */
6289
-
6290
- .RelatedRichBlock-module_isRich__Z2kQ8.RelatedRichBlock-module_dark__cnk4R {
6291
- color: #000;
6292
- }
6293
-
6294
- .RelatedRichBlock-module_isRich__Z2kQ8.RelatedRichBlock-module_dark__cnk4R .RelatedRichBlock-module_tag__c18sv {
6295
- color: rgba(0, 0, 0, 0.7);
6296
- }
6297
-
6298
- @media only screen and (min-width: 32em) {
6299
-
6300
- .RelatedRichBlock-module_isRich__Z2kQ8.RelatedRichBlock-module_light__aJLn7 {
6301
- color: #fff;
6302
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
6303
- }
6304
- }
6305
-
6306
6104
  /* Display */
6307
6105
 
6308
6106
  @media only screen and (min-width: 32em) {
@@ -6319,7 +6117,7 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6319
6117
  @media only screen and (min-width: 32em) {
6320
6118
 
6321
6119
  .RelatedRichBlock-module_desktop__EaPOr {
6322
- display: block;
6120
+ display: flex;
6323
6121
  }
6324
6122
  }
6325
6123
 
@@ -7017,6 +6815,34 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
7017
6815
  background-color: #000;
7018
6816
  }
7019
6817
 
6818
+ @media only screen and (min-width: 32em) {
6819
+ .RelatedCarousel-module_dots__mOSIC {
6820
+ display: none;
6821
+ }
6822
+
6823
+ .RelatedCarousel-module_track__UVQ2n {
6824
+ display: flex;
6825
+ flex-direction: column;
6826
+ gap: 30px;
6827
+
6828
+ margin: 0;
6829
+ padding: 0;
6830
+
6831
+ overflow: visible;
6832
+
6833
+ scroll-snap-type: none;
6834
+ scroll-padding-left: 0;
6835
+ }
6836
+
6837
+ .RelatedCarousel-module_slide__MI9tF {
6838
+ flex: none;
6839
+
6840
+ width: 100%;
6841
+
6842
+ scroll-snap-align: none;
6843
+ }
6844
+ }
6845
+
7020
6846
  .ToolbarButton-module_root__upsEH {
7021
6847
  display: block;
7022
6848
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.0",
2
+ "version": "1.4.1",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -4,10 +4,11 @@
4
4
 
5
5
  display: block;
6
6
  overflow: hidden;
7
- transition: background-color 250ms ease;
8
7
 
9
8
  background-color: #f2f2f2;
10
9
 
10
+ transition: background-color 250ms ease;
11
+
11
12
  @media $mobile {
12
13
  border-radius: inherit;
13
14
  }
@@ -24,12 +25,14 @@
24
25
 
25
26
  .root.fullRatio img {
26
27
  position: static;
28
+
27
29
  width: 100%;
28
30
  height: 100%;
29
31
  }
30
32
 
31
33
  .isStatic img {
32
34
  position: relative;
35
+
33
36
  max-height: 160px;
34
37
 
35
38
  @media $landscapeTablet {
@@ -66,16 +69,18 @@
66
69
  width: 40px;
67
70
  height: 40px;
68
71
 
69
- transition: opacity 250ms ease;
70
- pointer-events: none;
71
-
72
- opacity: 0;
73
- border: 0.5px solid rgba(255, 255, 255, 0.15);
74
- border-radius: 20px;
75
72
  background-color: rgba(0, 0, 0, 0.7);
76
73
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.197 10.207V3.763h-6.463' stroke='%23DBDBDB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19.793 4.166l-6.173 6.172' stroke='%23DBDBDB' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.803 13.733v6.444h6.463' stroke='%23DBDBDB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.207 19.774l6.173-6.171' stroke='%23DBDBDB' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
77
74
  background-repeat: no-repeat;
78
75
  background-position: center;
76
+ border: 0.5px solid rgba(255, 255, 255, 0.15);
77
+ border-radius: 20px;
78
+
79
+ opacity: 0;
80
+
81
+ transition: opacity 250ms ease;
82
+
83
+ pointer-events: none;
79
84
 
80
85
  @media $landscapeTablet {
81
86
  content: '';
@@ -89,3 +94,7 @@
89
94
  .dark {
90
95
  background-color: transparent;
91
96
  }
97
+
98
+ .isRelated img {
99
+ position: static;
100
+ }
@@ -92,6 +92,10 @@
92
92
  }
93
93
  }
94
94
 
95
+ .isInMediaBlock {
96
+ color: #757575;
97
+ }
98
+
95
99
  .isInBookRelated {
96
100
  opacity: 0.5;
97
101
  }
@@ -88,3 +88,31 @@
88
88
  .isActive {
89
89
  background-color: #000;
90
90
  }
91
+
92
+ @media $mobile {
93
+ .dots {
94
+ display: none;
95
+ }
96
+
97
+ .track {
98
+ display: flex;
99
+ flex-direction: column;
100
+ gap: 30px;
101
+
102
+ margin: 0;
103
+ padding: 0;
104
+
105
+ overflow: visible;
106
+
107
+ scroll-snap-type: none;
108
+ scroll-padding-left: 0;
109
+ }
110
+
111
+ .slide {
112
+ flex: none;
113
+
114
+ width: 100%;
115
+
116
+ scroll-snap-align: none;
117
+ }
118
+ }