matteo-the-prestige/static/css/game.css

222 lines
3.9 KiB
CSS
Raw Normal View History

2021-01-01 22:03:04 +00:00
:root {
--background-main: #2f3136; /*discord dark theme background-secondary - the same color as the embeds*/
--background-secondary: #4f545c; /*discord's background-tertiary*/
--background-accent: #4f545c; /*discord's background-accent*/
--highlight: rgb(113, 54, 138); /*matteo purple™*/
}
.game {
align-self: stretch;
text-align: center;
display: flex;
flex-direction: column;
2021-01-01 22:03:04 +00:00
background:var(--background-main);
border: 4px solid;
border-radius: 4px;
2021-01-01 22:03:04 +00:00
border-color: var(--highlight);
border-top: none;
border-right: none;
border-bottom: none;
2021-01-04 22:57:13 +00:00
height: min-content;
2021-01-05 05:26:33 +00:00
width: 100%;
min-width: 32rem;
max-width: 44rem;
}
.header {
width: 100%;
2021-01-01 22:03:04 +00:00
background-color: var(--background-secondary);
border-top-right-radius: 4px;
height: max-content;
2021-01-03 20:09:31 +00:00
display: flex;
justify-content: space-between
}
2021-01-03 20:09:31 +00:00
.header > div {
margin: 0.3rem 0.5rem;
}
.body {
2021-01-03 20:09:31 +00:00
margin: 0.5rem;
display: grid;
2021-01-03 20:09:31 +00:00
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-areas:
2021-01-03 20:09:31 +00:00
"teams teams info" "players players info" "update update update";
2021-01-04 22:57:13 +00:00
grid-template-rows: minmax(5.75rem, min-content) minmax(4rem, min-content) minmax(4rem, min-content);
2021-01-03 20:09:31 +00:00
grid-row-gap: 0.5rem;
grid-column-gap: 0.75rem;
}
2020-12-30 06:31:19 +00:00
.teams {
grid-area: teams;
display: flex;
flex-direction: column;
justify-content: space-around;
min-width: 95%;
max-width: 100%;
width: min-content;
}
.team {
display: flex;
justify-content: space-between;
width: 100%;
2021-01-03 20:09:31 +00:00
margin: 0.25rem 0rem;
}
.team_name {
overflow: hidden;
2021-01-02 00:37:55 +00:00
text-overflow: ellipsis;
2021-01-01 21:24:02 +00:00
white-space: nowrap;
}
.info {
2020-12-30 06:31:19 +00:00
grid-area: info;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
background: #4f545c;
2021-01-03 20:09:31 +00:00
padding: 0.75rem 0rem;
border-radius: 4px;
}
.batting {
font-size: 10pt;
text-align: left;
height: max-content;
2021-01-03 20:09:31 +00:00
margin: 0.3rem 0.5rem;
}
.leagueoruser {
font-size: 10pt;
text-align: right;
height: max-content;
2021-01-03 20:09:31 +00:00
margin: 0.3rem 0.5rem;
}
.footer {
display: flex;
justify-content: space-between;
}
.outs {
display: flex;
justify-content: space-between;
align-items: center;
width: 60%;
}
.outs_title {
font-weight: bolder;
}
.outs_count {
display: flex;
}
.out {
height: 20px;
}
.team_name, .score {
font-size: 25px
}
.score {
2021-01-01 22:03:04 +00:00
background: var(--background-accent);
width: 40px;
2020-12-30 03:57:07 +00:00
min-width: 40px;
height: 40px;
border-radius: 20px;
2020-12-30 03:57:07 +00:00
margin-left: 10px;
}
.players {
2020-12-30 06:31:19 +00:00
grid-area: players;
2021-01-03 20:09:31 +00:00
display: grid;
grid-template-columns: auto minmax(0, 1fr);
grid-template-rows: auto auto;
grid-column-gap: 0.5rem;
margin-left: 0.3rem;
}
2021-01-03 20:09:31 +00:00
.players > div {
margin: 0.25rem 0rem;
}
.player_type {
text-align: end;
font-weight: bolder;
display: inline-block;
vertical-align: middle;
}
.player_name {
overflow: hidden;
2021-01-02 00:37:55 +00:00
text-overflow: ellipsis;
2021-01-01 21:24:02 +00:00
text-align: start;
white-space: nowrap;
2021-01-03 20:09:31 +00:00
width: 100%;
}
.update {
grid-area: update;
2021-01-03 20:09:31 +00:00
min-height: 3.5rem;
padding: 0rem 0.75rem;
2021-01-01 22:03:04 +00:00
height: 100%;
background: var(--background-secondary);
border-radius: 4px;
align-items: center;
display: flex;
2021-01-02 00:37:55 +00:00
justify-content: start;
}
2021-01-02 00:37:55 +00:00
.update_emoji {
2021-01-03 20:09:31 +00:00
margin-right: 0.75rem;
2021-01-02 01:06:33 +00:00
margin-left: 2px;
2021-01-02 00:37:55 +00:00
}
.update_text {
text-align: start;
}
.field {
display: flex;
justify-content: space-around;
align-items: center;
flex-direction: column;
}
2020-12-30 06:31:19 +00:00
.base {
height: 60px;
}
2020-12-30 06:31:19 +00:00
.base_2 {
margin-bottom: -25%
}
@media only screen and (max-device-width: 800px) {
2021-01-04 22:57:13 +00:00
.game {
font-size: 15pt;
}
2021-01-04 22:57:13 +00:00
.batting, .leagueoruser {
font-size: 14pt;
padding: 3px;
}
.team_name, .score {
2021-01-04 22:57:13 +00:00
font-size: 25px
}
.players {
font-size: 20px;
}
.update_emoji, .update_text {
display: inline;
font-size: 20px;
}
}