better reflexivity in grids

This commit is contained in:
oitsjustjose 2020-03-05 23:07:55 -05:00
commit 2358eed653
7 changed files with 47 additions and 19 deletions

View file

@ -10,11 +10,15 @@
display: grid;
flex-direction: row;
justify-content: center;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
grid-auto-rows: 1fr;
grid-gap: 2rem;
grid-auto-flow: dense;
@media (max-width: 767px) {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
background-color: $cardColor;
color: $foreground;

View file

@ -174,12 +174,12 @@ body {
background-color: #252525;
padding: 20px;
border: 1px solid #3f3f3f;
width: 80%;
height: 80%;
height: auto;
max-width: 80%;
max-height: 80%;
border-radius: 8px;
-webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
overflow: auto;
/* The Close Button */
}
@ -451,12 +451,20 @@ button.cyan.outlined:active {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
-ms-grid-columns: (minmax(384px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
grid-auto-rows: 1fr;
grid-gap: 2rem;
grid-auto-flow: dense;
}
@media (max-width: 767px) {
.cards {
-ms-grid-columns: (minmax(300px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
}
.cards .card {
background-color: #2a2a2a;
color: #eeeeee;

File diff suppressed because one or more lines are too long

View file

@ -174,12 +174,12 @@ body {
background-color: #eeeeee;
padding: 20px;
border: 1px solid white;
width: 80%;
height: 80%;
height: auto;
max-width: 80%;
max-height: 80%;
border-radius: 8px;
-webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
overflow: auto;
/* The Close Button */
}
@ -451,12 +451,20 @@ button.cyan.outlined:active {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
-ms-grid-columns: (minmax(384px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
grid-auto-rows: 1fr;
grid-gap: 2rem;
grid-auto-flow: dense;
}
@media (max-width: 767px) {
.cards {
-ms-grid-columns: (minmax(300px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
}
.cards .card {
background-color: #f3f3f3;
color: #252525;

File diff suppressed because one or more lines are too long

View file

@ -174,12 +174,12 @@ body {
background-color: #222436;
padding: 20px;
border: 1px solid #363955;
width: 80%;
height: 80%;
height: auto;
max-width: 80%;
max-height: 80%;
border-radius: 8px;
-webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
overflow: auto;
/* The Close Button */
}
@ -451,12 +451,20 @@ button.cyan.outlined:active {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
-ms-grid-columns: (minmax(384px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
grid-auto-rows: 1fr;
grid-gap: 2rem;
grid-auto-flow: dense;
}
@media (max-width: 767px) {
.cards {
-ms-grid-columns: (minmax(300px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
}
.cards .card {
background-color: #26283c;
color: #ccdbf1;

File diff suppressed because one or more lines are too long