You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
CSS
55 lines
1.1 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
span {
|
|
background: #fff;
|
|
padding: 1rem;
|
|
border-radius: 7px;
|
|
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.13);
|
|
height: 30vh;
|
|
display: grid;
|
|
grid-gap: 0.5rem;
|
|
}
|
|
span b {
|
|
background-color: #7B86F5;
|
|
border-radius: 4px;
|
|
display: grid;
|
|
place-items: center;
|
|
color: #fff;
|
|
font-size: 1.5rem;
|
|
}
|
|
span.template-2col {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
span.template-3col {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
span.template-4up {
|
|
grid-template: repeat(2, 1fr)/repeat(2, 1fr);
|
|
}
|
|
span.template-sidebar--left {
|
|
grid-template: "sidebar mainA" "sidebar mainB";
|
|
}
|
|
span.template-sidebar--left > :nth-child(1) {
|
|
grid-area: sidebar;
|
|
}
|
|
span.template-sidebar--right {
|
|
grid-template: "mainA sidebar" "mainB sidebar";
|
|
}
|
|
span.template-sidebar--right > :nth-child(3) {
|
|
grid-area: sidebar;
|
|
}
|
|
|
|
body {
|
|
background: #f9f9f9;
|
|
min-height: 100vh;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, 30ch);
|
|
place-content: center;
|
|
grid-gap: 5vh;
|
|
max-width: calc((30ch * 3) + (5vh * 2) + 2rem);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding: 1rem;
|
|
} |