-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
150 lines (135 loc) · 2.92 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/* Styles for the popup container */
.popup {
position: relative;
display: inline-block;
}
.popup p {
margin: 0;
padding: 0;
display: inline;
}
/* Styles for the popup button */
.popbtn {
background-color: #000;
color: white;
padding: 10px;
font-family: inherit;
font-size: 16px;
border: none;
cursor: pointer;
-webkit-transition: background-color 0.3s ease;
transition: background-color 0.3s ease;
}
/* Styles for the popup content */
.popup-content {
display: none;
position: fixed;
background-color: #f9f9f9;
min-width: 300px;
/* Increased width to accommodate columns */
-webkit-box-shadow: 0px 0px 100vh 100vw rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 100vh 100vw rgba(0, 0, 0, 0.2);
z-index: 1000;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
padding: 20px;
border-radius: 8px;
-webkit-animation: fadeIn 0.3s ease;
animation: fadeIn 0.3s ease;
will-change: opacity;
}
/* Styles for the list inside the popup */
.popup-content ul {
list-style-type: none;
padding: 0;
margin: 0;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 20px;
-moz-column-gap: 20px;
column-gap: 20px;
width: 100%;
}
/* Styles for list items */
.popup-content ul li {
padding: 8px 12px;
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
margin-bottom: 5px;
-webkit-transition: background-color 0.2s ease;
transition: background-color 0.2s ease;
}
/* Hover effect for links */
.popup-content ul li a:hover {
color: #555555;
}
/* Show popup when active */
.popup-content.show {
display: block;
}
/* Styles for the popup title */
.popup-title {
font-size: 18px;
font-weight: bold;
padding: 10px 12px;
border-bottom: 1px solid #ddd;
margin-bottom: 15px;
}
/* Fade-in animation */
@-webkit-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Responsive design for smaller screens */
@media screen and (max-width: 480px) {
.popup-content ul {
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
}
}
.lang-flag {
width: 16px;
height: 16px;
vertical-align: middle;
margin-right: 5px;
display: inline-block;
}
/* Adjust list items to accommodate flags */
.popup-content ul li a {
display: flex;
align-items: center;
text-decoration: none;
color: inherit;
}
.language-icon {
display: inline-flex;
align-items: center;
}
.language-icon svg {
width: 1em;
height: 1em;
fill: currentColor;
margin-right: 0.5em;
}
/* Adjust margins for RTL languages */
.language-icon:dir(rtl) svg {
margin-left: 0.5em;
margin-right: 0;
}