Fixed vars.scss being imported multiple times (#528)

- Seperated breakpoints into a different file
This commit is contained in:
Shiba 2021-12-21 04:27:25 +03:00 committed by GitHub
parent 9a0fde3f33
commit a196f7a3b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 20 additions and 20 deletions

View file

@ -1,6 +1,7 @@
@charset "utf-8";
@import 'init/reset';
@import 'init/breakpoints';
@import 'init/vars';
@import 'init/mixins';
@import 'init/gui';

View file

@ -5,7 +5,7 @@
}
100% {
margin-top: $spacing-vertical;
margin-top: var(--spacing-vertical);
opacity: 1;
}
}

View file

@ -1,4 +1,4 @@
@import '../init/vars';
@import '../init/breakpoints';
$thumbnailWidth: 1.5rem;
$thumbnailWidthSmall: 1rem;

View file

@ -1,4 +1,4 @@
@import '../init/vars';
@import '../init/breakpoints';
.emoteSelector {
animation: menu-animate-in var(--animation-duration) var(--animation-style);

View file

@ -1,4 +1,4 @@
@import '../init/vars.scss';
@import '../init/breakpoints';
.filePrice {
position: relative;

View file

@ -1,4 +1,4 @@
@import '../init/vars';
@import '../init/breakpoints';
.stickerSelector {
animation: menu-animate-in var(--animation-duration) var(--animation-style);

View file

@ -1,4 +1,4 @@
@import '../init/vars';
@import '../init/breakpoints';
.contains_view_count {
// accommodating for large view counts on channel overview

View file

@ -1,4 +1,4 @@
@import '../init/vars';
@import '../init/breakpoints';
.claimPreviewReset {
display: flex;

View file

@ -1,4 +1,4 @@
@import '../init/vars';
@import '../init/breakpoints';
.browserNotificationsBanner {
display: flex;

View file

@ -0,0 +1,5 @@
$breakpoint-xxsmall: 450px;
$breakpoint-xsmall: 600px;
$breakpoint-small: 900px;
$breakpoint-medium: 1150px;
$breakpoint-large: 1600px;

View file

@ -228,7 +228,7 @@ textarea {
display: flex;
.column__item:not(:first-child) {
padding-left: $spacing-width * 2/3;
padding-left: calc(var(--spacing-width) * 2 / 3);
flex: 1;
}
@ -361,11 +361,11 @@ textarea {
border: 3px solid white;
&.qr-code--right-padding {
margin-right: $spacing-vertical * 2/3;
margin-right: calc(var(--spacing-vertical) * 2 / 3);
}
&.qr-code--top-padding {
margin-top: $spacing-vertical * 2/3;
margin-top: calc(var(--spacing-vertical) * 2 / 3);
}
}

View file

@ -1,12 +1,4 @@
// Both of these should probably die and become variables as well
$spacing-vertical: 2rem;
$spacing-width: 36px;
$breakpoint-xxsmall: 450px;
$breakpoint-xsmall: 600px;
$breakpoint-small: 900px;
$breakpoint-medium: 1150px;
$breakpoint-large: 1600px;
@import 'breakpoints';
:root {
--border-radius: 10px;
@ -24,6 +16,8 @@ $breakpoint-large: 1600px;
--spacing-l: 2rem;
--spacing-xl: 3rem;
--spacing-xxl: 4rem;
--spacing-vertical: 2rem;
--spacing-width: 36px;
// Aspect ratio
--aspect-ratio-bluray: 41.6666666667%; // 12:5