From 172f96866de68758607444ccd262e46d8e38957e Mon Sep 17 00:00:00 2001 From: korelstar Date: Sun, 2 Oct 2022 15:31:12 +0200 Subject: [PATCH] remove SCSS --- css/global.css | 10 +++++ css/global.scss | 2 - css/{app-navigation.scss => notes.css} | 48 +++++++++++++-------- 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 ++++++- 15 files changed, 99 insertions(+), 66 deletions(-) create mode 100644 css/global.css delete mode 100644 css/global.scss rename css/{app-navigation.scss => notes.css} (54%) 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/global.css b/css/global.css new file mode 100644 index 000000000..80a846b21 --- /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 0dcd63a46..000000000 --- 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/app-navigation.scss b/css/notes.css similarity index 54% rename from css/app-navigation.scss rename to css/notes.css index 8a0595d14..520192ff2 100644 --- a/css/app-navigation.scss +++ b/css/notes.css @@ -1,3 +1,10 @@ +/* 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; } @@ -7,23 +14,6 @@ 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; } @@ -36,3 +26,27 @@ 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 02f6f1db0..000000000 --- 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 2a473ec65..000000000 --- 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 6fefe1d27..000000000 --- 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 b58c3e232..000000000 --- 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 000000000..beaba9e4c --- /dev/null +++ b/img/notes-dark.svg @@ -0,0 +1 @@ + diff --git a/img/notes-trans.svg b/img/notes-trans.svg index 1850accbb..1163eb6e5 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 cb681fb70..000000000 --- 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 71cd4dc7c..39ff0c06e 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 28c0f396c..67e134a60 100644 --- a/src/components/NavigationCategoriesItem.vue +++ b/src/components/NavigationCategoriesItem.vue @@ -1,18 +1,18 @@