Remove "framework"

This commit is contained in:
schmelczerandras 2020-11-17 20:52:59 +01:00
parent b45bdb18a0
commit dc86d30eb2
72 changed files with 359 additions and 333 deletions

View file

@ -0,0 +1,9 @@
html[animations='off'] {
&,
*,
*::before,
*::after {
transition: none !important;
animation: none !important;
}
}

View file

@ -0,0 +1,5 @@
export const turnOnAnimations = () =>
document.body.parentElement.setAttribute('animations', 'on');
export const turnOffAnimations = () =>
document.body.parentElement.setAttribute('animations', 'off');

View file

@ -0,0 +1,5 @@
@mixin in-dark-mode() {
html[theme='dark'] {
@content;
}
}

View 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');

View file

@ -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;

View file

@ -1,4 +1,6 @@
@import '../framework/framework';
@use 'mixins' as *;
@use 'dark-mode/dark-mode' as *;
@use 'animations/animations' as *;
:root {
--transition-time: 250ms;