-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
273 lines (237 loc) · 6.17 KB
/
styles.css
File metadata and controls
273 lines (237 loc) · 6.17 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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
:root {
--chart-color: #1C1B1A;
--primary-color: #878580;
--secondary-color: #CECDC3;
--bg-color: #100F0F;
--hover-color: rgb(243, 57, 119);
}
html {
scroll-behavior: smooth;
scroll-snap-type: y proximity;
}
/* Slower scroll animation */
@keyframes scroll {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-100%);
}
}
/* Body styles */
body {
background-color: var(--bg-color);
opacity: 1;
background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
text-align: center; /* Center text within the body */
font-family: "Vazir", sans-serif; /* Specify a font */
margin: 0; /* Remove default body margin */
}
/* Style for the page title */
.page-title {
font-size: 51px;
font-family: 'Orbitron', sans-serif;
color: var(--secondary-color); /* Dark gray text color */
transition: color 0.3s; /* Smooth color transition on hover */
margin-top: 17px;
margin-bottom: unset;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow effect */
}
/* Hover effect for the page title */
.page-title:hover {
color: var(--hover-color); /* Change text color to black on hover */
}
.sub-title {
margin-top: -10px;
font-family: 'Orbitron', sans-serif !important;
color: var(--secondary-color);
font-weight: 300;
font-size: 16px;
}
.h2 {
color: var(--secondary-color);
font-weight: 500;
font-size: 19px;
}
.item-heading {
margin-top: 15px;
margin-bottom: unset;
}
.chart-heading {
margin-top: 15px;
margin-bottom: 15px;
}
.footer {
display: block;
font-family: 'Orbitron', sans-serif;
text-decoration: unset;
color: var(--secondary-color);
font-weight: 700;
font-size: 15px;
padding: 10px;
}
.footer:hover {
text-decoration: underline;
}
/* Style for the container of all scatter plots */
#scatter-plots {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
}
/* Style for the container of each scatter plot */
.container-div {
flex: 0 0 calc(50% - 20px); /* Set each chart to occupy 50% width with a gap */
box-sizing: border-box; /* Include padding and border in width calculation */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add a subtle shadow effect */
background-color: var(--chart-color);
text-align: center; /* Center text within the chart container */
width: 100%; /* Set the width to 100% for all devices */
margin: 10px;
}
/* Style for the Date axis (X) */
.xaxis text {
display: none; /* Hide hours, minutes, and seconds */
}
/* Style for the hover text on the Date axis (X) */
.xaxis.hovertext {
display: initial; /* Display Day, Month, and Year */
}
/* Style for the <h3> tag within each chart container */
.scatter-plot h3 {
margin: 0; /* Remove margin for <h3> */
color: darkblue; /* Set text color to dark blue */
text-align: center; /* Center the text horizontally */
}
/* Style for the Y-axis labels (round to 1 decimal place) */
.yaxis text {
font-size: 14px; /* Adjust font size */
}
/* Style for the chart title <h3> */
.chart-title {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
direction: rtl;
text-decoration: none;
font-size: 18px;
font-weight: 600;
margin: 5px 20px 20px 10px;
padding: 17px;
color: var(--secondary-color);
transition: ease-in-out 200ms;
border-bottom: solid var(--primary-color) 1px;
}
/* Hover effect for the chart title <h3> */
.chart-title:hover {
color: var(--hover-color);
/* border-bottom: solid var(--hover-color) 2px; */
}
.title-line {
border: none; /* Remove the default border */
border-top: 2px solid var(--secondary-color); /* Set the border to a solid line */
margin: auto ; /* Add margin for spacing */
}
/* Center-align the table of contents horizontally and vertically */
#table-of-contents {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
margin: auto;
/* Set the desired width (e.g., 60% of the screen) for desktops */
width: 100%;
}
span {
color: var(--secondary-color);
}
span > a {
text-decoration: none;
font-size: 15px;
font-weight: 600;
color: var(--secondary-color);
transition: ease-in-out 200ms;
}
span > a:hover {
color: var(--hover-color);
}
@media (min-width: 769px) {
#table-of-contents {
width: 60%;
}
}
/* Media query for smaller screens (e.g., screens up to 768px wide) */
@media (max-width: 768px) {
.container-div {
flex: 0 0 100%;
}
}
@media (min-width: 769px) {
.title-line {
width: 60%; /* Set the width to 60% for desktops */
}
}
/* Define a CSS class for the scroll-to-top button */
.scroll-to-top-button {
display: none; /* Initially, hide the button */
position: fixed;
bottom: 15px;
right: 15px;
background-color: var(--primary-color); /* Background color of the button */
color: var(--secondary-color); /* Text color */
border: none;
border-radius: 50px;
padding: 10px 20px;
cursor: pointer;
transition: opacity 0.3s; /* Add a smooth fade-in effect */
z-index: 9999; /* Set a high z-index to place the button on top */
}
.scroll-to-top-button:hover {
background-color: var(--hover-color); /* Background color on hover */
}
/* CSS */
button {
align-items: center;
background-color: var(--bg-color);
border: 0;
border-radius: 10px;
box-sizing: border-box;
color: #ffffff;
cursor: pointer;
display: inline-flex;
font-family: "Vazir";
font-size: 12;
font-weight: 600;
justify-content: center;
line-height: 20px;
max-width: 480px;
overflow: hidden;
padding: 5px;
padding-left: 10px;
padding-right: 10px;
text-align: center;
touch-action: manipulation;
transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
user-select: none;
-webkit-user-select: none;
vertical-align: middle;
}
button:hover,
button:focus {
background-color: rgb(243, 57, 119);
color: #ffffff;
}
button:active {
background: rgb(116, 26, 56);
color: rgb(255, 255, 255, .7);
}
button:disabled {
cursor: not-allowed;
background: rgba(0, 0, 0, .08);
color: rgba(0, 0, 0, .3);
}