66 top : 0 ;
77 left : 0 ;
88 background-color : hsla (0 , 0% , 0% , 0.65 );
9- backdrop-filter : blur (8px );
109 /*display: grid;*/
1110 place-items : center;
1211}
1312
14- .popup > .outer {
13+ .popup .blur {
14+ backdrop-filter : blur (8px );
15+ }
16+
17+ .popup .invisible {
18+ display : none;
19+ }
20+
21+ .popup > .outer {
1522 width : 40% ;
1623 background-color : var (--main-bg );
1724 border-radius : 0.5em ;
2128 border : solid 3px var (--color-1 );
2229}
2330
31+ .popup .auto-width > .outer {
32+ width : auto;
33+ }
34+
35+ .popup .shadow > .outer {
36+ --shadow : 10px 10px 16px 0px hsla (0 , 0% , 10% , 0.5 );
37+ -webkit-box-shadow : var (--shadow );
38+ box-shadow : var (--shadow );
39+ }
40+
2441close {
2542 position : absolute;
2643 top : 0 ;
@@ -35,7 +52,7 @@ close:hover {
3552 color : var (--color-4 );
3653}
3754
38- .popup > .outer > .content {
55+ .popup > .outer > .content {
3956 width : 100% ;
4057 height : 100% ;
4158 font-family : Arial, sans-serif;
@@ -77,7 +94,76 @@ close:hover {
7794}
7895
7996.popup p {
80- margin-block-start : 0 ;
81- margin-block-end : 0 ;
97+ /* margin-block-start: 0;
98+ margin-block-end: 0;*/
8299 line-height : 1.2em ;
100+ }
101+
102+ .popup p .big {
103+ font-size : 133% ;
104+ margin : 0.5em 0 ;
105+ }
106+
107+ .popup p .big icon {
108+ font-size : 80% ;
109+ }
110+
111+ .popup p .big icon i {
112+ position : relative;
113+ }
114+
115+ .popup icon > i > span {
116+ --pad : 0.5em ;
117+ opacity : 0% ;
118+ font-size : 75% ;
119+ background-color : var (--color-2 );
120+ border-radius : var (--pad );
121+ color : var (--main-bg );
122+ position : absolute;
123+ padding : var (--pad );
124+ width : max-content;
125+ bottom : 200% ;
126+ left : 50% ;
127+ transform : translateY (0.5em );
128+ transition : 0.2s linear;
129+ }
130+
131+ .popup icon > i > span ::before {
132+ content : '' ;
133+ position : absolute;
134+ background-color : inherit;
135+ width : 1em ;
136+ aspect-ratio : 1 ;
137+ -webkit-clip-path : polygon (0 0 , 0% 100% , 100% 0 );
138+ clip-path : polygon (0 0 , 0% 100% , 100% 0 );
139+ top : 100% ;
140+ }
141+
142+ .popup icon > i : hover > span {
143+ opacity : 100% ;
144+ transform : translateY (0 );
145+ }
146+
147+ .popup p .big icon i : nth-child (1 ) {
148+ color : # 00bb00 ;
149+ }
150+
151+ .popup p .big icon i : nth-child (2 ) {
152+ /*color: #dd0000;*/
153+ color : # ffbb00 ;
154+ }
155+
156+ .popup input [type = text ] {
157+ font-family : inherit;
158+ width : 20ch ;
159+ height : 1.5em ;
160+ text-align : left;
161+ position : relative;
162+ top : -0.2em ;
163+ border-radius : 0.25em ;
164+ }
165+
166+ .popup # result {
167+ display : inline-block;
168+ min-width : 8ch ;
83169}
0 commit comments