Skip to content

Commit 29899c3

Browse files
committed
css updated for responsive
1 parent c1c2ade commit 29899c3

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

styles.css

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,37 @@ code {
129129
.example {
130130
background-color: #e8f5e9;
131131
padding: 10px;
132-
padding-left: 32px;
133132
border: 1px solid #388e3c;
134133
border-radius: 5px;
135134
margin-bottom: 20px;
136135
}
137136
.bad-example {
138137
background-color: #ffebee;
139138
padding: 10px;
140-
padding-left: 32px;
141139
border: 1px solid #d32f2f;
142140
border-radius: 5px;
143141
margin-bottom: 20px;
144142
}
145143
@media screen and (max-width: 600px) {
144+
body {
145+
margin: 10px;
146+
}
147+
nav ul {
148+
flex-direction: column;
149+
align-items: center;
150+
}
151+
nav ul li {
152+
margin-bottom: 10px;
153+
margin-right: 0;
154+
}
146155
.principles-container {
147156
grid-template-columns: 1fr;
148157
}
158+
p,
159+
.principle-box,
160+
.example,
161+
.bad-example {
162+
padding: 5px;
163+
margin: 5px 0;
164+
}
149165
}

0 commit comments

Comments
 (0)