popper/src/style.scss

136 lines
2.1 KiB
SCSS

:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
#app {
width: 100%;
}
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
.game {
background-color: #ddd;
position: relative;
margin: auto;
&-field {
overflow: hidden;
position: absolute;
top: 0;
z-index: 1;
width: 100%;
bottom: 0;
}
&-score {
display: flex;
width: 100%;
justify-content: space-between;
position: absolute;
bottom: -3rem;
& > span {
display: flex;
flex-direction: column;
}
}
&-pointer {
position: absolute;
z-index: 2;
width: 100px;
height: 100px;
&-arrow {
position: absolute;
left: calc(50% - 10px);
top: -10px;
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid black;
}
}
&-over {
position: absolute;
background-color: rgb(0 0 0 / 62%);
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
font-size: 2rem;
pointer-events: none;
z-index: 4;
p:first-of-type {
margin-bottom: 0;
font-size: 2.5rem;
}
small {
color: rgb(9, 255, 0);
}
}
&-object {
position: absolute;
border-radius: 100%;
&--color {
&-1 {
background-color: #d45d5d;
}
&-2 {
background-color: #12b944;
}
&-3 {
background-color: #1574b4;
}
&-4 {
background-color: #bc3fe2;
}
&-5 {
background-color: #3fc1e2;
}
}
}
}