Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
220 lines (191 loc) · 5.43 KB
/
Copy pathindex.css
File metadata and controls
220 lines (191 loc) · 5.43 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
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css?family=Vazirmatn:wght@100..900&display=swap');
/* Ensure html and body cover full viewport */
html, body {
width: 100%;
height: 100%;
}
/* Background Styles */
body {
font-family: Vazirmatn, sans-serif;
margin: 0;
padding: 0;
text-align: center;
color: #333;
direction: rtl; /* Set text direction to RTL */
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* Style for the informational box */
.info-box {
background-color: #ffffe0; /* Light yellow background */
color: #333; /* Dark text for contrast */
padding: 15px;
margin: 20px auto; /* Center the box horizontally with margin auto */
border-radius: 10px;
font-size: 1.2rem; /* Adjust font size for readability */
font-weight: bold;
text-align: center; /* Center text */
max-width: 60%; /* Limit width to 80% of the container */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for better visibility */
line-height: 1.5; /* Improve line spacing */
}
/* Responsive Design for the info box */
@media (max-width: 500px) {
.info-box {
font-size: 1rem; /* Adjust font size on smaller screens */
padding: 10px; /* Adjust padding */
max-width: 90%; /* Slightly increase width for small screens */
}
}
@media (max-width: 480px) {
.info-box {
font-size: 0.9rem; /* Further adjust font size */
padding: 8px; /* Further adjust padding */
max-width: 95%; /* Further increase width for very small screens */
}
}
/* General Styles */
.header {
margin-top: 20px;
color: #0a0000; /* Red header text */
font-size: 1.1rem; /* Use relative units */
font-weight: 900;
}
.sub-header {
margin-top: 10px;
color: #0a0000; /* Red sub-header text */
font-size: 1rem; /* Use relative units */
font-weight: 900;
}
.sub-header a {
color: #940a0a; /* Red links */
text-decoration: none;
font-size: 0.9rem; /* Use relative units */
font-weight: 750;
margin: 0 10px;
}
.sub-header a:hover {
text-decoration: underline;
color: #0056b3; /* Darker blue on hover */
}
.course-container {
width: 90%; /* Use percentage-based width */
max-width: 1200px; /* Limit maximum width for large screens */
margin: 20px auto;
background-color: #ffffff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow-y: auto;
max-height: 80vh;
background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}
.course-category {
font-size: 1.6rem; /* Use relative units */
font-weight: bold;
margin: 20px 0;
border-bottom: 2px solid #28a745; /* Green border */
padding-bottom: 10px;
}
.course-item {
display: flex;
flex-wrap: wrap; /* Allow wrapping for smaller screens */
justify-content: space-between; /* Ensure items are spaced between */
align-items: center;
margin-bottom: 10px;
text-align: right;
padding: 10px;
border-bottom: 1px solid #ddd;
position: relative;
font-weight: bold;
background-color: #f9f9f9;
border-radius: 5px;
font-size: 1.25rem; /* Use relative units */
font-family: Vazirmatn, sans-serif;
}
.course-item span {
margin-left: 24px;
margin-right: 0;
}
.copy-button {
background-color: #28a745; /* Green button */
color: #dfff00;
border: none;
padding: 5px 10px;
font-size: 1.5rem;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.1s; /* Smooth transition */
white-space: nowrap;
display: flex;
align-items: center;
justify-content: center;
width: auto;
text-align: center;
vertical-align: middle;
line-height: 1;
white-space: nowrap;
font-weight: normal;
}
.copy-button span {
display: inline-block; /* Ensure the span behaves like inline block */
vertical-align: middle; /* Align text vertically in case of discrepancies */
margin: 0;
font-weight: bold;
font-size: 1.1rem;
}
.copy-button:hover {
background-color: #218838; /* Darker green on hover */
}
/* Responsive Design */
@media (max-width: 768px) {
.header {
font-size: 1.25rem; /* Adjust header size */
}
.sub-header {
font-size: 1.1rem; /* Adjust sub-header size */
}
.course-category {
font-size: 1.4rem; /* Adjust category size */
}
.course-container {
width: 95%; /* Slightly increase width for small screens */
padding: 15px;
}
.course-item {
flex-direction: column; /* Stack items vertically */
align-items: flex-start; /* Align items to start */
}
.copy-button {
margin-top: 10px; /* Add margin for spacing */
}
}
@media (max-width: 300px) {
.header {
font-size: 1.1rem; /* Further adjust header size */
}
.sub-header {
font-size: 1rem; /* Further adjust sub-header size */
}
.course-category {
font-size: 1.2rem; /* Further adjust category size */
}
.course-item {
font-size: 1rem; /* Further adjust course item size */
}
.copy-button {
font-size: 0.85rem; /* Adjust button size */
}
}