Skip to content

Commit 9ce7641

Browse files
committed
Create style.css
1 parent ca6b192 commit 9ce7641

File tree

1 file changed

+154
-0
lines changed

1 file changed

+154
-0
lines changed

module3-solution/css/style.css

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
5+
body {
6+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
7+
}
8+
9+
.heading-title {
10+
color: black;
11+
/* text-align: center; */
12+
}
13+
14+
.container {
15+
border: none;
16+
margin-left: auto;
17+
margin-right: auto;
18+
margin-top: 10px;
19+
margin-bottom: 10px;
20+
padding: 10px;
21+
}
22+
23+
section {
24+
border: 1px solid black;
25+
background-color: gray;
26+
border-radius: 0.5rem;
27+
width: 100%;
28+
height: 200px;
29+
color: black;
30+
position: relative;
31+
overflow: auto;
32+
}
33+
34+
#chicken {
35+
border: 1px solid black;
36+
border-radius: 0.5rem;
37+
text-align: center;
38+
width: 30%;
39+
margin-left: 70%;
40+
font-weight: bold;
41+
font-size: 125%;
42+
margin-bottom: 0;
43+
margin-top: 0;
44+
padding: 5px;
45+
background-color: hsl(1, 42%, 72%);
46+
}
47+
48+
#beef {
49+
border: 1px solid black;
50+
border-radius: 0.5rem;
51+
text-align: center;
52+
width: 30%;
53+
margin-left: 70%;
54+
font-weight: bold;
55+
font-size: 125%;
56+
margin-bottom: 0;
57+
margin-top: 0;
58+
padding: 5px;
59+
background-color: #C14643;
60+
}
61+
62+
#sushi {
63+
border: 1px solid black;
64+
border-radius: 0.5rem;
65+
text-align: center;
66+
width: 30%;
67+
margin-left: 70%;
68+
font-weight: bold;
69+
font-size: 125%;
70+
margin-bottom: 0;
71+
margin-top: 0;
72+
padding: 5px;
73+
background-color: #E5D198;
74+
}
75+
76+
p {
77+
padding: 15px;
78+
margin: 0;
79+
}
80+
81+
/* Desktop view */
82+
@media(min-width: 992px) {
83+
.box {
84+
display: grid;
85+
grid-template-columns: repeat(3, 1fr);
86+
grid-template-rows: 1fr;
87+
grid-auto-flow: row;
88+
}
89+
90+
.item1 {
91+
grid-column: 1;
92+
grid-row: 1;
93+
}
94+
95+
.item3 {
96+
grid-column: 3;
97+
grid-row: 1;
98+
}
99+
}
100+
101+
/* Tablet view */
102+
@media(min-width: 768px) and (max-width: 991px) {
103+
.box {
104+
display: grid;
105+
grid-template-columns: repeat(2, 1fr);
106+
grid-template-rows: repeat(2, 1fr);
107+
grid-auto-flow: row;
108+
}
109+
110+
.item1 {
111+
grid-column: 1 / 2;
112+
grid-row: 1 / 2;
113+
}
114+
115+
.item2 {
116+
grid-column: 2 / 3;
117+
grid-row: 1 / 2;
118+
}
119+
120+
.item3 {
121+
grid-column: 1 / 3;
122+
grid-row: 2 / 3;
123+
}
124+
125+
}
126+
127+
/* Mobile view */
128+
@media (max-width: 768px) {
129+
.box {
130+
display: grid;
131+
grid-template-columns: 1fr;
132+
grid-template-rows: repeat(3, 1fr);
133+
grid-auto-flow: column;
134+
}
135+
136+
.item1 {
137+
grid-column: 1;
138+
grid-row: 1 / 2;
139+
}
140+
141+
.item2 {
142+
grid-column: 1;
143+
grid-row: 2 / 3;
144+
}
145+
146+
.item3 {
147+
grid-column: 1;
148+
grid-row: 3 / 4;
149+
}
150+
}
151+
152+
#nav-text a {
153+
text-align: center;
154+
}

0 commit comments

Comments
 (0)