mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 17:37:21 +00:00
Views: replace css files with scss modules
This commit is contained in:
parent
f1a723653d
commit
2353700694
17 changed files with 147 additions and 141 deletions
49
src/style/App.module.scss
Normal file
49
src/style/App.module.scss
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
.app {
|
||||
min-height: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
color: var(--main-color);
|
||||
background-color: var(--bg-color);
|
||||
|
||||
/* */
|
||||
&.home, &.games, &.themes {
|
||||
padding: var(--inner-padding);
|
||||
|
||||
/* Fix for Jumping Scrollbar Issue */
|
||||
@media (min-width: 800px) {
|
||||
padding-left: calc(100vw - 100% + var(--inner-padding));
|
||||
}
|
||||
}
|
||||
|
||||
/* Player view */
|
||||
&.play, &.focus {
|
||||
height: 100%;
|
||||
max-height: 100dvh;
|
||||
|
||||
@media (min-width: 800px) {
|
||||
& > main {
|
||||
max-height: 90%;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* */
|
||||
& > main {
|
||||
flex: 1 1 auto;
|
||||
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
@media (min-width: 800px) {
|
||||
margin: 5vh 0;
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -15,34 +15,3 @@ html, body {
|
|||
#root {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.app {
|
||||
min-height: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
color: var(--main-color);
|
||||
background-color: var(--bg-color);
|
||||
|
||||
/* Fix for Jumping Scrollbar Issue */
|
||||
@media (min-width: 800px) {
|
||||
padding-left: calc(100vw - 100%);
|
||||
}
|
||||
|
||||
& > main {
|
||||
flex: 1 1 auto;
|
||||
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
@media (min-width: 800px) {
|
||||
margin: 5vh 0;
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue