fix mobile
This commit is contained in:
@@ -44,6 +44,7 @@ html {
|
|||||||
a {
|
a {
|
||||||
color: #3490DC;
|
color: #3490DC;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout {
|
.layout {
|
||||||
@@ -76,26 +77,8 @@ a {
|
|||||||
|
|
||||||
.cards {
|
.cards {
|
||||||
display:grid;
|
display:grid;
|
||||||
grid-template-columns: repeat(4, 20%);
|
grid-template-columns: repeat(auto-fit, minmax(15rem,1fr));
|
||||||
grid-gap: 2rem;
|
grid-gap: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen
|
|
||||||
and (min-device-width: 375px)
|
|
||||||
and (max-device-width: 812px)
|
|
||||||
{
|
|
||||||
|
|
||||||
.cards {
|
|
||||||
display:grid;
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
grid-gap: 2rem;
|
|
||||||
}
|
|
||||||
.layout {
|
|
||||||
grid-template-columns: 50px 50px auto;
|
|
||||||
grid-template-areas:
|
|
||||||
'logo logo search'
|
|
||||||
'. . .'
|
|
||||||
'sidebar sidebar content';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user