forked from iaghapour/freehope
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle2.css
More file actions
257 lines (220 loc) · 5.2 KB
/
style2.css
File metadata and controls
257 lines (220 loc) · 5.2 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
* {
box-sizing: border-box;
font-family: Vazirmatn, sans-serif;
margin: 0;
padding: 0;
direction: rtl;
}
body {
position: relative;
background-color: #242628;
background-position: center;
background-size: 100%;
background-attachment: fixed;
background-image: url(./assets/world.svg);
background-repeat: no-repeat;
}
.container {
width: 100%;
max-width: 1200px;
margin: auto;
padding: 40px 20px;
}
h1 {
color: #fff;
margin-bottom: 40px;
font-size: 28px;
text-align: center;
line-height: 1.6;
}
h1 a {
color: #14b451;
font-size: 28px;
line-height: 1.6;
text-decoration: none;
transition: color 0.3s;
}
h1 a:hover {
color: #2fdd71;
}
.category-section {
margin-bottom: 50px;
background-color: rgba(20, 22, 24, 0.6);
padding: 25px 25px 32px 20px;
border-radius: 12px;
backdrop-filter: blur(5px);
}
.category-section h2 {
color: #ff9e40;
font-size: 24px;
margin-bottom: 10px;
border-bottom: 2px dashed #f3b457;
padding-bottom: 10px;
}
.category-section p {
color: #d0d0d0;
font-size: 18px;
line-height: 1.7;
margin-bottom: 25px;
}
.content-table {
width: 100%;
border-collapse: collapse;
font-size: 16px;
text-align: right;
overflow: hidden;
border-radius: 8px;
}
.content-table thead tr {
background-color: #0a5d4b;
color: #ffffff;
text-align: right;
font-weight: bold;
}
.content-table th,
.content-table td {
padding: 15px 18px;
border: 1px solid #3a3a3a;
color: #ebebeb;
}
.content-table tbody tr {
border-bottom: 1px solid #333;
background-color: #2c2f31;
transition: background-color 0.3s;
}
.content-table tbody tr:nth-of-type(even) {
background-color: #343739;
}
.content-table tbody tr:hover {
background-color: #45494d;
}
.content-table td a {
color: #8ab4f8;
text-decoration: none;
font-weight: bold;
font-size: 16px;
transition: color 0.3s;
}
.content-table td a:hover {
color: #a2c3fa;
text-decoration: underline;
}
.level-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 15px;
font-size: 14px;
color: #fff;
font-weight: normal;
text-align: center;
min-width: 80px;
}
.level-beginner { background-color: #208738; } /* Green */
.level-intermediate { background-color: #007bff; } /* Blue */
.level-advanced { background-color: #dc3545; } /* Red */
.level-all { background-color: #6c757d; } /* Gray */
.social {
text-align: center;
margin-top: 40px;
margin-bottom: 20px;
}
.social a {
display: inline-block;
margin: 0 15px;
font-size: 18px;
color: #14b451;
text-decoration: none;
transition: color 0.3s;
}
.social a:hover {
color: #2fdd71;
}
.copyright {
display: block;
text-align: center;
margin-top: 30px;
padding-bottom: 20px;
color: #888;
font-size: 16px;
text-decoration: none;
direction: ltr;
}
@media screen and (max-width: 991px) {
.container {
padding: 20px 10px;
background-size: contain;
background-position: center 50px;
}
h1, h1 a {
font-size: 22px;
}
.category-section h2 {
font-size: 20px;
}
.category-section p {
font-size: 16px;
}
.content-table th,
.content-table td {
padding: 10px 12px;
}
}
/* =========================================== */
/* START OF RESPONSIVE (MOBILE) CHANGES */
/* =========================================== */
@media screen and (max-width: 768px) {
.content-table thead {
display: none; /* Hide table headers on mobile */
}
.content-table, .content-table tbody, .content-table tr, .content-table td {
display: block;
width: 100%;
}
.content-table tr {
margin-bottom: 20px; /* Space between cards */
border: 1px solid #4a4a4a;
border-radius: 8px;
overflow: hidden; /* Ensure border-radius is respected */
}
.content-table td {
text-align: right;
position: relative;
/* Padding: top, right, bottom, left. Make space on the right for the label */
padding: 12px 25% 12px 15px;
border: none;
border-bottom: 1px solid #3a3a3a;
}
.content-table tr td:last-child {
border-bottom: none; /* Remove border for the last item in a card */
}
/* The label (e.g., "سطح:", "توضیحات:") */
.content-table td::before {
content: attr(data-label) ":"; /* Add a colon after the label */
position: absolute;
right: 15px; /* Position from the right */
width: 45%;
padding-left: 10px; /* Space between label and content */
font-weight: bold;
text-align: right; /* Align label text to the right */
color: #ff9e40; /* Orange color for the label */
pointer-events: none;
}
/* Make the main title of the card more prominent */
.content-table td[data-label="موضوع"] {
font-size: 1.1em;
font-weight: bold;
color: #ffffff;
background-color: #3a3d3f;
/* Reset padding for the title row to be full-width */
padding-right: 15px;
}
/* Remove the label for the main title to avoid repetition */
.content-table td[data-label="موضوع"]::before {
content: "";
}
}
@media screen and (max-width: 480px) {
.content-table td {
padding: 12px 30% 12px 15px;
}
}