forked from sugarlabs/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.css
288 lines (253 loc) · 5.33 KB
/
custom.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
/*This file contains all the custom new changes in the css in Sugarlabs official website*/
/*Also add proper comment for every section you add in this custom.css file*/
/*This is for the reference video section in Music Blocks landing page */
.video-container {
display: flex;
justify-content: center;
}
.video-container div {
margin: 0 10px;
}
.intro_img>.container>div>div>div>p {
padding: 0 10px;
}
/*This is for navLogo of navbar */
#navLogo {
margin-top: 6px;
}
/* This is for the service section on www */
#service .service-item {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 20px;
margin: 10px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
height: 350px;
box-sizing: border-box;
}
#service .service-item img{
width: 100px;
height: 100px;
}
@media screen and (min-width: 768px) and (max-width: 1043px) {
.col-sm-6 {
max-width: 50%;
flex: 0 0 50%;
}
.service-item {
height: auto;
}
}
@media (max-width: 767.98px) {
.col-sm-6 {
max-width: 100%;
flex: 0 0 100%;
}
}
@media (min-width: 992px) and (max-width: 1199.98px) {
.col-md-3 {
max-width: 33.33%;
flex: 0 0 33.33%;
}
}
@media (min-width: 1200px) {
.col-md-3 {
max-width: 25%;
flex: 0 0 25%;
}
}
#social-media-logos-section .social-media-logos-img {
padding-left: 44%;
}
/* Styles for the donation banner */
#donation-banner {
position: sticky;
top: 0;
display: flex;
flex-direction: row;
align-content: normal;
justify-content: center;
align-items: center;
padding: 15px 10px;
margin: 0;
width: 100%;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
background-color: rgb(0, 49, 109);
transition: opacity 0.3s ease, visibility 0.3s ease;
}
#donation-banner.hidden {
opacity: 0;
visibility: hidden;
display: none;
}
.donate-container {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 100%;
margin: 0 auto;
flex-wrap: wrap;
padding: 0 10px;
}
.donate-icon {
width: 40px;
height: 40px;
margin-right: 10px;
}
.donate-text-container {
text-align: left;
justify-content: center;
padding: 5px 15px;
}
.donate-text {
color: white;
font-size: 1rem;
font-weight: bold;
line-height: 1.5;
max-width: 70vw;
margin: 0.19rem 0;
}
.donate-text a {
color: #FFD700;
text-decoration: underline;
}
.donate-button {
border: none;
border-radius: 20px;
padding: 10px 20px;
background-color: white;
font-weight: bold;
cursor: pointer;
margin: 0.375rem auto;
text-decoration: none;
}
.donate-button a {
color: rgb(0, 49, 109);
text-decoration: none;
}
.donate-button:hover {
background-color: #FFD700;
color: rgb(0, 49, 109);
}
.donate-close-button .close-button{
background-color: rgba(255, 255, 255, 0.2);
border: none;
border-radius: 50%;
cursor: pointer;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
}
/* Popup Banner Styles */
#donate-popup-banner {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgb(0, 49, 109);
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
display: none;
z-index: 1000;
border-radius: 8px;
width: 90%;
max-width: 500px;
}
#donate-popup-banner .donate-close-button {
text-align: right;
}
#popup-trigger {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #FFD700;
color: rgb(0, 49, 109);
padding: 10px 20px;
border-radius: 50px;
border: none;
cursor: pointer;
font-weight: bold;
}
/* Vertical "Donate" Button */
#vertical-donate-button {
position: fixed;
left: 0;
top: 50%;
transform: translateY(-50%);
background-color: #FFD700;
color: rgb(0, 49, 109);
padding: 0px 5px;
border-radius: 0 5px 5px 0;
border: none;
cursor: pointer;
font-weight: bold;
display: block;
z-index: 999;
text-align: center;
line-height: 1.5;
}
#vertical-donate-button:hover {
background-color: rgb(255, 223, 0);
}
/* Responsive Design */
@media (max-width: 768px) {
#donation-banner .donate-container {
flex-direction: column;
align-items: center;
text-align: center;
padding: 10px;
}
.donate-icon {
margin-bottom: 10px;
}
.donate-text-container {
max-width: 100%;
margin-bottom: 10px;
}
.donate-text {
font-size: 0.9rem;
}
.donate-button {
text-align: center;
}
.donate-close-button {
position: relative;
top: 0;
right: 0;
vertical-align: middle;
}
}
@media only screen and (max-width: 640px) {
.donate-button {
margin-bottom: 1rem;
}
}
#scrollToTopBtn {
position: fixed;
bottom: 20px;
right: 20px;
background: linear-gradient(45deg, #474354, white);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 2px solid black;
padding: 10px;
border-radius: 50%;
cursor: pointer;
z-index: 1000;
display: none;
}
/* fix list rendering */
ul {
padding: revert;
list-style: inherit;
}