From 172f96866de68758607444ccd262e46d8e38957e Mon Sep 17 00:00:00 2001 From: korelstar Date: Sun, 2 Oct 2022 15:31:12 +0200 Subject: remove SCSS --- css/app-navigation.scss | 38 --------------------- css/global.css | 10 ++++++ css/global.scss | 2 -- css/notes.css | 52 +++++++++++++++++++++++++++++ css/notes.scss | 8 ----- css/print.scss | 23 ------------- img/folder-empty.svg | 1 - img/folder.svg | 1 - img/notes-dark.svg | 1 + img/notes-trans.svg | 2 +- img/recent.svg | 1 - src/components/Dashboard.vue | 2 +- src/components/NavigationCategoriesItem.vue | 22 ++++++++++-- src/components/NavigationList.vue | 1 - src/components/Note.vue | 28 +++++++++++++--- src/components/Sidebar.vue | 15 +++++++-- 16 files changed, 120 insertions(+), 87 deletions(-) delete mode 100644 css/app-navigation.scss create mode 100644 css/global.css delete mode 100644 css/global.scss create mode 100644 css/notes.css delete mode 100644 css/notes.scss delete mode 100644 css/print.scss delete mode 100644 img/folder-empty.svg delete mode 100644 img/folder.svg create mode 100644 img/notes-dark.svg delete mode 100644 img/recent.svg diff --git a/css/app-navigation.scss b/css/app-navigation.scss deleted file mode 100644 index 8a0595d1..00000000 --- a/css/app-navigation.scss +++ /dev/null @@ -1,38 +0,0 @@ -.app-navigation-entry.category-header:not(.app-navigation-entry--opened) .app-navigation-entry__title { - font-weight: bold; -} - -#app-navigation > ul > li.app-navigation-caption.caption-item { - padding: 0; - pointer-events: inherit; -} - -#app-navigation > ul > li.app-navigation-caption.timeslot { - color: var(--color-text-maxcontrast); -} - -/* icons for sidebar */ -.icon-files { - @include icon-color('folder', 'notes', $color-black); -} - -.icon-emptyfolder { - @include icon-color('folder-empty', 'notes', $color-black); -} - -.icon-recent { - @include icon-color('recent', 'notes', $color-black); -} - -.app-navigation-entry__utils .action-item { - visibility: hidden; -} - -li.actionsOpen .app-navigation-entry__utils .action-item, -li.app-navigation-entry--deleted .app-navigation-entry__utils .action-item, -li.active .app-navigation-entry__utils .action-item, -li:hover .app-navigation-entry__utils .action-item, -li:focus .app-navigation-entry__utils .action-item { - visibility: visible; -} - diff --git a/css/global.css b/css/global.css new file mode 100644 index 00000000..80a846b2 --- /dev/null +++ b/css/global.css @@ -0,0 +1,10 @@ +.icon-notes { + background-image: url(../img/notes-dark.svg); + filter: var(--background-invert-if-dark); +} + +.icon-notes-trans { + background-image: url(../img/notes-trans.svg); + filter: var(--background-invert-if-dark); +} + diff --git a/css/global.scss b/css/global.scss deleted file mode 100644 index 0dcd63a4..00000000 --- a/css/global.scss +++ /dev/null @@ -1,2 +0,0 @@ -@include icon-black-white('notes', 'notes', 1); -@include icon-black-white('notes-trans', 'notes', 1); diff --git a/css/notes.css b/css/notes.css new file mode 100644 index 00000000..520192ff --- /dev/null +++ b/css/notes.css @@ -0,0 +1,52 @@ +/* workaround for https://github.com/nextcloud/nextcloud-vue/issues/1384 */ +body { + min-height: 100%; + height: auto; +} + +/* App Navigation fixes */ +.app-navigation-entry.category-header:not(.app-navigation-entry--opened) .app-navigation-entry__title { + font-weight: bold; +} + +#app-navigation > ul > li.app-navigation-caption.caption-item { + padding: 0; + pointer-events: inherit; +} + +.app-navigation-entry__utils .action-item { + visibility: hidden; +} + +li.actionsOpen .app-navigation-entry__utils .action-item, +li.app-navigation-entry--deleted .app-navigation-entry__utils .action-item, +li.active .app-navigation-entry__utils .action-item, +li:hover .app-navigation-entry__utils .action-item, +li:focus .app-navigation-entry__utils .action-item { + visibility: visible; +} + +@media print { + #header, + .app-navigation, + #note-container .action-buttons, + #note-container .upload-button { + display: none !important; + } + + .content { + display: block; + padding: 0; + color: #000; + } + + #note-container .note-editor, + #note-container .note-preview { + padding: 0 !important; + font-size: 10pt !important; + } + + .app-content { + margin-left: 0 !important; + } +} diff --git a/css/notes.scss b/css/notes.scss deleted file mode 100644 index 02f6f1db..00000000 --- a/css/notes.scss +++ /dev/null @@ -1,8 +0,0 @@ -@import 'app-navigation'; -@import 'print'; - -// workaround for https://github.com/nextcloud/nextcloud-vue/issues/1384 -body { - min-height: 100%; - height: auto; -} diff --git a/css/print.scss b/css/print.scss deleted file mode 100644 index 2a473ec6..00000000 --- a/css/print.scss +++ /dev/null @@ -1,23 +0,0 @@ -@media print { - #header, - .app-navigation, - #note-container .action-buttons { - display: none !important; - } - - .content { - display: block; - padding: 0; - color: #000; - } - - #note-container .note-editor, - #note-container .note-preview { - padding: 0 !important; - font-size: 10pt !important; - } - - .app-content { - margin-left: 0 !important; - } -} diff --git a/img/folder-empty.svg b/img/folder-empty.svg deleted file mode 100644 index 6fefe1d2..00000000 --- a/img/folder-empty.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/img/folder.svg b/img/folder.svg deleted file mode 100644 index b58c3e23..00000000 --- a/img/folder.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/img/notes-dark.svg b/img/notes-dark.svg new file mode 100644 index 00000000..beaba9e4 --- /dev/null +++ b/img/notes-dark.svg @@ -0,0 +1 @@ + diff --git a/img/notes-trans.svg b/img/notes-trans.svg index 1850accb..1163eb6e 100644 --- a/img/notes-trans.svg +++ b/img/notes-trans.svg @@ -1 +1 @@ - + diff --git a/img/recent.svg b/img/recent.svg deleted file mode 100644 index cb681fb7..00000000 --- a/img/recent.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index 71cd4dc7..39ff0c06 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -104,7 +104,7 @@ export default { } .note-item-favorite { - background: var(--icon-star-dark-FC0, var(--icon-star-dark-fc0)); + background: var(--icon-starred-yellow, var(--icon-star-dark-FC0, var(--icon-star-dark-fc0))); } .note-item { diff --git a/src/components/NavigationCategoriesItem.vue b/src/components/NavigationCategoriesItem.vue index 28c0f396..67e134a6 100644 --- a/src/components/NavigationCategoriesItem.vue +++ b/src/components/NavigationCategoriesItem.vue @@ -1,18 +1,18 @@