Remove "framework"
This commit is contained in:
parent
b45bdb18a0
commit
dc86d30eb2
72 changed files with 359 additions and 333 deletions
9
src/style/animations/animations.scss
Normal file
9
src/style/animations/animations.scss
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
html[animations='off'] {
|
||||
&,
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
transition: none !important;
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
5
src/style/animations/animations.ts
Normal file
5
src/style/animations/animations.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export const turnOnAnimations = () =>
|
||||
document.body.parentElement.setAttribute('animations', 'on');
|
||||
|
||||
export const turnOffAnimations = () =>
|
||||
document.body.parentElement.setAttribute('animations', 'off');
|
||||
5
src/style/dark-mode/dark-mode.scss
Normal file
5
src/style/dark-mode/dark-mode.scss
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@mixin in-dark-mode() {
|
||||
html[theme='dark'] {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
8
src/style/dark-mode/dark-mode.ts
Normal file
8
src/style/dark-mode/dark-mode.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export const isSystemLevelDarkModeEnabled = (): boolean =>
|
||||
matchMedia && matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
|
||||
export const turnOnDarkMode = () =>
|
||||
document.body.parentElement.setAttribute('theme', 'dark');
|
||||
|
||||
export const turnOnLightMode = () =>
|
||||
document.body.parentElement.setAttribute('theme', 'light');
|
||||
|
|
@ -1,4 +1,16 @@
|
|||
@import '../framework/framework';
|
||||
$breakpoint-width: 925px !default;
|
||||
|
||||
@mixin on-small-screen() {
|
||||
@media (max-width: $breakpoint-width - 1px) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin on-large-screen() {
|
||||
@media (min-width: $breakpoint-width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin center-children() {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
@import '../framework/framework';
|
||||
@use 'mixins' as *;
|
||||
@use 'dark-mode/dark-mode' as *;
|
||||
@use 'animations/animations' as *;
|
||||
|
||||
:root {
|
||||
--transition-time: 250ms;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue