-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
329 lines (292 loc) · 7.29 KB
/
styles.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
/* 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;
}
/* Pseudo-element for the top-right text and icon */
.learn::before, .notes::before, .task::before {
position: absolute;
top: 10px;
right: 10px;
color: #afafaf;
font-size: 18px;
font-weight: 900; /* Solid icons */
display: flex;
align-items: center;
justify-content: flex-end;
padding: 5px 10px;
box-sizing: border-box;
font-family: "Font Awesome 6 Free"; /* Ensures you're using Font Awesome */
}
/* Adjust for each block type */
.learn::before {
content: "LEARN \f02d"; /* Book icon (Solid) */
}
.notes::before {
content: "NOTES \f27a"; /* Comment icon (Solid) */
}
.task::before {
content: "TASK \f14a"; /* Tick Box icon (Solid) */
}
/* Notes Block */
.notes {
position: relative;
padding: 60px 20px 20px 20px;
background-color: #EDF7EE;
border: 2px solid #317C35;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-sizing: border-box;
}
.notes h2 {
color: #317C35 !important;
font-family: 'Quicksand', sans-serif !important;
font-size: 24px !important;
font-weight: 700 !important;
box-sizing: border-box;
margin-bottom: 15px;
}
/* body text for the NOtes, Task and Teach Blocks */
.notes p, .task p, .teach p {
color: #222222 !important;
font-size: 16px !important;
font-family: 'Quicksand', sans-serif !important;
line-height: 1.6;
box-sizing: border-box;
}
/* Task Block */
.task {
position: relative;
padding: 60px 20px 20px 20px;
background-color: #F4EEF7;
border: 2px solid #6B3687;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-sizing: border-box;
}
.task h2 {
color: #6C3687 !important;
font-family: 'Quicksand', sans-serif !important;
font-size: 24px !important;
font-weight: 700 !important;
box-sizing: border-box;
margin-bottom: 15px;
}
/* Learn Block */
.learn {
position: relative;
padding: 60px 20px 20px 20px;
background-color: #FCF3F6;
border: 2px solid #CD2355;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-sizing: border-box;
}
.learn h2 {
color: #CD2355 !important;
font-family: 'Quicksand', sans-serif !important;
font-size: 24px !important;
font-weight: 700 !important;
box-sizing: border-box;
margin-bottom: 15px;
}
/* Extra content padding to separate the pseudo-element */
.learn p, .notes p, .task p {
margin-top: 60px; /* Adds space between the content and the pseudo-element */
}
/* Collapsible Button */
details summary {
background-color: #232D9A;
color: white;
font-size: 20px;
font-family: 'Quicksand', sans-serif !important;
font-weight: bold;
padding: 14px 20px;
border-radius: 8px;
width: 100%;
box-sizing: border-box;
display: block;
text-align: center;
cursor: pointer;
margin-bottom: 15px;
}
details[open] summary {
background-color: #232E9B;
}
details summary:hover {
background-color: #232E9B;
}
/* Collapsible Content */
details .content {
background-color: #E7F8F7;
font-family: 'Quicksand', sans-serif !important;
padding: 10px;
border-left: 5px solid #CD2355;
margin-top: 5px;
border-radius: 8px;
color: #222222;
box-sizing: border-box;
width: 100%; /* Full width within the content box */
display: block;
margin-bottom: 15px;
overflow: hidden; /* Prevents overflowing elements */
}
.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;
}
/* 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: 5px; /* 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;
}
/* Unordered and Ordered List Styling */
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 */
padding-left: 60px !important; /* Indent the list items more */
margin-bottom: 20px !important; /* Add spacing after the list */
}
/* General list item styling */
ul li, ol li {
margin-bottom: 10px; /* Add spacing between list items */
}