Converted card width to css var
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.game-card {
|
.game-card {
|
||||||
width: 420px;
|
width: var(--card-width);
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-width-field {
|
.full-width-field {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.match-results {
|
.match-results {
|
||||||
width: 420px;
|
width: var(--card-width);
|
||||||
}
|
}
|
||||||
|
|
||||||
.match-results-text {
|
.match-results-text {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
.match-score {
|
.match-score {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
width: 420px;
|
width: var(--card-width);
|
||||||
}
|
}
|
||||||
|
|
||||||
.score-box {
|
.score-box {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
import { GameFacade } from '../store/game';
|
import { GameFacade } from '../store/game';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
/* You can add global styles to this file, and also import other style files */
|
/* You can add global styles to this file, and also import other style files */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--card-width: 420px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
html, body { height: 100%; }
|
html, body { height: 100%; }
|
||||||
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
|
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
|
||||||
|
|||||||
Reference in New Issue
Block a user