Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Elijah Steres 2021-01-01 03:35:08 -05:00
commit bc39f66ffa
2 changed files with 60 additions and 1 deletions

View File

@ -44,7 +44,6 @@ def update_loop():
for game_time in game_times:
this_game, state, discrim_string = master_games_dic[game_time]
test_string = this_game.gamestate_display_full()
print(discrim_string)
state["leagueoruser"] = discrim_string
state["display_inning"] = this_game.inning #games need to be initialized with the following keys in state:
#is_league, bool

View File

@ -308,3 +308,63 @@ h2 {
.base_2 {
margin-bottom: -25%
}
@media only screen and (max-device-width: 800px) {
.container {
display: grid;
grid-template-columns: repeat(1, minmax(700px, 90%));
grid-template-rows: 400px;
grid-gap: 50px 30px; /*space between rows, then columns*/
align-items: center;
justify-items: center;
grid-auto-rows: 400px;
grid-auto-flow: row;
position: absolute;
left: 50%;
transform: translate(-50%, 0);
}
.emptyslot {
border: none;
border-radius: 15px;
align-self: stretch;
justify-self: stretch;
text-align: center;
color: white;
flex: 1;
}
.batting {
font-size: 15pt;
text-align: left;
height: max-content;
padding: 5px;
}
.leagueoruser {
font-size: 15pt;
text-align: right;
height: max-content;
padding: 5px;
}
.team_name, .score {
font-size: 23px
}
.players {
font-size: 20px;
grid-area: players;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
height: 100%;
padding-right: 50px;
}
.update_emoji, .update_text {
display: inline;
font-size: 20px;
}
}