[Client] Refactor gameplay game style
- Order properties alphabetically - Use colors variables from global style and move gameplay colors into variables - Merge some common properties between selectors into a common declaration - Do some minor improvements
This commit is contained in:
parent
14747b53b7
commit
c0486c70f2
@ -1,15 +1,39 @@
|
|||||||
:root {
|
/* Common properties */
|
||||||
--grey-color: #5A5656;
|
|
||||||
--red-color: #BD1E1E;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
html {
|
||||||
background-color: black;
|
background-color: var(--game-black);
|
||||||
color: white;
|
color: var(--game-white);
|
||||||
}
|
}
|
||||||
|
|
||||||
.game_app {
|
.action_button, .score_title {
|
||||||
margin: 0;
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action_button, .scores, .summary {
|
||||||
|
font-family: "Titan One", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anwser_title, .emotion_and_culprit_choices_title, .introduction_text, .introduction_title, .interrogation_title, .results_title, .reveal_culprit_title, .score_title, .summary_title {
|
||||||
|
font-family: "Spicy Rice", serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.culprit_btn, .interrogation, .player_score, .question_answer, .questions_and_image, .reveal_culprit, .reveal_score, .scores, .summary, .summary_suspect, .suspect_picture[alt], .suspect, .suspects, .suspects_list {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.culprit_btn, .interrogation, .player_score, .question_answer, .questions_list, .questions_and_image, .reveal_culprit, .reveal_score, .reveal_and_scores, .scores, .summary, .summary_title, .suspect, .suspect_picture[alt], .suspects, .suspects_list, .summary_suspect {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.culprit_btn, .interrogation, .player_score, .question_answer, .questions_list, .reveal_score, .suspect_picture[alt], .suspect, .suspects, .suspects_list {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.culprit_btn, .player_score, .reveal_and_scores, .summary_title, .suspects, .suspects_list {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.culprit_btn, .player_score, .suspect {
|
||||||
|
flex-wrap: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.current_background {
|
.current_background {
|
||||||
@ -24,26 +48,54 @@ html {
|
|||||||
z-index: -9999;
|
z-index: -9999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action_button, .scores, .summary {
|
.emotion_and_culprit_choices_title, .interrogation_title, .introduction_title, .results_title, .reveal_culprit_title, .reveal_score, .score_title, .summary_title {
|
||||||
font-family: "Titan One", sans-serif;
|
color: var(--game-red);
|
||||||
}
|
}
|
||||||
|
|
||||||
.anwser_title, .emotion_and_culprit_choices_title, .introduction_text, .introduction_title, .interrogation_title, .results_title, .reveal_culprit_title, .score_title, .summary_title {
|
.emotion_and_culprit_choices_title, .results_title, .reveal_culprit_title, .score_title, .summary, .summary_title, .suspect_picture[alt] {
|
||||||
font-family: "Spicy Rice", serif;
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.explain_suspect_emotion_title, .interrogation_title, .introduction_title, .results_title, .reveal_culprit_title, .score_title, .suspect_answer {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game_app {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.interrogation, .question_answer, .questions_and_image, .reveal_and_scores, .reveal_culprit, .summary_suspect, .suspect_picture[alt], .suspects, .suspects_list {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.interrogation, .question_answer, .questions_list, .reveal_culprit, .scores, .summary, .summary_suspect, .suspect, .suspect_picture[alt] {
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.introduction_title, .results_title, .summary_title {
|
.introduction_title, .results_title, .summary_title {
|
||||||
font-size: 4em;
|
font-size: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal_culprit_explaination, .explain_suspect_emotion_description, .reveal_score, .suspect_emotion_chooser, .suspect_answer, .suspect_picture[alt] {
|
|
||||||
font-family: "Roboto Mono", sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.interrogation_title, .reveal_culprit_title, .reveal_score, .results_title, .score_title, .summary_title {
|
.interrogation_title, .reveal_culprit_title, .reveal_score, .results_title, .score_title, .summary_title {
|
||||||
margin: 0.25em;
|
margin: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.next_btn, .suspect_emotion_chooser {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.next_btn, #return_lobby_button {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.question_answer, .questions_list, .questions_and_image, .reveal_culprit, .suspect_picture[alt], .scores, .summary_suspect, .suspects, .suspects_list {
|
||||||
|
align-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal_culprit_explaination, .explain_suspect_emotion_description, .reveal_score, .suspect_emotion_chooser, .suspect_answer, .suspect_picture[alt] {
|
||||||
|
font-family: "Roboto Mono", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
.reveal_culprit_explaination, .question_button, .players_list, .reveal_culprit, .scores, .summary, .suspect, .suspect_emotion_chooser {
|
.reveal_culprit_explaination, .question_button, .players_list, .reveal_culprit, .scores, .summary, .suspect, .suspect_emotion_chooser {
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
}
|
}
|
||||||
@ -55,45 +107,26 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.suspect_picture[alt] {
|
.suspect_picture[alt] {
|
||||||
align-content: center;
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
flex-direction: column;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Buttons */
|
/* Buttons */
|
||||||
.action_button {
|
.action_button, .next_btn {
|
||||||
border-color: black;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 0.125em;
|
|
||||||
background-color: var(--red-color);
|
|
||||||
border-radius: var(--button-and-dialog-border-radius);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action_button {
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
min-width: 10em;
|
min-width: 10em;
|
||||||
padding-bottom: 0.5em;
|
|
||||||
padding-top: 0.5em;
|
|
||||||
padding-left: 1em;
|
|
||||||
padding-right: 1em;
|
|
||||||
overflow: hidden;
|
|
||||||
text-transform: uppercase;
|
|
||||||
transition: box-shadow 0.5s, transform 0.5s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.action_button:hover {
|
.action_button:hover {
|
||||||
box-shadow: 10px 10px 0px 0px black;
|
box-shadow: 10px 10px 0px 0px var(--game-black);
|
||||||
transform: translate(0.1em, 0.1em);
|
transform: translate(0.1em, 0.1em);
|
||||||
}
|
}
|
||||||
|
|
||||||
.next_btn {
|
.next_btn {
|
||||||
background-color: transparent;
|
fill: var(--game-red);
|
||||||
border: none;
|
|
||||||
cursor: pointer;
|
|
||||||
fill: var(--red-color);
|
|
||||||
height: 5em;
|
height: 5em;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
@ -112,87 +145,49 @@ html {
|
|||||||
max-width: 50vw;
|
max-width: 50vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.introduction_title {
|
|
||||||
color: var(--red-color);
|
|
||||||
font-weight: bold;
|
|
||||||
margin: 0;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.introduction_text {
|
.introduction_text {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.introduction_title {
|
||||||
|
margin: 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
/* Interrogation */
|
/* Interrogation */
|
||||||
.interrogation {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.interrogation_title {
|
|
||||||
color: var(--red-color);
|
|
||||||
font-size: 3em;
|
|
||||||
font-weight: bold;
|
|
||||||
max-width: calc(100vw - 2em);
|
|
||||||
}
|
|
||||||
|
|
||||||
.suspects {
|
|
||||||
align-content: center;
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.suspect {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ask_button {
|
.ask_button {
|
||||||
background-color: white;
|
background-color: var(--game-white);
|
||||||
color: black;
|
color: var(--game-black);
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#interrogation_suspect_previous_btn {
|
|
||||||
margin-right: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.anwser_title {
|
.anwser_title {
|
||||||
font-size: 2.5em;
|
font-size: 2.5em;
|
||||||
margin: 0.25em;
|
margin: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.interrogation_title {
|
||||||
|
font-size: 3em;
|
||||||
|
max-width: calc(100vw - 2em);
|
||||||
|
}
|
||||||
|
|
||||||
.suspect_answer {
|
.suspect_answer {
|
||||||
font-size: 1.375em;
|
font-size: 1.375em;
|
||||||
font-weight: bold;
|
margin-bottom: 1em;
|
||||||
margin-left: 0.25em;
|
margin-left: 0.25em;
|
||||||
margin-right: 0.25em;
|
margin-right: 0.25em;
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
margin-bottom: 1em;
|
}
|
||||||
|
|
||||||
|
#interrogation_suspect_previous_btn {
|
||||||
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Emotion and culprit choices */
|
/* Emotion and culprit choices */
|
||||||
.culprit_btn {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.culprit_icon {
|
.culprit_icon {
|
||||||
fill: white;
|
fill: var(--game-white);
|
||||||
height: 1em;
|
height: 1em;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
@ -204,164 +199,46 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.culprit_btn_checked {
|
.culprit_btn_checked {
|
||||||
background-color: green;
|
background-color: var(--game-green);
|
||||||
}
|
|
||||||
|
|
||||||
.suspect_emotion_chooser {
|
|
||||||
background-color: var(--grey-color);
|
|
||||||
border: none;
|
|
||||||
border-radius: var(--button-and-dialog-border-radius);
|
|
||||||
color: white;
|
|
||||||
font-size: 1em;
|
|
||||||
padding: 0.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.emotion_and_culprit_choices_title {
|
.emotion_and_culprit_choices_title {
|
||||||
color: var(--red-color);
|
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
margin: 0.5em;
|
margin: 0.5em;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.question_button {
|
.question_button {
|
||||||
background-color: var(--grey-color);
|
background-color: var(--game-grey);
|
||||||
border-radius: 2em;
|
border-radius: 2em;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.questions_and_image {
|
.questions_and_image {
|
||||||
align-content: center;
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
}
|
}
|
||||||
|
|
||||||
.questions_list {
|
.questions_list {
|
||||||
align-content: center;
|
|
||||||
align-items: normal;
|
align-items: normal;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.question_answer {
|
.suspect_emotion_chooser {
|
||||||
align-content: center;
|
background-color: var(--game-grey);
|
||||||
align-items: center;
|
border-radius: var(--button-and-dialog-border-radius);
|
||||||
display: flex;
|
color: var(--game-white);
|
||||||
flex-direction: column;
|
font-size: 1em;
|
||||||
flex-wrap: wrap;
|
padding: 0.5em;
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Results and scores */
|
/* Results and scores */
|
||||||
.results_title {
|
|
||||||
color: var(--red-color);
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 4.5em;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.summary {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scores {
|
|
||||||
align-content: center;
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
min-width: 15em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reveal_and_scores {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: space-around;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reveal_culprit_title {
|
|
||||||
color: var(--red-color);
|
|
||||||
font-size: 2em;
|
|
||||||
font-weight: bold;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.score_title {
|
|
||||||
color: var(--red-color);
|
|
||||||
font-size: 2em;
|
|
||||||
font-weight: bold;
|
|
||||||
text-align: center;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reveal_score {
|
|
||||||
align-items: center;
|
|
||||||
color: var(--red-color);
|
|
||||||
display: flex;
|
|
||||||
font-size: 2em;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.summary_title {
|
|
||||||
color: var(--red-color);
|
|
||||||
display: flex;
|
|
||||||
font-size: 4em;
|
|
||||||
flex-direction: row;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.suspects_list {
|
|
||||||
align-content: center;
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
margin: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#return_lobby_button {
|
|
||||||
background-color: transparent;
|
|
||||||
border: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.summary_suspect {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
align-content: center;
|
|
||||||
flex-direction: column;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
margin-left: 1.5em;
|
|
||||||
margin-right: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reveal_culprit_explaination {
|
|
||||||
font-size: 1.25em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.explain_suspect_emotion_title {
|
|
||||||
font-size: 1.75em;
|
|
||||||
font-weight: bold;
|
|
||||||
margin: 0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.explain_suspect_emotion_description {
|
.explain_suspect_emotion_description {
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.player_score {
|
.explain_suspect_emotion_title {
|
||||||
align-items: center;
|
font-size: 1.75em;
|
||||||
display: flex;
|
margin: 0.5em;
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.player_name_and_score {
|
.player_name_and_score {
|
||||||
@ -370,10 +247,39 @@ html {
|
|||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal_culprit {
|
.results_title {
|
||||||
align-content: center;
|
font-size: 4.5em;
|
||||||
align-items: center;
|
}
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
.reveal_and_scores {
|
||||||
flex-wrap: wrap;
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal_culprit_explaination {
|
||||||
|
font-size: 1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal_culprit_title, .reveal_score, .score_title {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scores {
|
||||||
|
min-width: 15em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary_suspect {
|
||||||
|
margin-left: 1.5em;
|
||||||
|
margin-right: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary_title {
|
||||||
|
font-size: 4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.suspects_list {
|
||||||
|
margin: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#return_lobby_button {
|
||||||
|
border: transparent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user