@meduza/ui-kit-2 0.8.8 → 0.8.601
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/SvgSymbol/SvgSymbol.types.d.ts +1 -1
- package/dist/SvgSymbol/icons.d.ts +5 -0
- package/dist/Switcher/Switcher.types.d.ts +3 -2
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui-kit-2.cjs.development.js +243 -254
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +244 -254
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +45 -126
- package/dist/ui-kit.css +45 -126
- package/package.json +1 -1
- package/src/Image/index.tsx +4 -1
- package/src/Meta/Meta.module.css +6 -0
- package/src/Meta/MetaContainer.tsx +12 -1
- package/src/RichTitle/RichTitle.module.css +4 -0
- package/src/Spoiler/Spoiler.module.css +9 -10
- package/src/SvgSymbol/SvgSymbol.types.ts +3 -0
- package/src/SvgSymbol/icons.ts +7 -0
- package/src/Switcher/Switcher.module.css +21 -4
- package/src/Switcher/Switcher.stories.module.css +21 -3
- package/src/Switcher/Switcher.stories.tsx +31 -13
- package/src/Switcher/Switcher.types.ts +4 -2
- package/src/Switcher/index.tsx +7 -7
- package/src/Tag/Tag.module.css +4 -0
- package/src/ToolbarButton/ToolbarButton.types.ts +2 -0
- package/src/_storybook/PreviewWrapper/index.tsx +1 -0
- package/src/index.tsx +0 -1
- package/src/types.ts +3 -0
- package/dist/ListViewSwitcher/ListViewSwitcher.types.d.ts +0 -6
- package/dist/ListViewSwitcher/index.d.ts +0 -3
- package/src/.DS_Store +0 -0
- package/src/ListViewSwitcher/ListViewSwitcher.module.css +0 -109
- package/src/ListViewSwitcher/ListViewSwitcher.stories.module.css +0 -6
- package/src/ListViewSwitcher/ListViewSwitcher.stories.tsx +0 -38
- package/src/ListViewSwitcher/ListViewSwitcher.test.tsx +0 -35
- package/src/ListViewSwitcher/ListViewSwitcher.types.ts +0 -7
- package/src/ListViewSwitcher/index.tsx +0 -30
package/dist/ui-kit-game.css
CHANGED
|
@@ -597,8 +597,6 @@
|
|
|
597
597
|
-moz-user-select: none;
|
|
598
598
|
|
|
599
599
|
user-select: none;
|
|
600
|
-
|
|
601
|
-
gap: 6px;
|
|
602
600
|
}
|
|
603
601
|
|
|
604
602
|
.Switcher-module_dark__1QQsH {
|
|
@@ -679,14 +677,33 @@
|
|
|
679
677
|
left: 18px;
|
|
680
678
|
}
|
|
681
679
|
|
|
680
|
+
.Switcher-module_children__uLapU.Switcher-module_left__5-HNa {
|
|
681
|
+
margin-right: 6px;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.Switcher-module_children__uLapU.Switcher-module_right__82Edk {
|
|
685
|
+
margin-left: 6px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/* panel */
|
|
689
|
+
|
|
690
|
+
.Switcher-module_isInPanel__-nBSf .Switcher-module_children__uLapU {
|
|
691
|
+
|
|
692
|
+
color: #999;
|
|
693
|
+
|
|
694
|
+
font-size: 13px;
|
|
695
|
+
letter-spacing: 0.5px;
|
|
696
|
+
text-transform: uppercase;
|
|
697
|
+
}
|
|
698
|
+
|
|
682
699
|
/* menu */
|
|
683
700
|
|
|
684
701
|
.Switcher-module_isInMenu__RQVhp {
|
|
685
702
|
font-weight: normal;
|
|
686
703
|
}
|
|
687
704
|
|
|
688
|
-
.Switcher-module_isInMenu__RQVhp {
|
|
689
|
-
|
|
705
|
+
.Switcher-module_isInMenu__RQVhp .Switcher-module_children__uLapU {
|
|
706
|
+
margin-right: 8px;
|
|
690
707
|
}
|
|
691
708
|
|
|
692
709
|
.Switcher-module_isInMenu__RQVhp .Switcher-module_control__60WMX {
|
|
@@ -714,6 +731,7 @@
|
|
|
714
731
|
/* live */
|
|
715
732
|
|
|
716
733
|
.Switcher-module_isInLive__ZyMCT .Switcher-module_children__uLapU {
|
|
734
|
+
|
|
717
735
|
color: #7f7f7f;
|
|
718
736
|
|
|
719
737
|
font-size: 13px;
|
|
@@ -1360,6 +1378,10 @@
|
|
|
1360
1378
|
}
|
|
1361
1379
|
}
|
|
1362
1380
|
|
|
1381
|
+
.Tag-module_isInDynamicBlock__WNleF {
|
|
1382
|
+
opacity: 0.5;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1363
1385
|
@media only screen and (min-width: 32em) {
|
|
1364
1386
|
|
|
1365
1387
|
.Tag-module_mobile__19oMH {
|
|
@@ -2324,6 +2346,12 @@
|
|
|
2324
2346
|
fill: inherit;
|
|
2325
2347
|
}
|
|
2326
2348
|
|
|
2349
|
+
.Meta-module_isInDynamicBlock__iuEI0 {
|
|
2350
|
+
position: absolute;
|
|
2351
|
+
bottom: 20px;
|
|
2352
|
+
left: 54px;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2327
2355
|
.Meta-module_rich__dCkJK,
|
|
2328
2356
|
.Meta-module_podcast__MI8gD,
|
|
2329
2357
|
.Meta-module_episode__0n9CF,
|
|
@@ -3234,6 +3262,10 @@
|
|
|
3234
3262
|
}
|
|
3235
3263
|
}
|
|
3236
3264
|
|
|
3265
|
+
.RichTitle-module_isInDynamicBlock__J-gM6 {
|
|
3266
|
+
margin: 0 0 28px;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3237
3269
|
@media only screen and (min-width: 32em) {
|
|
3238
3270
|
|
|
3239
3271
|
.RichTitle-module_mobile__W5L9E {
|
|
@@ -5858,10 +5890,11 @@ a mark {
|
|
|
5858
5890
|
margin-top: 0;
|
|
5859
5891
|
margin-bottom: 18px;
|
|
5860
5892
|
|
|
5861
|
-
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
5862
|
-
font-size: calc(17rem / 16);
|
|
5863
5893
|
font-weight: 700;
|
|
5864
|
-
|
|
5894
|
+
font-size: 21px;
|
|
5895
|
+
|
|
5896
|
+
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
5897
|
+
line-height: 26px;
|
|
5865
5898
|
}
|
|
5866
5899
|
|
|
5867
5900
|
@media only screen and (min-width: 32em) {
|
|
@@ -5869,8 +5902,8 @@ a mark {
|
|
|
5869
5902
|
.Spoiler-module_header__iEKsQ h3 {
|
|
5870
5903
|
margin-bottom: 20px;
|
|
5871
5904
|
|
|
5872
|
-
font-size:
|
|
5873
|
-
line-height:
|
|
5905
|
+
font-size: 28px;
|
|
5906
|
+
line-height: 34px;
|
|
5874
5907
|
}
|
|
5875
5908
|
}
|
|
5876
5909
|
|
|
@@ -5925,11 +5958,9 @@ a mark {
|
|
|
5925
5958
|
margin-left: -20px;
|
|
5926
5959
|
padding: 12px 20px 20px;
|
|
5927
5960
|
|
|
5928
|
-
background-image: linear-gradient(
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
#fff 64%
|
|
5932
|
-
);
|
|
5961
|
+
background-image: linear-gradient(180deg,
|
|
5962
|
+
rgba(255, 255, 255, 0) 0%,
|
|
5963
|
+
#fff 64%);
|
|
5933
5964
|
|
|
5934
5965
|
animation: Spoiler-module_spoilerSticky__YTiyF 500ms ease both;
|
|
5935
5966
|
}
|
|
@@ -6838,118 +6869,6 @@ a mark {
|
|
|
6838
6869
|
--metaFill: currentColor;
|
|
6839
6870
|
}
|
|
6840
6871
|
|
|
6841
|
-
.ListViewSwitcher-module_root__pBsR5 {
|
|
6842
|
-
position: relative;
|
|
6843
|
-
|
|
6844
|
-
display: flex;
|
|
6845
|
-
align-items: center;
|
|
6846
|
-
flex-flow: row nowrap;
|
|
6847
|
-
|
|
6848
|
-
cursor: pointer;
|
|
6849
|
-
-webkit-user-select: none;
|
|
6850
|
-
-moz-user-select: none;
|
|
6851
|
-
user-select: none;
|
|
6852
|
-
|
|
6853
|
-
border-radius: 40px;
|
|
6854
|
-
background-color: #fff;
|
|
6855
|
-
}
|
|
6856
|
-
|
|
6857
|
-
.ListViewSwitcher-module_input__vtDVD {
|
|
6858
|
-
position: absolute;
|
|
6859
|
-
top: 0;
|
|
6860
|
-
left: 0;
|
|
6861
|
-
|
|
6862
|
-
visibility: hidden;
|
|
6863
|
-
}
|
|
6864
|
-
|
|
6865
|
-
.ListViewSwitcher-module_knob__g-OZ2 {
|
|
6866
|
-
position: relative;
|
|
6867
|
-
z-index: 200;
|
|
6868
|
-
|
|
6869
|
-
display: block;
|
|
6870
|
-
|
|
6871
|
-
transition: 0.25s ease-in-out;
|
|
6872
|
-
|
|
6873
|
-
border-radius: 15px;
|
|
6874
|
-
background: #000;
|
|
6875
|
-
}
|
|
6876
|
-
|
|
6877
|
-
.ListViewSwitcher-module_sm__y1teD {
|
|
6878
|
-
width: 35px;
|
|
6879
|
-
height: 18px;
|
|
6880
|
-
padding: 2px;
|
|
6881
|
-
}
|
|
6882
|
-
|
|
6883
|
-
.ListViewSwitcher-module_md__0M8KR {
|
|
6884
|
-
width: 52px;
|
|
6885
|
-
height: 26px;
|
|
6886
|
-
padding: 2px 3px;
|
|
6887
|
-
}
|
|
6888
|
-
|
|
6889
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_knob__g-OZ2 {
|
|
6890
|
-
width: 22px;
|
|
6891
|
-
height: 22px;
|
|
6892
|
-
}
|
|
6893
|
-
|
|
6894
|
-
.ListViewSwitcher-module_grid__qBmnM,
|
|
6895
|
-
.ListViewSwitcher-module_list__NORMp {
|
|
6896
|
-
position: absolute;
|
|
6897
|
-
|
|
6898
|
-
background-size: contain;
|
|
6899
|
-
background-repeat: no-repeat;
|
|
6900
|
-
}
|
|
6901
|
-
|
|
6902
|
-
.ListViewSwitcher-module_grid__qBmnM {
|
|
6903
|
-
background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='.359' y='.5' width='5.42' height='5.42' rx='1.044' fill='%23000'/%3E%3Crect x='.359' y='7.078' width='5.42' height='5.42' rx='1.044' fill='%23000'/%3E%3Crect x='6.938' y='.5' width='5.42' height='5.42' rx='1.044' fill='%23000'/%3E%3Crect x='6.938' y='7.078' width='5.42' height='5.42' rx='1.044' fill='%23000'/%3E%3C/svg%3E");
|
|
6904
|
-
}
|
|
6905
|
-
|
|
6906
|
-
.ListViewSwitcher-module_list__NORMp {
|
|
6907
|
-
background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='.359' y='.5' width='12' height='3' rx='1.044' fill='%23000'/%3E%3Crect x='.359' y='5' width='12' height='3' rx='1.044' fill='%23000'/%3E%3Crect x='.359' y='9.5' width='12' height='3' rx='1.044' fill='%23000'/%3E%3C/svg%3E");
|
|
6908
|
-
}
|
|
6909
|
-
|
|
6910
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_input__vtDVD:checked ~ .ListViewSwitcher-module_knob__g-OZ2 {
|
|
6911
|
-
transform: translateX(24px);
|
|
6912
|
-
}
|
|
6913
|
-
|
|
6914
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_grid__qBmnM,
|
|
6915
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_list__NORMp {
|
|
6916
|
-
width: 13px;
|
|
6917
|
-
height: 13px;
|
|
6918
|
-
top: 7px;
|
|
6919
|
-
}
|
|
6920
|
-
|
|
6921
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_grid__qBmnM {
|
|
6922
|
-
left: 10px;
|
|
6923
|
-
}
|
|
6924
|
-
|
|
6925
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_list__NORMp {
|
|
6926
|
-
right: 10px;
|
|
6927
|
-
}
|
|
6928
|
-
|
|
6929
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_grid__qBmnM {
|
|
6930
|
-
left: 5px;
|
|
6931
|
-
}
|
|
6932
|
-
|
|
6933
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_list__NORMp {
|
|
6934
|
-
right: 5px;
|
|
6935
|
-
}
|
|
6936
|
-
|
|
6937
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_knob__g-OZ2 {
|
|
6938
|
-
width: 14px;
|
|
6939
|
-
height: 14px;
|
|
6940
|
-
}
|
|
6941
|
-
|
|
6942
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_grid__qBmnM,
|
|
6943
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_list__NORMp {
|
|
6944
|
-
width: 8px;
|
|
6945
|
-
height: 8px;
|
|
6946
|
-
top: 5px;
|
|
6947
|
-
}
|
|
6948
|
-
|
|
6949
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_input__vtDVD:checked ~ .ListViewSwitcher-module_knob__g-OZ2 {
|
|
6950
|
-
transform: translateX(16px);
|
|
6951
|
-
}
|
|
6952
|
-
|
|
6953
6872
|
.ToolbarButton-module_root__upsEH {
|
|
6954
6873
|
display: block;
|
|
6955
6874
|
|
package/dist/ui-kit.css
CHANGED
|
@@ -597,8 +597,6 @@
|
|
|
597
597
|
-moz-user-select: none;
|
|
598
598
|
|
|
599
599
|
user-select: none;
|
|
600
|
-
|
|
601
|
-
gap: 6px;
|
|
602
600
|
}
|
|
603
601
|
|
|
604
602
|
.Switcher-module_dark__1QQsH {
|
|
@@ -679,14 +677,33 @@
|
|
|
679
677
|
left: 18px;
|
|
680
678
|
}
|
|
681
679
|
|
|
680
|
+
.Switcher-module_children__uLapU.Switcher-module_left__5-HNa {
|
|
681
|
+
margin-right: 6px;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.Switcher-module_children__uLapU.Switcher-module_right__82Edk {
|
|
685
|
+
margin-left: 6px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/* panel */
|
|
689
|
+
|
|
690
|
+
.Switcher-module_isInPanel__-nBSf .Switcher-module_children__uLapU {
|
|
691
|
+
|
|
692
|
+
color: #999;
|
|
693
|
+
|
|
694
|
+
font-size: 13px;
|
|
695
|
+
letter-spacing: 0.5px;
|
|
696
|
+
text-transform: uppercase;
|
|
697
|
+
}
|
|
698
|
+
|
|
682
699
|
/* menu */
|
|
683
700
|
|
|
684
701
|
.Switcher-module_isInMenu__RQVhp {
|
|
685
702
|
font-weight: normal;
|
|
686
703
|
}
|
|
687
704
|
|
|
688
|
-
.Switcher-module_isInMenu__RQVhp {
|
|
689
|
-
|
|
705
|
+
.Switcher-module_isInMenu__RQVhp .Switcher-module_children__uLapU {
|
|
706
|
+
margin-right: 8px;
|
|
690
707
|
}
|
|
691
708
|
|
|
692
709
|
.Switcher-module_isInMenu__RQVhp .Switcher-module_control__60WMX {
|
|
@@ -714,6 +731,7 @@
|
|
|
714
731
|
/* live */
|
|
715
732
|
|
|
716
733
|
.Switcher-module_isInLive__ZyMCT .Switcher-module_children__uLapU {
|
|
734
|
+
|
|
717
735
|
color: #7f7f7f;
|
|
718
736
|
|
|
719
737
|
font-size: 13px;
|
|
@@ -1360,6 +1378,10 @@
|
|
|
1360
1378
|
}
|
|
1361
1379
|
}
|
|
1362
1380
|
|
|
1381
|
+
.Tag-module_isInDynamicBlock__WNleF {
|
|
1382
|
+
opacity: 0.5;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1363
1385
|
@media only screen and (min-width: 32em) {
|
|
1364
1386
|
|
|
1365
1387
|
.Tag-module_mobile__19oMH {
|
|
@@ -2324,6 +2346,12 @@
|
|
|
2324
2346
|
fill: inherit;
|
|
2325
2347
|
}
|
|
2326
2348
|
|
|
2349
|
+
.Meta-module_isInDynamicBlock__iuEI0 {
|
|
2350
|
+
position: absolute;
|
|
2351
|
+
bottom: 20px;
|
|
2352
|
+
left: 54px;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2327
2355
|
.Meta-module_rich__dCkJK,
|
|
2328
2356
|
.Meta-module_podcast__MI8gD,
|
|
2329
2357
|
.Meta-module_episode__0n9CF,
|
|
@@ -3234,6 +3262,10 @@
|
|
|
3234
3262
|
}
|
|
3235
3263
|
}
|
|
3236
3264
|
|
|
3265
|
+
.RichTitle-module_isInDynamicBlock__J-gM6 {
|
|
3266
|
+
margin: 0 0 28px;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3237
3269
|
@media only screen and (min-width: 32em) {
|
|
3238
3270
|
|
|
3239
3271
|
.RichTitle-module_mobile__W5L9E {
|
|
@@ -5858,10 +5890,11 @@ a mark {
|
|
|
5858
5890
|
margin-top: 0;
|
|
5859
5891
|
margin-bottom: 18px;
|
|
5860
5892
|
|
|
5861
|
-
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
5862
|
-
font-size: calc(17rem / 16);
|
|
5863
5893
|
font-weight: 700;
|
|
5864
|
-
|
|
5894
|
+
font-size: 21px;
|
|
5895
|
+
|
|
5896
|
+
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
5897
|
+
line-height: 26px;
|
|
5865
5898
|
}
|
|
5866
5899
|
|
|
5867
5900
|
@media only screen and (min-width: 32em) {
|
|
@@ -5869,8 +5902,8 @@ a mark {
|
|
|
5869
5902
|
.Spoiler-module_header__iEKsQ h3 {
|
|
5870
5903
|
margin-bottom: 20px;
|
|
5871
5904
|
|
|
5872
|
-
font-size:
|
|
5873
|
-
line-height:
|
|
5905
|
+
font-size: 28px;
|
|
5906
|
+
line-height: 34px;
|
|
5874
5907
|
}
|
|
5875
5908
|
}
|
|
5876
5909
|
|
|
@@ -5925,11 +5958,9 @@ a mark {
|
|
|
5925
5958
|
margin-left: -20px;
|
|
5926
5959
|
padding: 12px 20px 20px;
|
|
5927
5960
|
|
|
5928
|
-
background-image: linear-gradient(
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
#fff 64%
|
|
5932
|
-
);
|
|
5961
|
+
background-image: linear-gradient(180deg,
|
|
5962
|
+
rgba(255, 255, 255, 0) 0%,
|
|
5963
|
+
#fff 64%);
|
|
5933
5964
|
|
|
5934
5965
|
animation: Spoiler-module_spoilerSticky__YTiyF 500ms ease both;
|
|
5935
5966
|
}
|
|
@@ -6838,118 +6869,6 @@ a mark {
|
|
|
6838
6869
|
--metaFill: currentColor;
|
|
6839
6870
|
}
|
|
6840
6871
|
|
|
6841
|
-
.ListViewSwitcher-module_root__pBsR5 {
|
|
6842
|
-
position: relative;
|
|
6843
|
-
|
|
6844
|
-
display: flex;
|
|
6845
|
-
align-items: center;
|
|
6846
|
-
flex-flow: row nowrap;
|
|
6847
|
-
|
|
6848
|
-
cursor: pointer;
|
|
6849
|
-
-webkit-user-select: none;
|
|
6850
|
-
-moz-user-select: none;
|
|
6851
|
-
user-select: none;
|
|
6852
|
-
|
|
6853
|
-
border-radius: 40px;
|
|
6854
|
-
background-color: #fff;
|
|
6855
|
-
}
|
|
6856
|
-
|
|
6857
|
-
.ListViewSwitcher-module_input__vtDVD {
|
|
6858
|
-
position: absolute;
|
|
6859
|
-
top: 0;
|
|
6860
|
-
left: 0;
|
|
6861
|
-
|
|
6862
|
-
visibility: hidden;
|
|
6863
|
-
}
|
|
6864
|
-
|
|
6865
|
-
.ListViewSwitcher-module_knob__g-OZ2 {
|
|
6866
|
-
position: relative;
|
|
6867
|
-
z-index: 200;
|
|
6868
|
-
|
|
6869
|
-
display: block;
|
|
6870
|
-
|
|
6871
|
-
transition: 0.25s ease-in-out;
|
|
6872
|
-
|
|
6873
|
-
border-radius: 15px;
|
|
6874
|
-
background: #000;
|
|
6875
|
-
}
|
|
6876
|
-
|
|
6877
|
-
.ListViewSwitcher-module_sm__y1teD {
|
|
6878
|
-
width: 35px;
|
|
6879
|
-
height: 18px;
|
|
6880
|
-
padding: 2px;
|
|
6881
|
-
}
|
|
6882
|
-
|
|
6883
|
-
.ListViewSwitcher-module_md__0M8KR {
|
|
6884
|
-
width: 52px;
|
|
6885
|
-
height: 26px;
|
|
6886
|
-
padding: 2px 3px;
|
|
6887
|
-
}
|
|
6888
|
-
|
|
6889
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_knob__g-OZ2 {
|
|
6890
|
-
width: 22px;
|
|
6891
|
-
height: 22px;
|
|
6892
|
-
}
|
|
6893
|
-
|
|
6894
|
-
.ListViewSwitcher-module_grid__qBmnM,
|
|
6895
|
-
.ListViewSwitcher-module_list__NORMp {
|
|
6896
|
-
position: absolute;
|
|
6897
|
-
|
|
6898
|
-
background-size: contain;
|
|
6899
|
-
background-repeat: no-repeat;
|
|
6900
|
-
}
|
|
6901
|
-
|
|
6902
|
-
.ListViewSwitcher-module_grid__qBmnM {
|
|
6903
|
-
background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='.359' y='.5' width='5.42' height='5.42' rx='1.044' fill='%23000'/%3E%3Crect x='.359' y='7.078' width='5.42' height='5.42' rx='1.044' fill='%23000'/%3E%3Crect x='6.938' y='.5' width='5.42' height='5.42' rx='1.044' fill='%23000'/%3E%3Crect x='6.938' y='7.078' width='5.42' height='5.42' rx='1.044' fill='%23000'/%3E%3C/svg%3E");
|
|
6904
|
-
}
|
|
6905
|
-
|
|
6906
|
-
.ListViewSwitcher-module_list__NORMp {
|
|
6907
|
-
background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='.359' y='.5' width='12' height='3' rx='1.044' fill='%23000'/%3E%3Crect x='.359' y='5' width='12' height='3' rx='1.044' fill='%23000'/%3E%3Crect x='.359' y='9.5' width='12' height='3' rx='1.044' fill='%23000'/%3E%3C/svg%3E");
|
|
6908
|
-
}
|
|
6909
|
-
|
|
6910
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_input__vtDVD:checked ~ .ListViewSwitcher-module_knob__g-OZ2 {
|
|
6911
|
-
transform: translateX(24px);
|
|
6912
|
-
}
|
|
6913
|
-
|
|
6914
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_grid__qBmnM,
|
|
6915
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_list__NORMp {
|
|
6916
|
-
width: 13px;
|
|
6917
|
-
height: 13px;
|
|
6918
|
-
top: 7px;
|
|
6919
|
-
}
|
|
6920
|
-
|
|
6921
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_grid__qBmnM {
|
|
6922
|
-
left: 10px;
|
|
6923
|
-
}
|
|
6924
|
-
|
|
6925
|
-
.ListViewSwitcher-module_md__0M8KR .ListViewSwitcher-module_list__NORMp {
|
|
6926
|
-
right: 10px;
|
|
6927
|
-
}
|
|
6928
|
-
|
|
6929
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_grid__qBmnM {
|
|
6930
|
-
left: 5px;
|
|
6931
|
-
}
|
|
6932
|
-
|
|
6933
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_list__NORMp {
|
|
6934
|
-
right: 5px;
|
|
6935
|
-
}
|
|
6936
|
-
|
|
6937
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_knob__g-OZ2 {
|
|
6938
|
-
width: 14px;
|
|
6939
|
-
height: 14px;
|
|
6940
|
-
}
|
|
6941
|
-
|
|
6942
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_grid__qBmnM,
|
|
6943
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_list__NORMp {
|
|
6944
|
-
width: 8px;
|
|
6945
|
-
height: 8px;
|
|
6946
|
-
top: 5px;
|
|
6947
|
-
}
|
|
6948
|
-
|
|
6949
|
-
.ListViewSwitcher-module_sm__y1teD .ListViewSwitcher-module_input__vtDVD:checked ~ .ListViewSwitcher-module_knob__g-OZ2 {
|
|
6950
|
-
transform: translateX(16px);
|
|
6951
|
-
}
|
|
6952
|
-
|
|
6953
6872
|
.ToolbarButton-module_root__upsEH {
|
|
6954
6873
|
display: block;
|
|
6955
6874
|
|
package/package.json
CHANGED
package/src/Image/index.tsx
CHANGED
|
@@ -38,7 +38,10 @@ export const Image: React.FC<ImageProps> = ({
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
const pictureStyles = {
|
|
41
|
-
paddingBottom:
|
|
41
|
+
paddingBottom:
|
|
42
|
+
styleContext === 'isInDynamicBlock'
|
|
43
|
+
? '100%'
|
|
44
|
+
: `${100 / (ratio || width / height)}%`
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
/* fallback w325 url until w6 was released */
|
package/src/Meta/Meta.module.css
CHANGED
|
@@ -70,6 +70,13 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
|
|
|
70
70
|
)
|
|
71
71
|
}
|
|
72
72
|
case 'duration': {
|
|
73
|
+
if (styleContext === 'isInDynamicBlock') {
|
|
74
|
+
return (
|
|
75
|
+
<MetaItem hasSource={hasSource} bullets key={component.id}>
|
|
76
|
+
{component.text}
|
|
77
|
+
</MetaItem>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
73
80
|
return (
|
|
74
81
|
<MetaItem hasSource={hasSource} bullets key={component.id}>
|
|
75
82
|
<>
|
|
@@ -92,7 +99,11 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
|
|
|
92
99
|
>
|
|
93
100
|
<Timestamp
|
|
94
101
|
publishedAt={component.datetime}
|
|
95
|
-
type={
|
|
102
|
+
type={
|
|
103
|
+
styleContext === 'isInDynamicBlock'
|
|
104
|
+
? 'fromNow'
|
|
105
|
+
: format || 'date'
|
|
106
|
+
}
|
|
96
107
|
locale={lang}
|
|
97
108
|
/>
|
|
98
109
|
</MetaItem>
|
|
@@ -61,16 +61,17 @@
|
|
|
61
61
|
margin-top: 0;
|
|
62
62
|
margin-bottom: 18px;
|
|
63
63
|
|
|
64
|
-
font-family: $secondaryFont;
|
|
65
|
-
font-size: calc(17rem / 16);
|
|
66
64
|
font-weight: 700;
|
|
67
|
-
|
|
65
|
+
font-size: 21px;
|
|
66
|
+
|
|
67
|
+
font-family: $secondaryFont;
|
|
68
|
+
line-height: 26px;
|
|
68
69
|
|
|
69
70
|
@media $mobile {
|
|
70
71
|
margin-bottom: 20px;
|
|
71
72
|
|
|
72
|
-
font-size:
|
|
73
|
-
line-height:
|
|
73
|
+
font-size: 28px;
|
|
74
|
+
line-height: 34px;
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
|
|
@@ -119,11 +120,9 @@
|
|
|
119
120
|
margin-left: -20px;
|
|
120
121
|
padding: 12px 20px 20px;
|
|
121
122
|
|
|
122
|
-
background-image: linear-gradient(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
#fff 64%
|
|
126
|
-
);
|
|
123
|
+
background-image: linear-gradient(180deg,
|
|
124
|
+
rgba(255, 255, 255, 0) 0%,
|
|
125
|
+
#fff 64%);
|
|
127
126
|
|
|
128
127
|
animation: spoilerSticky 500ms ease both;
|
|
129
128
|
|
package/src/SvgSymbol/icons.ts
CHANGED
|
@@ -76,6 +76,13 @@ export const icons = {
|
|
|
76
76
|
'<path d="M12.5 2C19.404 2 25 7.596 25 14.5S19.404 27 12.5 27 0 21.404 0 14.5 5.596 2 12.5 2zm0 1.5c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm6 15.75a.75.75 0 01.102 1.493l-.102.007h-12a.75.75 0 01-.102-1.493l.102-.007h12zm-6-12a.75.75 0 01.743.648L13.25 8v7.598l1.834-1.222a.75.75 0 11.832 1.248l-3 2a.75.75 0 01-.832 0l-3-2a.75.75 0 11.832-1.248l1.834 1.223V8a.75.75 0 01.648-.743l.102-.007z" fill-rule="nonzero" fill="currentColor" />'
|
|
77
77
|
},
|
|
78
78
|
|
|
79
|
+
episodeDownload: {
|
|
80
|
+
width: 30,
|
|
81
|
+
height: 30,
|
|
82
|
+
content:
|
|
83
|
+
'<g opacity="0.4"><circle cx="15" cy="15" r="10.5" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/><path d="M15 19.5L15 10.5M15 19.5L18.5 17.2257M15 19.5L11.5 17.2257" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/></g>'
|
|
84
|
+
},
|
|
85
|
+
|
|
79
86
|
play: {
|
|
80
87
|
width: 62,
|
|
81
88
|
height: 62,
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
|
|
15
15
|
user-select: none;
|
|
16
|
-
|
|
17
|
-
gap: 6px;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
.dark {
|
|
@@ -95,13 +93,31 @@
|
|
|
95
93
|
left: 18px;
|
|
96
94
|
}
|
|
97
95
|
|
|
96
|
+
.children.left {
|
|
97
|
+
margin-right: 6px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.children.right {
|
|
101
|
+
margin-left: 6px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* panel */
|
|
105
|
+
.isInPanel .children {
|
|
106
|
+
|
|
107
|
+
color: #999;
|
|
108
|
+
|
|
109
|
+
font-size: 13px;
|
|
110
|
+
letter-spacing: 0.5px;
|
|
111
|
+
text-transform: uppercase;
|
|
112
|
+
}
|
|
113
|
+
|
|
98
114
|
/* menu */
|
|
99
115
|
.isInMenu {
|
|
100
116
|
font-weight: normal;
|
|
101
117
|
}
|
|
102
118
|
|
|
103
|
-
.isInMenu {
|
|
104
|
-
|
|
119
|
+
.isInMenu .children {
|
|
120
|
+
margin-right: 8px;
|
|
105
121
|
}
|
|
106
122
|
|
|
107
123
|
.isInMenu .control {
|
|
@@ -127,6 +143,7 @@
|
|
|
127
143
|
|
|
128
144
|
/* live */
|
|
129
145
|
.isInLive .children {
|
|
146
|
+
|
|
130
147
|
color: #7f7f7f;
|
|
131
148
|
|
|
132
149
|
font-size: 13px;
|