refactor(ui): refactored the CSS into a separate stylesheet
#14 [Subtask] CSS in separate stylesheet
This commit is contained in:
@@ -13,109 +13,6 @@
|
|||||||
<title>@title</title>
|
<title>@title</title>
|
||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")">
|
||||||
<link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
|
<link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-image: url("@routes.Assets.versioned("images/background.png")");
|
|
||||||
}
|
|
||||||
html, body {
|
|
||||||
height: 100vh;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
#sessions {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: flex-start;
|
|
||||||
align-items: center;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sessions a, h1, p {
|
|
||||||
color: white;
|
|
||||||
font-size: 40px;
|
|
||||||
font-family: Arial;
|
|
||||||
}
|
|
||||||
#ingame {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-end;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
#playercards {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: center;
|
|
||||||
height: 20%
|
|
||||||
}
|
|
||||||
#cardsplayed {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
height: 10%;
|
|
||||||
min-height: 10%
|
|
||||||
}
|
|
||||||
#playedcardplayer {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
|
||||||
#playedcardplayer p {
|
|
||||||
font-size: 12px;
|
|
||||||
height: 4%;
|
|
||||||
}
|
|
||||||
#playedcardplayer img {
|
|
||||||
height: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#firstCard {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
height: 20%;
|
|
||||||
width: 100%;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
#firstCardObject {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
margin-right: 4%;
|
|
||||||
}
|
|
||||||
#firstCardObject img{
|
|
||||||
height: 90%;
|
|
||||||
}
|
|
||||||
#firstCardObject p{
|
|
||||||
height: 10%;
|
|
||||||
font-size: 20px;
|
|
||||||
|
|
||||||
}
|
|
||||||
#trumpsuit {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
margin-left: 4%;
|
|
||||||
}
|
|
||||||
#nextPlayers {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
height: 0%;
|
|
||||||
}
|
|
||||||
#nextPlayers p {
|
|
||||||
margin-top: 0px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
#invisible {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
#selecttrumpsuit {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
#rules {
|
|
||||||
color: white;
|
|
||||||
font-size: 1.5em;
|
|
||||||
font-family: Arial;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -0,0 +1,102 @@
|
|||||||
|
body {
|
||||||
|
background-image: url("/assets/images/background.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
#sessions {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sessions a, h1, p {
|
||||||
|
color: white;
|
||||||
|
font-size: 40px;
|
||||||
|
font-family: Arial;
|
||||||
|
}
|
||||||
|
#ingame {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
#playercards {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
height: 20%
|
||||||
|
}
|
||||||
|
#cardsplayed {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
height: 10%;
|
||||||
|
min-height: 10%
|
||||||
|
}
|
||||||
|
#playedcardplayer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
#playedcardplayer p {
|
||||||
|
font-size: 12px;
|
||||||
|
height: 4%;
|
||||||
|
}
|
||||||
|
#playedcardplayer img {
|
||||||
|
height: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#firstCard {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
height: 20%;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
#firstCardObject {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
margin-right: 4%;
|
||||||
|
}
|
||||||
|
#firstCardObject img{
|
||||||
|
height: 90%;
|
||||||
|
}
|
||||||
|
#firstCardObject p{
|
||||||
|
height: 10%;
|
||||||
|
font-size: 20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
#trumpsuit {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
margin-left: 4%;
|
||||||
|
}
|
||||||
|
#nextPlayers {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
height: 0%;
|
||||||
|
}
|
||||||
|
#nextPlayers p {
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
#invisible {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
#selecttrumpsuit {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
#rules {
|
||||||
|
color: white;
|
||||||
|
font-size: 1.5em;
|
||||||
|
font-family: Arial;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user