-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintro_style.css
More file actions
272 lines (243 loc) · 6.92 KB
/
intro_style.css
File metadata and controls
272 lines (243 loc) · 6.92 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
/* --- START OF FILE intro_style.css --- */
/* --- General Body/Layout Styles --- */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
line-height: 1.6;
margin: 0;
background-color: #f8f9fa; /* Slightly lighter background */
color: #343a40;
font-size: 16px;
}
.intro-container {
max-width: 900px; /* Limit width for readability */
margin: 20px auto; /* Center content horizontally, add top/bottom margin */
padding: 15px 25px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
h1, h2 {
color: #212529;
border-bottom: 1px solid #dee2e6;
padding-bottom: 8px;
margin-bottom: 20px;
text-align: center;
}
h1 {
font-size: 2.2em;
margin-top: 10px;
}
h2 {
font-size: 1.6em;
margin-top: 35px;
text-align: left; /* Keep section headers left-aligned */
}
/* --- Simulator Preview Section --- */
.simulator-preview {
position: relative; /* Needed for absolute positioning of the play button */
margin: 25px auto; /* Center block */
display: block; /* Ensure it takes block-level space */
max-width: 100%; /* Ensure it fits within container */
cursor: pointer; /* Indicate the whole area is clickable */
border-radius: 6px; /* Match image radius */
overflow: hidden; /* Ensure play button doesn't overflow rounded corners */
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.simulator-preview img {
display: block; /* Remove potential space below image */
width: 100%; /* Make image fill the container */
height: auto; /* Maintain aspect ratio */
border-radius: 6px; /* Rounded corners for the image */
transition: transform 0.3s ease; /* Slight zoom effect on hover */
}
.simulator-preview:hover img {
transform: scale(1.02); /* Slightly zoom image on hover */
}
/* --- Play Button --- */
.play-link {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.1); /* Slight dark overlay */
text-decoration: none;
transition: background-color 0.3s ease;
}
.play-button {
display: flex;
justify-content: center;
align-items: center;
width: 80px; /* Size of the button background */
height: 80px;
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
border-radius: 50%; /* Circular button */
opacity: 0.5; /* 50% transparent as requested */
transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.play-button i.fa-play {
font-size: 36px; /* Size of the play icon */
color: #343a40; /* Dark icon color */
/* Adjust icon position slightly if needed */
transform: translateX(2px);
}
.simulator-preview:hover .play-link {
background-color: rgba(0, 0, 0, 0.2); /* Darken overlay slightly on hover */
}
.simulator-preview:hover .play-button {
opacity: 0.85; /* Make button less transparent on hover */
transform: scale(1.1); /* Enlarge button slightly on hover */
background-color: rgba(255, 255, 255, 0.95); /* Make background less transparent */
}
/* --- Information Section (Modified) --- */
.info-section {
text-align: center;
margin: 25px 0;
padding: 15px 0;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
font-size: 0.95em;
color: #495057;
line-height: 1.5; /* Adjusted line height for single line */
}
.info-section p {
margin: 0; /* Remove default margin from p */
}
/* Style the separator */
.info-separator {
margin: 0 10px; /* Space around the separator */
color: #adb5bd; /* Lighter color for separator */
}
.info-section a {
color: #0056b3;
text-decoration: none;
font-weight: 500;
transition: color 0.2s ease;
white-space: nowrap; /* Prevent link text wrapping */
}
.info-section a:hover {
color: #003d80;
text-decoration: underline;
}
.info-section i {
margin-right: 4px; /* Slightly reduced space */
color: #6c757d;
vertical-align: baseline;
}
.info-section a:hover i {
color: #003d80;
}
/* Allow wrapping on smaller screens */
@media (max-width: 480px) {
.info-section {
line-height: 1.8; /* Increase line height if it wraps */
}
.info-separator {
display: block; /* Stack separator on its own line */
margin: 5px auto; /* Center separator when stacked */
width: 20px; /* Give it some width */
border-top: 1px solid #eee; /* Make it a line */
color: transparent; /* Hide the pipe character */
}
.author-info, .source-info {
display: block; /* Make author/source stack */
margin-bottom: 3px;
}
}
/* --- Description Section --- */
.description {
margin-top: 30px;
margin-bottom: 30px;
padding: 0 10px; /* Add slight horizontal padding */
}
.description p {
margin-bottom: 15px;
text-align: justify;
}
/* --- Comments Section --- */
.comments-section {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #dee2e6;
}
.comments-section h2 {
border-bottom: none; /* Remove border from H2 within comments */
text-align: center;
margin-bottom: 25px;
}
/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
body {
font-size: 15px;
}
.intro-container {
margin: 15px auto;
padding: 10px 15px;
}
h1 {
font-size: 1.9em;
}
h2 {
font-size: 1.4em;
}
.play-button {
width: 70px;
height: 70px;
}
.play-button i.fa-play {
font-size: 30px;
}
.info-section {
font-size: 0.9em;
}
}
/* Media query for 480px already adjusted above for .info-section */
@media (max-width: 480px) {
body {
font-size: 14px;
}
.intro-container {
margin: 10px auto;
padding: 10px 10px;
border-radius: 4px;
}
h1 {
font-size: 1.6em;
padding-bottom: 6px;
margin-bottom: 15px;
}
h2 {
font-size: 1.3em;
margin-top: 25px;
}
.simulator-preview {
margin: 15px auto;
}
.play-button {
width: 60px;
height: 60px;
}
.play-button i.fa-play {
font-size: 24px;
}
.info-section {
font-size: 0.85em;
padding: 10px 0;
margin: 20px 0;
}
.description {
padding: 0 5px;
}
.comments-section {
margin-top: 30px;
padding-top: 15px;
}
.comments-section h2 {
margin-bottom: 20px;
}
}
/* --- END OF FILE intro_style.css --- */