This repository was archived by the owner on Apr 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +73
-11
lines changed Expand file tree Collapse file tree 1 file changed +73
-11
lines changed Original file line number Diff line number Diff line change 1
- /* Mobile First CSS */
1
+ /* Default Mobile First CSS */
2
2
body {
3
3
font-family : "Arial, sans-serif" ;
4
4
margin : 0 ;
5
5
padding : 0 ;
6
6
box-sizing : border-box;
7
+ background-color : # fff8f0 ;
7
8
}
8
9
9
10
header {
10
11
text-align : center;
11
12
padding : 1em ;
12
- background-color : # f8f8f8 ;
13
- }
14
-
15
- .logo {
16
- font-family : "Arial, sans-serif" ;
17
- font-style : italic;
18
- font-weight : bold;
13
+ background-color : # ffb6c1 ;
14
+ color : white;
19
15
}
20
16
21
17
.menu-toggle {
22
- display : none ;
18
+ display : block ;
23
19
}
24
20
25
- .welcome {
21
+ .main {
26
22
padding : 1em ;
27
23
}
28
24
29
25
.featured-cakes img {
30
26
width : 100% ;
31
27
height : auto;
28
+ border-radius : 10px ;
32
29
}
33
30
34
31
.categories {
@@ -38,8 +35,73 @@ header {
38
35
padding : 1em ;
39
36
}
40
37
38
+ .category img {
39
+ width : 100% ;
40
+ border-radius : 8px ;
41
+ }
42
+
41
43
footer {
42
44
text-align : center;
43
45
padding : 1em ;
44
- background-color : # f8f8f8 ;
46
+ background-color : # ffb6c1 ;
47
+ color : white;
48
+ }
49
+
50
+ /* Medium Screen Styles */
51
+ @media (min-width : 540px ) {
52
+ header {
53
+ padding : 1.5em ;
54
+ }
55
+
56
+ .categories {
57
+ grid-template-columns : repeat (4 , 1fr );
58
+ gap : 20px ;
59
+ }
60
+
61
+ .featured-cakes img {
62
+ width : 80% ;
63
+ margin : 0 auto;
64
+ display : block;
65
+ }
66
+
67
+ footer {
68
+ padding : 2em ;
69
+ }
70
+ }
71
+
72
+ /* Large Screen Styles */
73
+ @media (min-width : 900px ) {
74
+ body {
75
+ max-width : 1200px ;
76
+ margin : 0 auto;
77
+ }
78
+
79
+ header {
80
+ display : flex;
81
+ justify-content : space-between;
82
+ align-items : center;
83
+ }
84
+
85
+ .main {
86
+ display : flex;
87
+ justify-content : space-between;
88
+ }
89
+
90
+ .featured-cakes img {
91
+ width : 60% ;
92
+ height : auto;
93
+ }
94
+
95
+ .welcome {
96
+ width : 40% ;
97
+ padding : 2em ;
98
+ }
99
+
100
+ .categories {
101
+ grid-template-columns : repeat (4 , 1fr );
102
+ }
103
+
104
+ footer {
105
+ padding : 3em ;
106
+ }
45
107
}
You can’t perform that action at this time.
0 commit comments