Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5502
}
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,4 @@ <h2>Grid madness (extension)</h2>
</body>

</html>

114 changes: 106 additions & 8 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,116 @@
https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors
*/

.two-column-grid__expand-two {}

.three-column-grid {}
.two-column-grid__expand-two {
display: grid;
grid-template: "logo box" 1fr/
150px 1fr;
gap: 10px;
}

.two-column-grid__expand-two .logo {
grid-area: logo;
}

.two-column-grid__expand-two .box {
grid-area: box;
}

.three-column-grid__expand-two {}
@media screen and (max-width: 600px) {
.two-column-grid__expand-two {
grid-template: "logo" 1fr
"box" 1fr/
1fr;
gap: 10px;
}
}

.five-column-grid {}
.three-column-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}

.center-grid {}
@media screen and (max-width: 600px) {
.three-column-grid {
grid-template-columns: repeat(1, 1fr);
}
}

.grid-in-grid-1 {}
.three-column-grid__expand-two {
display: grid;
grid-template:
"box box box" 1fr/
50px 1fr 50px;
gap: 10px;
}

.grid-in-grid-2 {}
@media screen and (max-width: 600px){
.three-column-grid__expand-two {
grid-template:
"box"
"box"
"box";
}
}

.five-column-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
}

@media screen and (max-width: 600px){
.five-column-grid {
grid-template-columns: 1fr 1fr;
}
}

.center-grid {
display: flex;
justify-content: center;
}

.centered {
width: 200px;
}

@media screen and (max-width: 600px){
.centered {
width: 100px;
}
}

.grid-in-grid-1 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}

.grid-in-grid-1 .box:nth-child(1) {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}

.grid-in-grid-1 .box:nth-child(2){
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
}

.grid-in-grid-2 {
display: grid;
grid-template:
"box box box" 1fr/
100px 1fr 200px;
gap: 10px;
}

.grid-in-grid-2 .box:nth-child(3) {
display: grid;
grid-template-columns: repeat(3, 1fr);
}

.grid-madness {}
/* .grid-madness {} */