more css tweaks

This commit is contained in:
Elijah Steres 2021-01-01 19:37:55 -05:00
parent 500d807c83
commit 067fe13cd0

View File

@ -43,10 +43,13 @@ div, button {
grid-gap: 50px 30px; /*space between rows, then columns*/ grid-gap: 50px 30px; /*space between rows, then columns*/
align-items: center; align-items: center;
justify-items: center; justify-items: center;
grid-auto-rows: 360px;
grid-auto-flow: row; grid-auto-flow: row;
} }
.container > div {
min-height: 350px;
}
#header { #header {
width: 100%; width: 100%;
height: 150px; height: 150px;
@ -125,7 +128,6 @@ div, button {
justify-self: stretch; justify-self: stretch;
text-align: center; text-align: center;
color: white; color: white;
flex: 1;
} }
.game { .game {
@ -175,12 +177,12 @@ h2 {
.body { .body {
margin: 10px; margin: 10px;
display: grid; display: grid;
grid-template-columns: 60% 40%; grid-template-columns: 66% 33%;
grid-template-areas: grid-template-areas:
"teams info" "players info" "update update"; "teams info" "players info" "update update";
grid-template-rows: 90px; grid-template-rows: 90px;
grid-row-gap: 8px; grid-row-gap: 8px;
grid-column-gap: 10px; grid-column-gap: 14px;
flex: 1; flex: 1;
} }
@ -189,6 +191,7 @@ h2 {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
margin-right: 12px;
} }
.team { .team {
@ -200,6 +203,7 @@ h2 {
.team_name { .team_name {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
@ -210,9 +214,7 @@ h2 {
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
background: #4f545c; background: #4f545c;
padding-top: 8px; padding: 25px 0px;
padding-bottom: 4px;
margin-left: 15%;
margin-right: 10px; margin-right: 10px;
border-radius: 4px; border-radius: 4px;
} }
@ -287,6 +289,7 @@ h2 {
.player_name { .player_name {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis;
text-align: start; text-align: start;
white-space: nowrap; white-space: nowrap;
width: 95%; width: 95%;
@ -297,12 +300,13 @@ h2 {
margin-right: 10px; margin-right: 10px;
margin-top: 5px; margin-top: 5px;
min-height: 50px; min-height: 50px;
padding: 0px 10px;
height: 100%; height: 100%;
background: var(--background-secondary); background: var(--background-secondary);
border-radius: 4px; border-radius: 4px;
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: center; justify-content: start;
} }
.player_type { .player_type {
@ -311,8 +315,13 @@ h2 {
font-weight: bolder; font-weight: bolder;
} }
.update_emoji, .update_text { .update_emoji {
display: inline margin-right: 10px;
margin-left: 4px;
}
.update_text {
text-align: start;
} }
.field { .field {