feat: rework style imports

This commit is contained in:
Dominik Pschenitschni 2021-10-18 14:17:34 +02:00
parent a0ca6bb8fb
commit 1f5283d548
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
18 changed files with 67 additions and 65 deletions

View file

@ -117,3 +117,7 @@ export default defineComponent({
}, },
}) })
</script> </script>
<style lang="scss">
@import '@/styles/global.scss';
</style>

View file

@ -23,8 +23,6 @@ import {formatDate, formatDateShort, formatDateLong, formatDateSince} from '@/he
// @ts-ignore // @ts-ignore
import {VERSION} from './version.json' import {VERSION} from './version.json'
// Add CSS
import './styles/vikunja.scss'
// Notifications // Notifications
import Notifications from '@kyvg/vue3-notification' import Notifications from '@kyvg/vue3-notification'

View file

@ -1,25 +0,0 @@
@import 'base/all';
@import 'attachments';
@import 'gantt';
@import 'labels';
@import 'list';
@import 'reminders';
@import 'switch-view';
@import 'task';
@import 'taskRelations';
@import 'tasks';
@import 'teams';
@import 'migrator';
@import 'comments';
@import 'table-view';
@import 'kanban';
@import 'list-backgrounds';
@import 'color-picker';
@import 'namespaces';
@import 'legal';
@import 'keyboard-shortcuts';
@import 'api-config';
@import 'datepicker';
@import 'notifications';
@import 'quick-actions';

View file

@ -0,0 +1,26 @@
@import "base";
@import "attachments";
@import "gantt";
@import "tooltip";
@import "labels";
@import "list";
@import "reminders";
@import "switch-view";
@import "task";
@import "taskRelations";
@import "tasks";
@import "teams";
@import "migrator";
@import "comments";
@import "table-view";
@import "kanban";
@import "list-backgrounds";
@import "color-picker";
@import "namespaces";
@import "legal";
@import "keyboard-shortcuts";
@import "api-config";
@import "datepicker";
@import "notifications";
@import "quick-actions";

View file

@ -2,4 +2,3 @@
@import 'fancycheckbox'; @import 'fancycheckbox';
@import 'multiselect'; @import 'multiselect';
@import 'scrollbars'; @import 'scrollbars';
@import 'tooltip';

18
src/styles/global.scss Normal file
View file

@ -0,0 +1,18 @@
@import "fonts";
@import "transitions";
@import "animations";
// This imports are the same as in "bulma/bulma.sass"
// with the expeption of the bulma utilities.
// They are imported globally in variables.scss
@import "bulma/sass/base/_all";
@import "bulma/sass/elements/_all";
@import "bulma/sass/form/_all";
@import "bulma/sass/components/_all";
@import "bulma/sass/grid/_all";
@import "bulma/sass/helpers/_all";
@import "bulma/sass/layout/_all";
@import "theme";
@import "components";

View file

@ -1,11 +0,0 @@
@import 'theme';
@import 'content';
@import 'form';
@import 'link-share';
@import 'loading';
@import 'navigation';
@import 'notification';
@import 'offline';
@import 'update-notification';
@import 'background';

View file

@ -0,0 +1,11 @@
@import "theme";
@import "content";
@import "form";
@import "link-share";
@import "loading";
@import "navigation";
@import "notification";
@import "offline";
@import "update-notification";
@import "background";

View file

@ -1,18 +1,3 @@
// bulma utilities are imported in variables.scss
@import "bulma/sass/utilities/_all";
@import "bulma/sass/base/_all";
@import "bulma/sass/elements/_all";
@import "bulma/sass/form/_all";
@import "bulma/sass/components/_all";
@import "bulma/sass/grid/_all";
@import "bulma/sass/helpers/_all";
@import "bulma/sass/layout/_all";
@import "fonts";
@import "variables-derived";
*, *,
*:hover, *:hover,
*:active, *:active,

View file

@ -1,2 +0,0 @@
// Variables that are derived from bulma variables need to be included after them
$mobile: math.div($tablet, 2);

View file

@ -1,2 +0,0 @@
@import 'animations';
@import 'transitions';

View file

@ -4,3 +4,9 @@
// the default values get overwritten by the definitions above // the default values get overwritten by the definitions above
@import "bulma/sass/utilities/_all"; @import "bulma/sass/utilities/_all";
// this is needed so that the shared form variables are globally defined aswell
@import "bulma/sass/form/shared";
// since $tablet is defined by bulma we can just define it after importing the utilities
$mobile: math.div($tablet, 2);

View file

@ -1,5 +1,3 @@
@import 'colors';
$white: #fff; $white: #fff;
$black: hsl(0, 0%, 4%) !default; $black: hsl(0, 0%, 4%) !default;
$orange: #ff851b; $orange: #ff851b;

View file

@ -1,3 +0,0 @@
@import 'theme/all';
@import 'utilities/all';
@import 'components/all';