Updated responsive layout
This commit is contained in:
@ -69,16 +69,17 @@
|
||||
}
|
||||
|
||||
/* Grid Pattern */
|
||||
.home-grid-container {
|
||||
padding: 0 15% 2rem 15%;
|
||||
}
|
||||
.home-grid {
|
||||
display: grid;
|
||||
aspect-ratio: 1 / 1;
|
||||
width: 100%;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
grid-template-rows: repeat(3, 1fr);
|
||||
padding: 1rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.home-grid svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@ -87,7 +88,7 @@
|
||||
|
||||
/* -md */
|
||||
@media (min-width: 992px) {
|
||||
.home-grid {
|
||||
.home-grid-container {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
@ -36,7 +36,8 @@
|
||||
<main>
|
||||
<div class="container flex-adaptive">
|
||||
<div class="flex-1">Text</div>
|
||||
<div class="flex-1 home-grid">
|
||||
<div class="flex-1 home-grid-container">
|
||||
<div class="home-grid">
|
||||
<div class="fill-background fill-teal border-round-1 border-round-tl border-round-bl"></div>
|
||||
<div class="fill-background fill-black diamond"></div>
|
||||
<div class="fill-background fill-brown border-round-2 border-round-tr"></div>
|
||||
@ -54,6 +55,7 @@
|
||||
<div class="fill-background fill-tan border-round-2 border-round-tr"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div class="container">
|
||||
|
||||
Reference in New Issue
Block a user