step 3
This commit is contained in:
36
first-app/src/app/home/home.css
Normal file
36
first-app/src/app/home/home.css
Normal file
@@ -0,0 +1,36 @@
|
||||
.results {
|
||||
display: grid;
|
||||
column-gap: 14px;
|
||||
row-gap: 14px;
|
||||
grid-template-columns: repeat(auto-fill, minmax(400px, 400px));
|
||||
margin-top: 50px;
|
||||
justify-content: space-around;
|
||||
}
|
||||
input[type="text"] {
|
||||
border: solid 1px var(--primary-color);
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
margin-right: 4px;
|
||||
display: inline-block;
|
||||
width: 30%;
|
||||
}
|
||||
button {
|
||||
padding: 10px;
|
||||
border: solid 1px var(--primary-color);
|
||||
background: var(--primary-color);
|
||||
color: white;
|
||||
border-radius: 8px;
|
||||
}
|
||||
@media (min-width: 500px) and (max-width: 768px) {
|
||||
.results {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
input[type="text"] {
|
||||
width: 70%;
|
||||
}
|
||||
}
|
||||
@media (max-width: 499px) {
|
||||
.results {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user