-
Notifications
You must be signed in to change notification settings - Fork 0
/
teststyle.css
351 lines (309 loc) · 8.89 KB
/
teststyle.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
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
/* Style for Edly page title to match lesson title */
.unit-title {
font-size: 1.8em !important;
font-family: 'Quicksand', sans-serif !important;
color: #CD2355 !important;
font-weight: 900 !important;
text-align: center !important;
margin-bottom: 20px !important;
box-sizing: border-box;
}
/* Lesson Heading */
#rpf-lesson-title {
font-size: 1.8em !important;
font-family: 'Quicksand', sans-serif !important;
color: #CD2355 !important;
font-weight: 900 !important;
text-align: center !important;
margin-bottom: 20px !important;
box-sizing: border-box;
}
/* General Paragraph Text */
.rpf-text {
font-size: 16px;
font-family: 'Quicksand', sans-serif !important;
color: #222222;
line-height: 1.6;
margin-bottom: 20px;
box-sizing: border-box;
}
/* Block styling for alignment */
.notes, .task, .learn {
position: relative;
align-items: center; /* Vertically align icon and title */
padding: 20px; /* Add consistent padding */
border-radius: 8px; /* Rounded corners */
margin-bottom: 20px; /* Space between blocks */
box-sizing: border-box;
font-family: 'Quicksand', sans-serif !important; /* Consistent font */
margin-left: 20px;
padding-top: 60px !important; /* Add more space at the top for icon and title */
}
/* Icon styling */
.notes::before, .task::before, .learn::before {
font-family: "Font Awesome 6 Free"; /* Font Awesome for icons */
font-weight: 900; /* Solid icons */
font-size: 24px; /* Icon size */
position: absolute;
top: 15px !important;
left: 15px !important;
color: inherit; /* Match the block's color */
}
/* Title text styles */
.learn::after, .notes::after, .task::after {
content: attr(data-title); /* Pull title text dynamically */
position: absolute;
top: 15px !important;
left: 60px !important; /* Spaced to the right of the icon */
font-size: 28px; /* Title size */
font-weight: 700; /* Bold text */
color: inherit; /* Match the block's color */
margin-bottom: 20px !important; /* Adds spacing below title and icon */
}
/* Specific block styles */
.learn {
background-color: #FCF3F6;
border: 2px solid #CD2355;
color: #CD2355; /* Title text and icon color */
}
.learn::before {
content: "\f02d"; /* Book icon */
}
.notes {
background-color: #EDF7EE;
border: 2px solid #317C35;
color: #317C35;
}
.notes::before {
content: "\f27a"; /* Comment icon */
}
.task {
background-color: #F4EEF7;
border: 2px solid #6B3687;
color: #6B3687;
}
.task::before {
content: "\f14a"; /* Tick box icon */
}
/* h2 Header styling specific to blocks */
.notes h2 {
color: #317C35 !important; /* Notes header color */
font-family: 'Quicksand', sans-serif !important;
font-size: 22px !important;
font-weight: 700 !important;
margin-top: 10px !important;
margin-bottom: 15px !important;
}
.task h2 {
color: #6B3687 !important; /* Task header color */
font-family: 'Quicksand', sans-serif !important;
font-size: 22px !important;
font-weight: 700 !important;
margin-top: 10px !important;
margin-bottom: 15px !important;
}
.learn h2 {
color: #CD2355 !important; /* Learn header color */
font-family: 'Quicksand', sans-serif !important;
font-size: 22px !important;
font-weight: 700 !important;
margin-top: 10px !important;
margin-bottom: 15px !important;
}
/* h3 Header styling specific to blocks */
.notes h3, .task h3, .learn h3 {
color: #222222 !important;
font-family: 'Quicksand', sans-serif !important;
font-size: 20px !important;
font-weight: 700 !important;
margin-top: 10px !important;
margin-bottom: 15px !important;
}
/* Paragraph styling */
.notes p, .task p, .learn p {
font-family: 'Quicksand', sans-serif !important;
margin-top: 10px !important;
color: #222222 !important;
font-size: 16px !important;
line-height: 1.6 !important;
}
/* Collapsible Button */
details summary {
background-color: #232D9A;
color: white;
font-size: 20px;
font-family: 'Quicksand', sans-serif !important;
font-weight: bold;
padding: 20px 20px;
border-radius: 8px;
width: auto; /* Allow the button to size based on content */
max-width: calc(100% - 80px); /* Prevent the button from exceeding the screen width, accounting for left/right margins */
margin: 0 auto; /* Center the button horizontally */
box-sizing: border-box;
display: block;
text-align: center; /* Ensure text is centered */
cursor: pointer;
}
details[open] summary {
background-color: #232E9B;
margin-bottom: 0px !important; /* Reduce margin between button and content */
}
details summary:hover {
background-color: #232E9B;
}
/* Add spacing between the closed button and the next content */
details:not([open]) {
margin-bottom: 20px !important; /* Adds spacing when content is hidden */
}
/* Collapsible Content */
details .content {
background-color: #E7F8F7;
font-family: 'Quicksand', sans-serif !important;
padding: 20px; /* Add padding for better spacing */
border-left: 5px solid #CD2355;
margin: 0 auto; /* Center the content block */
max-width: calc(100% - 80px); /* Prevent the content from overflowing the block */
color: #222222;
box-sizing: border-box;
display: block;
overflow: hidden !important; /* Prevents overflowing elements */
}
/* Add spacing below the collapsible detailed content when open */
details[open] .content {
margin-bottom: 30px; /* Increase spacing between content box and next page content */
}
.content iframe {
width: 100% !important;
max-width: 100% !important; /* Prevent any width restrictions */
height: calc(100vw * 9 / 16); /* Keep a 16:9 aspect ratio */
max-height: 700px; /* Limit max height for larger screens */
margin: 0 auto !important; /* Center the iframe */
padding: 0 !important;
border: none;
overflow: hidden !important; /* Prevents overflowing elements */
}
/* Specific adjustment for portrait documents */
.content.portrait iframe {
height: calc(100vw * 16 / 9); /* Inverts aspect ratio for portrait documents */
}
/* General Video Block Container */
.xblock.xmodule_VideoBlock {
background-color: #F4EEF7;
padding: 20px;
border-radius: 8px;
box-sizing: border-box;
}
/* Override the grey background on the video block */
.xmodule_display.xmodule_VideoBlock .video {
background: #F4EEF7 !important;
margin: 0 !important;
padding: 12px !important;
border-radius: 5px !important;
outline: none !important;
box-sizing: border-box;
}
/* General Video Block Title */
.xblock.xmodule_VideoBlock .hd-2 {
color: #CD2355;
font-family: 'Quicksand', sans-serif;
font-size: 24px;
font-weight: 700;
box-sizing: border-box;
}
/* General Transcript Container */
.subtitles {
background-color: #FCF3F6;
padding: 15px;
color: #222222;
border-radius: 8px;
border-left: 5px solid #CD2355;
box-sizing: border-box;
}
/* Transcript text */
.subtitles ol.subtitles-menu span {
color: #222222;
font-size: 16px;
font-family: 'Quicksand', sans-serif;
line-height: 1.6;
box-sizing: border-box;
}
/* Transcript Heading */
.subtitles h3 {
color: #CD2355;
font-size: 18px;
font-family: 'Quicksand', sans-serif;
font-weight: 700;
box-sizing: border-box;
}
/* Transcript Links (for skip to start/end) */
.subtitles a {
color: #232e9b;
text-decoration: underline;
box-sizing: border-box;
}
.subtitles a:hover {
color: #c51d4a;
box-sizing: border-box;
}
/* Style for the image container */
.image-container {
text-align: center; /* Centers the image and the caption */
margin-bottom: 20px; /* Adds space below the image */
}
/* Style for the image */
.images {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%;
height: auto;
padding-bottom: 15px; /* Small padding below the image */
}
/* Style for the image caption */
.image-caption {
font-size: 12px; /* Makes the caption smaller */
font-family: 'Quicksand', sans-serif !important;
color: #777; /* Muted text color */
text-align: center;
margin-top: 5px; /* Small margin between the image and caption */
padding: 0; /* Minimal padding */
}
/* Custom Link Styling */
a {
color: #C51D4A;
text-decoration: none;
box-sizing: border-box;
}
a:hover, a:active {
color: #232E9B;
box-sizing: border-box;
}
/* Table Styling */
.table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
box-sizing: border-box;
}
.table th,
.table td {
border: 2px solid #222222;
padding: 10px;
text-align: left;
box-sizing: border-box;
}
/* Specific adjustments for lists to ensure alignment with other text */
ul, ol {
color: #222222 !important; /* Match body text color */
font-size: 16px; /* Same font size as body text */
font-family: 'Quicksand', sans-serif !important; /* Apply the same font */
line-height: 1.6 !important; /* Match line-height for readability */
margin-left: 40px !important; /* Indent the list items */
margin-right: 40px !important;
margin-bottom: 20px !important; /* Add spacing after the list */
list-style: disc; /* Add default bullet points */
}
/* General list item styling */
ul li, ol li {
margin-bottom: 0px !important; /* Add spacing between list items */
}