forked from CodeYourFuture/Module-Data-Groups
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
175 lines (152 loc) · 3.54 KB
/
style.css
File metadata and controls
175 lines (152 loc) · 3.54 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
/** Write your CSS in here **/
:root {
--primary-color: #f5ac2d;
--text-color: #f5ac2d;
--bg-color: #f5ac2d;
--card-bg: #ffffff;
--transition-speed: 0.3s;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Georgia, 'Times New Roman', Times, serif;
background-color: var(--bg-color);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
}
.container {
background: var(--card-bg);
padding: 3rem 4rem;
width: 100%;
max-width: 700px;
text-align: center;
position: relative;
/* Simple crisp shadow or none based on flat design of example, keeping slight shadow for visibility */
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
h1 {
display: none; /* The example image doesn't show a visible title inside the card */
}
#quote {
font-size: 1.8rem;
line-height: 1.4;
color: var(--text-color);
margin-bottom: 1.5rem;
position: relative;
padding-left: 3rem; /* Space for the quote icon */
text-align: left;
}
#quote::before {
content: '“'; /* Large quote mark using curved quotes */
font-size: 6rem;
color: var(--primary-color);
position: absolute;
top: -1.5rem;
left: -1rem;
line-height: 1;
font-family: sans-serif; /* Quote marks often look better in sans-serif or specific fonts */
opacity: 1; /* Solid colour in example */
}
#author {
font-size: 1.1rem;
color: var(--text-color);
margin-bottom: 2.5rem;
text-align: right;
font-style: italic; /* Authors are often italicized in this style */
}
/* Add dash before author if not present in JS, but here we style assuming content */
#author::before {
content: '- ';
}
.controls {
display: flex;
flex-direction: column;
align-items: flex-end; /* Button aligned to right in some designs, or center. Example shows right or center. Let's align right to match typical 'next' flows or keep center if safer. Example looks right-aligned for button. */
}
button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 0.8rem 1.5rem;
font-size: 1rem;
font-family: Arial, sans-serif;
cursor: pointer;
transition: opacity var(--transition-speed) ease;
font-weight: bold;
}
button:hover {
opacity: 0.9;
}
/* Auto-play Switch - adjusting to fit the new theme */
.auto-play-container {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 1rem; /* Separate from main button */
align-self: flex-end;
}
.switch-label {
font-weight: normal;
font-size: 0.9rem;
color: var(--text-color);
font-family: Arial, sans-serif;
}
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 26px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #e4e4e4; /* Light grey for off */
transition: .4s;
border-radius: 0; /* Square/Rectangular look or keep rounded? Let's keep rounded for standard UI toggle */
}
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
}
input:checked + .slider {
background-color: var(--primary-color);
}
input:focus + .slider {
box-shadow: 0 0 1px var(--primary-color);
}
input:checked + .slider:before {
transform: translateX(24px);
}
.status-indicator {
font-size: 0.8rem;
font-weight: bold;
color: var(--primary-color);
opacity: 0;
margin-top: 0.5rem;
align-self: flex-end;
font-family: Arial, sans-serif;
}
.status-indicator.active {
opacity: 1;
}