@meduza/ui-kit-2 0.4.14 → 0.4.15
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-2.cjs.development.js +3 -33
- 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 +3 -33
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +103 -41
- package/package.json +7 -6
- package/src/Footnote/Footnote.module.css +46 -6
- package/src/Footnote/Footnote.stories.tsx +26 -9
- package/src/Popover/Popover.module.css +47 -29
- package/src/Popover/Popover.stories.tsx +25 -1
- package/src/Popover/index.tsx +1 -21
- package/src/RichTitle/RichTitle.module.css +16 -6
package/dist/ui-kit.css
CHANGED
|
@@ -814,26 +814,28 @@
|
|
|
814
814
|
max-width: 420px;
|
|
815
815
|
min-height: 80px;
|
|
816
816
|
margin: 0 auto;
|
|
817
|
-
padding: 22px 20px 28px;
|
|
818
817
|
|
|
819
818
|
animation: Popover-module_disappear__uUn2b 350ms ease both;
|
|
819
|
+
|
|
820
|
+
border-radius: 8px 8px 0 0;
|
|
821
|
+
background-color: #fff;
|
|
820
822
|
}
|
|
821
823
|
.Popover-module_dismiss__W8KFF {
|
|
822
824
|
position: absolute;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
+
z-index: 10;
|
|
826
|
+
top: 10px;
|
|
827
|
+
right: 10px;
|
|
825
828
|
|
|
826
|
-
width:
|
|
827
|
-
height:
|
|
829
|
+
width: 26px;
|
|
830
|
+
height: 26px;
|
|
828
831
|
padding: 0;
|
|
829
832
|
|
|
830
|
-
|
|
833
|
+
cursor: pointer;
|
|
831
834
|
|
|
832
|
-
opacity: 0.4;
|
|
833
835
|
border-width: 0;
|
|
834
|
-
border-radius:
|
|
835
|
-
background-color:
|
|
836
|
-
background-image: url("data:image/svg+xml,%3Csvg width='
|
|
836
|
+
border-radius: 13px;
|
|
837
|
+
background-color: #ebebeb;
|
|
838
|
+
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 10 10M11 1 1 11' stroke='%23757575' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
837
839
|
background-repeat: no-repeat;
|
|
838
840
|
background-position: center;
|
|
839
841
|
box-shadow: none;
|
|
@@ -844,35 +846,50 @@
|
|
|
844
846
|
|
|
845
847
|
appearance: none;
|
|
846
848
|
}
|
|
847
|
-
.Popover-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
849
|
+
.Popover-module_visible__XVQLW .Popover-module_container__y4SB1 {
|
|
850
|
+
animation: Popover-module_appear__b-CZ2 350ms ease both;
|
|
851
|
+
}
|
|
852
|
+
.Popover-module_body__UJEZf {
|
|
853
|
+
overflow-y: auto;
|
|
854
|
+
-webkit-overflow-scrolling: touch;
|
|
852
855
|
|
|
853
|
-
|
|
856
|
+
max-height: 68vh;
|
|
857
|
+
padding: 18px 20px 28px;
|
|
854
858
|
|
|
855
|
-
|
|
856
|
-
height: 100%;
|
|
859
|
+
color: #000;
|
|
857
860
|
|
|
858
|
-
|
|
861
|
+
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
862
|
+
font-size: 16px;
|
|
863
|
+
line-height: 22px;
|
|
864
|
+
|
|
865
|
+
overscroll-behavior: none;
|
|
859
866
|
}
|
|
860
|
-
.Popover-
|
|
867
|
+
.Popover-module_body__UJEZf::before,
|
|
868
|
+
.Popover-module_body__UJEZf::after {
|
|
861
869
|
position: absolute;
|
|
870
|
+
right: 0;
|
|
871
|
+
left: 0;
|
|
862
872
|
|
|
863
|
-
|
|
864
|
-
height: 100%;
|
|
873
|
+
content: '';
|
|
865
874
|
}
|
|
866
|
-
.Popover-
|
|
867
|
-
|
|
875
|
+
.Popover-module_body__UJEZf::before {
|
|
876
|
+
top: 0;
|
|
877
|
+
|
|
878
|
+
height: 29px;
|
|
879
|
+
|
|
880
|
+
border-radius: 8px 8px 0 0;
|
|
881
|
+
background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
|
868
882
|
}
|
|
869
|
-
.Popover-module_body__UJEZf {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
883
|
+
.Popover-module_body__UJEZf::after {
|
|
884
|
+
bottom: 0;
|
|
885
|
+
|
|
886
|
+
height: 48px;
|
|
887
|
+
|
|
888
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
|
873
889
|
}
|
|
874
890
|
.Popover-module_body__UJEZf h3 {
|
|
875
|
-
margin: 0 0
|
|
891
|
+
margin: 0 0 16px;
|
|
892
|
+
padding-right: 26px;
|
|
876
893
|
|
|
877
894
|
font-size: inherit;
|
|
878
895
|
font-weight: 700;
|
|
@@ -940,17 +957,54 @@
|
|
|
940
957
|
.Footnote-module_root__W5D8G {
|
|
941
958
|
position: relative;
|
|
942
959
|
|
|
943
|
-
width: 320px;
|
|
944
|
-
padding: 20px;
|
|
945
|
-
|
|
946
960
|
border-radius: 8px;
|
|
947
961
|
background-color: #fff;
|
|
948
|
-
box-shadow:
|
|
962
|
+
box-shadow:
|
|
963
|
+
0 0 0 1px rgba(0, 0, 0, 0.1),
|
|
964
|
+
0 5px 20px rgba(0, 0, 0, 0.2);
|
|
949
965
|
}
|
|
950
966
|
.Footnote-module_body__C-ZC- {
|
|
967
|
+
overflow-y: auto;
|
|
968
|
+
-webkit-overflow-scrolling: touch;
|
|
969
|
+
|
|
970
|
+
max-height: 400px;
|
|
971
|
+
padding: 20px 20px 28px;
|
|
972
|
+
|
|
973
|
+
color: #000;
|
|
974
|
+
|
|
951
975
|
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
976
|
+
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
977
|
+
font-size: 16px;
|
|
952
978
|
font-size: 16px;
|
|
953
979
|
line-height: 22px;
|
|
980
|
+
line-height: 22px;
|
|
981
|
+
|
|
982
|
+
overscroll-behavior: none;
|
|
983
|
+
}
|
|
984
|
+
.Footnote-module_body__C-ZC-::before,
|
|
985
|
+
.Footnote-module_body__C-ZC-::after {
|
|
986
|
+
position: absolute;
|
|
987
|
+
right: 0;
|
|
988
|
+
left: 0;
|
|
989
|
+
|
|
990
|
+
content: '';
|
|
991
|
+
pointer-events: none;
|
|
992
|
+
}
|
|
993
|
+
.Footnote-module_body__C-ZC-::before {
|
|
994
|
+
top: 0;
|
|
995
|
+
|
|
996
|
+
height: 29px;
|
|
997
|
+
|
|
998
|
+
border-radius: 8px 8px 0 0;
|
|
999
|
+
background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
|
1000
|
+
}
|
|
1001
|
+
.Footnote-module_body__C-ZC-::after {
|
|
1002
|
+
bottom: 0;
|
|
1003
|
+
|
|
1004
|
+
height: 48px;
|
|
1005
|
+
|
|
1006
|
+
border-radius: 0 0 8px 8px;
|
|
1007
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
|
954
1008
|
}
|
|
955
1009
|
.Footnote-module_body__C-ZC- h3 {
|
|
956
1010
|
margin: 0 0 16px;
|
|
@@ -974,11 +1028,12 @@
|
|
|
974
1028
|
}
|
|
975
1029
|
.Footnote-module_dismiss__Q2hAX {
|
|
976
1030
|
position: absolute;
|
|
1031
|
+
z-index: 10;
|
|
977
1032
|
top: 0;
|
|
978
1033
|
right: 0;
|
|
979
1034
|
|
|
980
1035
|
margin: 0;
|
|
981
|
-
padding:
|
|
1036
|
+
padding: 15px 15px 10px;
|
|
982
1037
|
|
|
983
1038
|
cursor: pointer;
|
|
984
1039
|
|
|
@@ -995,7 +1050,6 @@
|
|
|
995
1050
|
height: 12px;
|
|
996
1051
|
}
|
|
997
1052
|
|
|
998
|
-
|
|
999
1053
|
/* Colors */
|
|
1000
1054
|
/* Fonts */
|
|
1001
1055
|
/* Gap */
|
|
@@ -2858,10 +2912,9 @@
|
|
|
2858
2912
|
.RichTitle-module_root__U5XQu {
|
|
2859
2913
|
margin: 0 0 20px;
|
|
2860
2914
|
|
|
2861
|
-
font-weight: 700;
|
|
2862
|
-
font-size: 19px;
|
|
2863
|
-
|
|
2864
2915
|
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
2916
|
+
font-size: 19px;
|
|
2917
|
+
font-weight: 700;
|
|
2865
2918
|
line-height: 23px;
|
|
2866
2919
|
}
|
|
2867
2920
|
@media only screen and (min-width: 48em) {
|
|
@@ -2876,9 +2929,9 @@
|
|
|
2876
2929
|
margin-bottom: 0;
|
|
2877
2930
|
}
|
|
2878
2931
|
.RichTitle-module_root__U5XQu span {
|
|
2879
|
-
font-weight: normal;
|
|
2880
|
-
font-size: 20px;
|
|
2881
2932
|
font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;
|
|
2933
|
+
font-size: 20px;
|
|
2934
|
+
font-weight: normal;
|
|
2882
2935
|
}
|
|
2883
2936
|
@media only screen and (min-width: 48em) {
|
|
2884
2937
|
.RichTitle-module_root__U5XQu span {
|
|
@@ -2910,10 +2963,10 @@
|
|
|
2910
2963
|
}
|
|
2911
2964
|
@media only screen and (max-width: 63.9375em) {
|
|
2912
2965
|
.RichTitle-module_featured__ULNQn {
|
|
2966
|
+
letter-spacing: 0.3px;
|
|
2913
2967
|
|
|
2914
2968
|
font-size: 28px;
|
|
2915
2969
|
line-height: 30px;
|
|
2916
|
-
letter-spacing: 0.3px;
|
|
2917
2970
|
}
|
|
2918
2971
|
}
|
|
2919
2972
|
@media only screen and (max-width: 63.9375em) {
|
|
@@ -2952,6 +3005,15 @@
|
|
|
2952
3005
|
font-size: 1.35rem;
|
|
2953
3006
|
}
|
|
2954
3007
|
}
|
|
3008
|
+
.RichTitle-module_isInPodcastPlayer__kvEPH {
|
|
3009
|
+
margin-bottom: 20px;
|
|
3010
|
+
|
|
3011
|
+
font-size: 19px;
|
|
3012
|
+
line-height: 23px;
|
|
3013
|
+
}
|
|
3014
|
+
.RichTitle-module_isInPodcastPlayer__kvEPH span {
|
|
3015
|
+
font-size: 20px;
|
|
3016
|
+
}
|
|
2955
3017
|
@media only screen and (min-width: 32em) {
|
|
2956
3018
|
.RichTitle-module_mobile__W5L9E {
|
|
2957
3019
|
display: none;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.4.
|
|
2
|
+
"version": "0.4.15",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"description": "UIKit for Meduza",
|
|
5
5
|
"repository": "https://github.com/meduza-corp/ui-kit-2.git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"build-storybook": "storybook build"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"dayjs": "^1.
|
|
31
|
-
"react": ">=
|
|
32
|
-
"react-intersection-observer": "^
|
|
30
|
+
"dayjs": "^1.11.9",
|
|
31
|
+
"react": ">=18",
|
|
32
|
+
"react-intersection-observer": "^9.5.2",
|
|
33
33
|
"react-router-dom": "^5.2.0"
|
|
34
34
|
},
|
|
35
35
|
"lint-staged": {
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
73
73
|
"@typescript-eslint/parser": "^6.1.0",
|
|
74
74
|
"babel-loader": "^9.1.3",
|
|
75
|
+
"css-loader": "^6.8.1",
|
|
75
76
|
"dayjs": "^1.11.9",
|
|
76
77
|
"dts-cli": "^2.0.3",
|
|
77
78
|
"eslint": "^8.45.0",
|
|
@@ -103,6 +104,7 @@
|
|
|
103
104
|
"storybook": "^7.1.0",
|
|
104
105
|
"storybook-addon-react-docgen": "^1.2.43",
|
|
105
106
|
"storybook-addon-react-router-v6": "^1.0.2",
|
|
107
|
+
"style-loader": "^3.3.3",
|
|
106
108
|
"stylelint": "^15.10.2",
|
|
107
109
|
"stylelint-config-rational-order": "^0.1.2",
|
|
108
110
|
"stylelint-config-sass-guidelines": "^10.0.0",
|
|
@@ -114,6 +116,5 @@
|
|
|
114
116
|
"typescript": "^5.1.6",
|
|
115
117
|
"typescript-plugin-css-modules": "^5.0.1",
|
|
116
118
|
"utils": "^0.3.1"
|
|
117
|
-
}
|
|
118
|
-
"dependencies": {}
|
|
119
|
+
}
|
|
119
120
|
}
|
|
@@ -3,18 +3,58 @@
|
|
|
3
3
|
.root {
|
|
4
4
|
position: relative;
|
|
5
5
|
|
|
6
|
-
width: 320px;
|
|
7
|
-
padding: 20px;
|
|
8
|
-
|
|
9
6
|
border-radius: 8px;
|
|
10
7
|
background-color: #fff;
|
|
11
|
-
box-shadow:
|
|
8
|
+
box-shadow:
|
|
9
|
+
0 0 0 1px rgba(0, 0, 0, 0.1),
|
|
10
|
+
0 5px 20px rgba(0, 0, 0, 0.2);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
.body {
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
-webkit-overflow-scrolling: touch;
|
|
16
|
+
|
|
17
|
+
max-height: 400px;
|
|
18
|
+
padding: 20px 20px 28px;
|
|
19
|
+
|
|
20
|
+
color: #000;
|
|
21
|
+
|
|
22
|
+
font-family: $secondaryFont;
|
|
15
23
|
font-family: $secondaryFont;
|
|
16
24
|
font-size: 16px;
|
|
25
|
+
font-size: 16px;
|
|
17
26
|
line-height: 22px;
|
|
27
|
+
line-height: 22px;
|
|
28
|
+
|
|
29
|
+
overscroll-behavior: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.body::before,
|
|
33
|
+
.body::after {
|
|
34
|
+
position: absolute;
|
|
35
|
+
right: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
|
|
38
|
+
content: '';
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.body::before {
|
|
43
|
+
top: 0;
|
|
44
|
+
|
|
45
|
+
height: 29px;
|
|
46
|
+
|
|
47
|
+
border-radius: 8px 8px 0 0;
|
|
48
|
+
background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.body::after {
|
|
52
|
+
bottom: 0;
|
|
53
|
+
|
|
54
|
+
height: 48px;
|
|
55
|
+
|
|
56
|
+
border-radius: 0 0 8px 8px;
|
|
57
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
|
18
58
|
}
|
|
19
59
|
|
|
20
60
|
.body h3 {
|
|
@@ -44,11 +84,12 @@
|
|
|
44
84
|
|
|
45
85
|
.dismiss {
|
|
46
86
|
position: absolute;
|
|
87
|
+
z-index: 10;
|
|
47
88
|
top: 0;
|
|
48
89
|
right: 0;
|
|
49
90
|
|
|
50
91
|
margin: 0;
|
|
51
|
-
padding:
|
|
92
|
+
padding: 15px 15px 10px;
|
|
52
93
|
|
|
53
94
|
cursor: pointer;
|
|
54
95
|
|
|
@@ -66,4 +107,3 @@
|
|
|
66
107
|
width: 12px;
|
|
67
108
|
height: 12px;
|
|
68
109
|
}
|
|
69
|
-
|
|
@@ -15,16 +15,33 @@ export default {
|
|
|
15
15
|
const Example: React.FC = () => {
|
|
16
16
|
return (
|
|
17
17
|
<>
|
|
18
|
-
<div className={styles.root}>
|
|
18
|
+
<div className={styles.root} style={{ maxWidth: 400 }}>
|
|
19
19
|
<Footnote onClose={(): void => alert('Handle Close')}>
|
|
20
|
-
<h3
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
<h3>Из расследования Туровского Из расследования Туровского</h3>
|
|
21
|
+
<div>
|
|
22
|
+
<p>
|
|
23
|
+
«Летом 2007 года Лиду отправили подтягивать математику в Боброво.
|
|
24
|
+
К тому моменту Бебчук стал для нее „родной фигурой и наставником,
|
|
25
|
+
помогал, слушал“. В первые дни он парил ее голой в бане. В доме
|
|
26
|
+
Бебчука вместо кроватей стояли большие полати — двухэтажная
|
|
27
|
+
деревянная конструкция, на которой помещалось до 15 человек. Лида
|
|
28
|
+
спала на втором этаже, Бебчук внизу. В одну из ночей ей не
|
|
29
|
+
удавалось заснуть, она ворочалась. Бебчук услышал. „Не можешь
|
|
30
|
+
уснуть? Иди сюда, будем вместе засыпать“. Лида спустилась.
|
|
31
|
+
„Забирайся под одеяло“, — сказал преподаватель. Так и не сумев
|
|
32
|
+
заснуть, Лида ночью вышла из дома». «Летом 2007 года Лиду
|
|
33
|
+
отправили подтягивать математику в Боброво. К тому моменту Бебчук
|
|
34
|
+
стал для нее „родной фигурой и наставником, помогал, слушал“. В
|
|
35
|
+
первые дни он парил ее голой в бане. В доме Бебчука вместо
|
|
36
|
+
кроватей стояли большие полати — двухэтажная деревянная
|
|
37
|
+
конструкция, на которой помещалось до 15 человек. Лида спала на
|
|
38
|
+
втором этаже, Бебчук внизу. В одну из ночей ей не удавалось
|
|
39
|
+
заснуть, она ворочалась. Бебчук услышал. „Не можешь уснуть? Иди
|
|
40
|
+
сюда, будем вместе засыпать“. Лида спустилась. „Забирайся под
|
|
41
|
+
одеяло“, — сказал преподаватель. Так и не сумев заснуть, Лида
|
|
42
|
+
ночью вышла из дома».
|
|
43
|
+
</p>
|
|
44
|
+
</div>
|
|
28
45
|
</Footnote>
|
|
29
46
|
</div>
|
|
30
47
|
</>
|
|
@@ -47,27 +47,29 @@
|
|
|
47
47
|
max-width: 420px;
|
|
48
48
|
min-height: 80px;
|
|
49
49
|
margin: 0 auto;
|
|
50
|
-
padding: 22px 20px 28px;
|
|
51
50
|
|
|
52
51
|
animation: disappear 350ms ease both;
|
|
52
|
+
|
|
53
|
+
border-radius: 8px 8px 0 0;
|
|
54
|
+
background-color: #fff;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
.dismiss {
|
|
56
58
|
position: absolute;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
z-index: 10;
|
|
60
|
+
top: 10px;
|
|
61
|
+
right: 10px;
|
|
59
62
|
|
|
60
|
-
width:
|
|
61
|
-
height:
|
|
63
|
+
width: 26px;
|
|
64
|
+
height: 26px;
|
|
62
65
|
padding: 0;
|
|
63
66
|
|
|
64
|
-
|
|
67
|
+
cursor: pointer;
|
|
65
68
|
|
|
66
|
-
opacity: 0.4;
|
|
67
69
|
border-width: 0;
|
|
68
|
-
border-radius:
|
|
69
|
-
background-color:
|
|
70
|
-
background-image: url("data:image/svg+xml,%3Csvg width='
|
|
70
|
+
border-radius: 13px;
|
|
71
|
+
background-color: #ebebeb;
|
|
72
|
+
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 10 10M11 1 1 11' stroke='%23757575' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
71
73
|
background-repeat: no-repeat;
|
|
72
74
|
background-position: center;
|
|
73
75
|
box-shadow: none;
|
|
@@ -75,39 +77,55 @@
|
|
|
75
77
|
appearance: none;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
top: 0;
|
|
82
|
-
left: 0;
|
|
80
|
+
.visible .container {
|
|
81
|
+
animation: appear 350ms ease both;
|
|
82
|
+
}
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
.body {
|
|
85
|
+
overflow-y: auto;
|
|
86
|
+
-webkit-overflow-scrolling: touch;
|
|
85
87
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
max-height: 68vh;
|
|
89
|
+
padding: 18px 20px 28px;
|
|
88
90
|
|
|
89
|
-
|
|
91
|
+
color: #000;
|
|
92
|
+
|
|
93
|
+
font-family: $secondaryFont;
|
|
94
|
+
font-size: 16px;
|
|
95
|
+
line-height: 22px;
|
|
96
|
+
|
|
97
|
+
overscroll-behavior: none;
|
|
90
98
|
}
|
|
91
99
|
|
|
92
|
-
.
|
|
100
|
+
.body::before,
|
|
101
|
+
.body::after {
|
|
93
102
|
position: absolute;
|
|
103
|
+
right: 0;
|
|
104
|
+
left: 0;
|
|
94
105
|
|
|
95
|
-
|
|
96
|
-
height: 100%;
|
|
106
|
+
content: '';
|
|
97
107
|
}
|
|
98
108
|
|
|
99
|
-
.
|
|
100
|
-
|
|
109
|
+
.body::before {
|
|
110
|
+
top: 0;
|
|
111
|
+
|
|
112
|
+
height: 29px;
|
|
113
|
+
|
|
114
|
+
border-radius: 8px 8px 0 0;
|
|
115
|
+
background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
|
101
116
|
}
|
|
102
117
|
|
|
103
|
-
.body {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
118
|
+
.body::after {
|
|
119
|
+
bottom: 0;
|
|
120
|
+
|
|
121
|
+
height: 48px;
|
|
122
|
+
|
|
123
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
|
107
124
|
}
|
|
108
125
|
|
|
109
126
|
.body h3 {
|
|
110
|
-
margin: 0 0
|
|
127
|
+
margin: 0 0 16px;
|
|
128
|
+
padding-right: 26px;
|
|
111
129
|
|
|
112
130
|
font-size: inherit;
|
|
113
131
|
font-weight: 700;
|
|
@@ -35,7 +35,31 @@ const Example: React.FC = () => {
|
|
|
35
35
|
setIsPopoverShown(false)
|
|
36
36
|
}}
|
|
37
37
|
>
|
|
38
|
-
|
|
38
|
+
<h3>Из расследования Туровского Из расследования Туровского</h3>
|
|
39
|
+
<div>
|
|
40
|
+
<p>
|
|
41
|
+
«Летом 2007 года Лиду отправили подтягивать математику в
|
|
42
|
+
Боброво. К тому моменту Бебчук стал для нее „родной фигурой и
|
|
43
|
+
наставником, помогал, слушал“. В первые дни он парил ее голой в
|
|
44
|
+
бане. В доме Бебчука вместо кроватей стояли большие полати —
|
|
45
|
+
двухэтажная деревянная конструкция, на которой помещалось до 15
|
|
46
|
+
человек. Лида спала на втором этаже, Бебчук внизу. В одну из
|
|
47
|
+
ночей ей не удавалось заснуть, она ворочалась. Бебчук услышал.
|
|
48
|
+
„Не можешь уснуть? Иди сюда, будем вместе засыпать“. Лида
|
|
49
|
+
спустилась. „Забирайся под одеяло“, — сказал преподаватель. Так
|
|
50
|
+
и не сумев заснуть, Лида ночью вышла из дома». «Летом 2007 года
|
|
51
|
+
Лиду отправили подтягивать математику в Боброво. К тому моменту
|
|
52
|
+
Бебчук стал для нее „родной фигурой и наставником, помогал,
|
|
53
|
+
слушал“. В первые дни он парил ее голой в бане. В доме Бебчука
|
|
54
|
+
вместо кроватей стояли большие полати — двухэтажная деревянная
|
|
55
|
+
конструкция, на которой помещалось до 15 человек. Лида спала на
|
|
56
|
+
втором этаже, Бебчук внизу. В одну из ночей ей не удавалось
|
|
57
|
+
заснуть, она ворочалась. Бебчук услышал. „Не можешь уснуть? Иди
|
|
58
|
+
сюда, будем вместе засыпать“. Лида спустилась. „Забирайся под
|
|
59
|
+
одеяло“, — сказал преподаватель. Так и не сумев заснуть, Лида
|
|
60
|
+
ночью вышла из дома».
|
|
61
|
+
</p>
|
|
62
|
+
</div>
|
|
39
63
|
</Popover>
|
|
40
64
|
)}
|
|
41
65
|
</div>
|
package/src/Popover/index.tsx
CHANGED
|
@@ -53,27 +53,7 @@ export const Popover: React.FC<PopoverProps> = ({ children, onClose }) => {
|
|
|
53
53
|
onClick={(): void => handleClose()}
|
|
54
54
|
aria-label="dismiss"
|
|
55
55
|
/>
|
|
56
|
-
|
|
57
|
-
<defs>
|
|
58
|
-
<mask id="myMask" x="0" y="0" width="100%" height="100%">
|
|
59
|
-
<rect fill="white" y="0" width="100%" height="100%" x="0" />
|
|
60
|
-
<svg x="50%" overflow="visible">
|
|
61
|
-
<g transform="translate(-12 0)">
|
|
62
|
-
<path d="M4.61852778e-14,9.76996262e-15 L9.84597532,5.80270273 C11.0992017,6.54128882 12.6546044,6.54128882 13.9078308,5.80270273 L23.7538061,9.76996262e-15 L4.61852778e-14,9.76996262e-15 Z" />
|
|
63
|
-
</g>
|
|
64
|
-
</svg>
|
|
65
|
-
</mask>
|
|
66
|
-
</defs>
|
|
67
|
-
<rect
|
|
68
|
-
fill="#F7F7F7"
|
|
69
|
-
id="base-mask"
|
|
70
|
-
mask="url(#myMask)"
|
|
71
|
-
x="0"
|
|
72
|
-
y="0"
|
|
73
|
-
width="100%"
|
|
74
|
-
height="100%"
|
|
75
|
-
/>
|
|
76
|
-
</svg>
|
|
56
|
+
|
|
77
57
|
<div className={styles.body}>{children}</div>
|
|
78
58
|
</div>
|
|
79
59
|
</div>
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
.root {
|
|
4
4
|
margin: 0 0 20px;
|
|
5
5
|
|
|
6
|
-
font-weight: 700;
|
|
7
|
-
font-size: 19px;
|
|
8
|
-
|
|
9
6
|
font-family: $secondaryFont;
|
|
7
|
+
font-size: 19px;
|
|
8
|
+
font-weight: 700;
|
|
10
9
|
line-height: 23px;
|
|
11
10
|
|
|
12
11
|
@media $portraitTablet {
|
|
@@ -22,9 +21,9 @@
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
.root span {
|
|
25
|
-
font-weight: normal;
|
|
26
|
-
font-size: 20px;
|
|
27
24
|
font-family: $primaryFont;
|
|
25
|
+
font-size: 20px;
|
|
26
|
+
font-weight: normal;
|
|
28
27
|
|
|
29
28
|
@media $portraitTablet {
|
|
30
29
|
font-size: 38px;
|
|
@@ -61,10 +60,10 @@
|
|
|
61
60
|
|
|
62
61
|
.featured {
|
|
63
62
|
@media $landscapeTabletMax {
|
|
63
|
+
letter-spacing: 0.3px;
|
|
64
64
|
|
|
65
65
|
font-size: 28px;
|
|
66
66
|
line-height: 30px;
|
|
67
|
-
letter-spacing: 0.3px;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
|
|
@@ -105,6 +104,17 @@
|
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
106
|
|
|
107
|
+
.isInPodcastPlayer {
|
|
108
|
+
margin-bottom: 20px;
|
|
109
|
+
|
|
110
|
+
font-size: 19px;
|
|
111
|
+
line-height: 23px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.isInPodcastPlayer span {
|
|
115
|
+
font-size: 20px;
|
|
116
|
+
}
|
|
117
|
+
|
|
108
118
|
.mobile {
|
|
109
119
|
@media $mobile {
|
|
110
120
|
display: none;
|