@@ -3,19 +3,44 @@ Project: Moderna framework
3
3
Author: Muhammad
4
4
Official repo: github.com/dev-muhammad/moderna
5
5
*/
6
+
7
+ /* CSS Variables */
8
+ : root {
9
+ --primary-color : # 1ec677 ;
10
+ --secondary-color : # 343434 ;
11
+ --background-color : # fff ;
12
+ --transperent-background-color : rgba (255 , 255 , 255 , 0.9 );
13
+ --text-color : # 000 ;
14
+ --footer-background : # ddd ;
15
+ --box-shadow-color : rgba (0 , 0 , 0 , 0.4 );
16
+ --testimonial-text : # 313131 ;
17
+ --testimonial-title : # 222 ;
18
+ }
6
19
* {
7
20
font-family : "Roboto" , sans-serif;
8
- color : # 313131 ;
21
+ color : var (--secondary-color );
22
+ }
23
+ html {
24
+ scroll-behavior : smooth;
9
25
}
10
26
body {
11
27
padding : 0 ;
12
28
margin : 0 ;
13
29
}
14
30
a {
15
- background-color : transparent;
16
- color : # 1ec677 ;
17
31
text-decoration : none;
18
32
}
33
+ .link {
34
+ background-color : transparent;
35
+ color : var (--primary-color );
36
+ }
37
+ .link-hover : hover {
38
+ background-color : transparent;
39
+ color : var (--primary-color );
40
+ }
41
+ .white-text {
42
+ color : # fff
43
+ }
19
44
.title {
20
45
font-size : 46px ;
21
46
line-height : 60px ;
26
51
}
27
52
.button {
28
53
padding : 10px 20px ;
29
- background-color : # 1ec677 ;
54
+ background-color : var ( --primary-color ) ;
30
55
border : none;
31
56
border-radius : 20px ;
32
- color : # fff ;
57
+ color : var ( --background-color ) ;
33
58
font-size : 18px ;
34
59
}
35
60
.container {
63
88
right : 0 ;
64
89
top : 0 ;
65
90
z-index : 10 ;
66
- background-color : # fff ;
91
+ background-color : var ( --background-color ) ;
67
92
padding : 5px 0 8px ;
68
93
padding-top : 5px ;
69
94
padding-bottom : 8px ;
70
- transition : .3s all, box-shadow .6s ease;
95
+ transition : .3s all, box-shadow .6s ease;
71
96
}
72
97
.active-header {
73
- box-shadow : 0 0 10px rgba ( 0 , 0 , 0 , 0.4 );
74
- background-color : rgba ( 255 , 255 , 255 , 0.9 )
98
+ box-shadow : 0 0 10px var ( --box-shadow-color );
99
+ background-color : var ( --transperent-background-color );
75
100
}
76
101
.header-content {
77
102
max-width : 1100px ;
110
135
font-weight : bold;
111
136
}
112
137
a > .menu-item : hover {
113
- color : # 1ec677 ;
138
+ color : var ( --primary-color ) ;
114
139
cursor : pointer;
115
140
}
116
141
.menu-action {
@@ -119,15 +144,15 @@ a>.menu-item:hover{
119
144
.footer {
120
145
display : flex;
121
146
justify-content : center;;
122
- background- color : # ddd ;
147
+ background- color : var( - - footer - background) ;
123
148
padding: 30px 0px;
124
149
align- content: center;
125
150
align- items: center;
126
151
}
127
152
.footer-item {
128
- width : 250px ;
129
153
margin : 20px ;
130
- text-align : center;
154
+ width : 250px ;
155
+ text-align : left;
131
156
}
132
157
.footer-item > ul {
133
158
list-style-type : none;
@@ -144,15 +169,21 @@ a>.menu-item:hover{
144
169
font-size : 20px ;
145
170
}
146
171
.footer-item .list-item : hover {
147
- color : # 1ec677 ;
172
+ color : var ( --primary-color ) ;
148
173
}
149
174
.sign {
150
175
text-align : center;
151
- background-color : # 000 ;
152
- color : # fff ;
176
+ background-color : var ( --text-color ) ;
177
+ color : var ( --background-color ) ;
153
178
padding : 5px ;
154
179
margin : 0px ;
155
180
}
181
+ .full-background-color {
182
+ background-color : var (--primary-color );
183
+ }
184
+ .flex-column {
185
+ flex-direction : column !important ;
186
+ }
156
187
157
188
/* card */
158
189
.card-containter {
@@ -167,16 +198,16 @@ a>.menu-item:hover{
167
198
display : flex;
168
199
justify-content : space-between;
169
200
align-content : center;
170
- border : # ddd solid 1 px ;
201
+ box-shadow : 0 0 3 px var ( --box-shadow-color ) ;
171
202
border-radius : 10px ;
172
203
margin : 20px ;
173
204
}
174
205
.elevation {
175
206
transition : .5s all, box-shadow .6s ease;
176
207
}
177
208
.elevation : hover {
178
- box-shadow : 10px 10px 20px 0px rgba ( 0 , 0 , 0 , 0.4 );
179
- background-color : rgba ( 255 , 255 , 255 );
209
+ box-shadow : 10px 10px 20px 0px var ( --box-shadow-color );
210
+ background-color : var ( --background-color );
180
211
border : none;
181
212
}
182
213
.horizontal-card {
@@ -215,18 +246,18 @@ a>.menu-item:hover{
215
246
}
216
247
.card : hover .card-action {
217
248
text-decoration : underline;
218
- text-decoration-color : # 1ec677 ;
249
+ text-decoration-color : var ( --primary-color ) ;
219
250
text-decoration-thickness : 2px ;
220
251
}
252
+
221
253
/* accordion */
222
254
.accordion {
223
255
min-height : 0 ;
224
256
display : inline-block;
225
257
position : relative;
226
- left : 50 % ;
258
+ left : 27 % ;
227
259
margin : 0px auto;
228
260
transform : translate (-50% , 0 );
229
- /* background-color: #fefffa; */
230
261
max-width : 800px ;
231
262
padding : 30px ;
232
263
}
@@ -236,12 +267,10 @@ a>.menu-item:hover{
236
267
font-weight : 300 ;
237
268
letter-spacing : 1px ;
238
269
display : block;
239
- /* background-color: #fefffa; */
240
270
margin : 0 ;
241
271
cursor : pointer;
242
272
}
243
273
.accordion p {
244
- /* color: rgba(48, 69, 92, 0.8); */
245
274
font-size : 17px ;
246
275
line-height : 26px ;
247
276
letter-spacing : 1px ;
@@ -282,7 +311,7 @@ a>.menu-item:hover{
282
311
.accordion ul li i : after {
283
312
content : "" ;
284
313
position : absolute;
285
- background-color : # 000 ;
314
+ background-color : var ( --text-color ) ;
286
315
width : 3px ;
287
316
height : 16px ;
288
317
}
@@ -356,22 +385,23 @@ a>.menu-item:hover{
356
385
}
357
386
.circle-rounded-image {
358
387
border-radius : 100% ;
359
- border : 2px solid # fff ;
388
+ border : 2px solid var ( --background-color );
360
389
}
361
390
.testimonial .item .testimonial-content {
362
391
border-radius : 15px ;
363
- background-color : # ddd ;
392
+ background-color : var ( --footer-background ) ;
364
393
padding : 10px ;
365
394
margin-bottom : 10px ;
366
395
}
367
396
.testimonial .item .testimonial-content .testimonial-title {
368
397
font-weight : 600 ;
369
- color : # 222 ;
398
+ color : var ( --testimonial-title ) ;
370
399
}
371
400
.testimonial .item .testimonial-content .testimonial-text {
372
401
margin : 5px 0px ;
373
- color : # 313131 ;
402
+ color : var ( --testimonial-text ) ;
374
403
}
404
+
375
405
/* pagination */
376
406
.content-center {
377
407
margin : 0 auto;
@@ -603,12 +633,12 @@ a>.menu-item:hover{
603
633
flex-direction : column;
604
634
justify-content : center;
605
635
position : absolute;
606
- background-color : rgba ( 255 , 255 , 255 , 0.9 );
636
+ background-color : var ( --transperent-background-color );
607
637
left : 0px ;
608
638
top : 47px ;
609
639
width : 100vw ;
610
640
text-align : center;
611
- box-shadow : 0px 3px 3px rgba ( 0 , 0 , 0 , 0.4 );
641
+ box-shadow : 0px 3px 3px var ( --box-shadow-color );
612
642
}
613
643
614
644
}
0 commit comments