Skip to content

Commit

Permalink
Merge pull request #17 from edumudu/feature/#16
Browse files Browse the repository at this point in the history
#16 use grid and fixes game info
  • Loading branch information
edumudu authored Jul 13, 2020
2 parents 836ed3d + 45957d8 commit 04788d9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
19 changes: 19 additions & 0 deletions client/src/scss/geral.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ body {
font-family: 'Nunito', sans-serif;
color: #ebebeb;
background-color: $bg-color;

display: grid;
grid-template-rows: $game_info_height auto;
}

a {
Expand All @@ -25,6 +28,22 @@ a {
justify-content: center;
perspective: 1000px;
padding: 30px 30px 0;
height: calc(100vh - #{$game_info_height});
overflow-y: auto;

// For mozila
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.5) transparent;

&::-webkit-scrollbar {
background-color: transparent;
width: 3px;
}

&::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: rgba(255, 255, 255, 0.5);
}
}

.card {
Expand Down
5 changes: 4 additions & 1 deletion client/src/scss/scoreboard.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#game-info {
position: relative;
z-index: 1;
display: flex;
justify-content: space-between;
align-items: center;
padding: 30px 80px 0;
padding: 30px 80px 30px;
box-shadow: 0 0 4px #fff;

#restart-button {
display: none;
Expand Down
4 changes: 3 additions & 1 deletion client/src/scss/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ $card-bg: #0b0b0b;
$green: #1ddf16;
$success: #00b894;
$danger: #d63031;
$info: #3498db;
$info: #3498db;

$game_info_height: 134px;

0 comments on commit 04788d9

Please sign in to comment.