Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
chore(frontend): datepicker dark theme added
johaven4430770d840a
diff --git a/frontend/src/styles/components/_datepicker.scss b/frontend/src/styles/components/_datepicker.scssnew file mode 100644index 00000000..0671fe61--- /dev/null+++ b/frontend/src/styles/components/_datepicker.scss@@ -0,0 +1,122 @@+/* Flatten datepicker shell in all themes (light + dark). */+.bs-datepicker {+ box-shadow: none;+}++.bs-datepicker > .bs-datepicker-container {+ padding: 0;+}++body.theme-light {+ .bs-datepicker.theme-dark-blue {+ border-radius: 6px;+ overflow: hidden;+ }+}++body.theme-dark {+ /* Apply a true dark surface only for datepickers using containerClass: 'theme-dark-blue'. */+ .bs-datepicker.theme-dark-blue {+ background: $dark-surface-bg;+ border-radius: 6px;+ overflow: hidden;++ .bs-datepicker-head {+ background-color: $dark-dialog-tab-hover-bg;++ button {+ color: $dark-dialog-tab-hover-color;++ &:hover {+ background-color: rgba($white, 0.14);+ }++ &:active {+ background-color: rgba($white, 0.22);+ }+ }+ }++ .bs-datepicker-body {+ background: $dark-surface-bg;+ border-color: $dark-surface-border;++ table {+ th {+ color: $sidebar-dark-icons-menu-color;+ }++ td {+ color: $dark-item-hover-color;++ span:hover:not(.disabled):not(.selected):not(.is-other-month) {+ background-color: rgba($primary, 0.16);+ }++ span.is-other-month,+ &.is-other-month span {+ color: rgba($dark-item-hover-color, 0.35);+ }++ span.disabled,+ &.disabled span {+ color: rgba($dark-item-disabled-color, 0.55);+ }++ &.is-highlighted:not(.disabled):not(.selected) span,+ span.is-highlighted:not(.disabled):not(.selected),+ &.is-active-other-month:not(.disabled):not(.selected) span,+ span.is-active-other-month:not(.disabled):not(.selected),+ &.active:not(.select-start):not(.disabled):before,+ &.in-range:not(.select-start):not(.disabled):before,+ span.active:not(.select-start):not(.disabled):before,+ span.in-range:not(.select-start):not(.disabled):before {+ background: rgba($primary, 0.2);+ }+ }++ &.days td {+ &.select-start + td.select-end:before,+ &.select-start + td.is-highlighted:before,+ &.active + td.is-highlighted:before,+ &.active + td.select-end:before,+ &.in-range + td.is-highlighted:before,+ &.in-range + td.select-end:before {+ background: rgba($primary, 0.2);+ }+ }+ }+ }++ .bs-datepicker-buttons {+ border-top-color: $dark-surface-border;+ }++ .bs-datepicker-predefined-btns button {+ background-color: $dark-dialog-tab-bg;++ &:hover {+ background-color: $dark-dialog-tab-hover-bg;+ }+ }++ .current-timedate {+ background-color: $dark-bg-theme;+ border-color: $dark-surface-border;+ color: $dark-item-hover-color;+ }++ .bs-timepicker-label {+ color: $dark-item-hover-color;+ }++ .bs-timepicker {+ input,+ .switch-time-format {+ background: $dark-bg-theme;+ border-color: $dark-surface-border;+ color: $dark-item-hover-color;+ }+ }+ }+}diff --git a/frontend/src/styles/components/index.scss b/frontend/src/styles/components/index.scssindex 0950fd64..fa50836d 100644--- a/frontend/src/styles/components/index.scss+++ b/frontend/src/styles/components/index.scss@@ -33,3 +33,4 @@@import 'theme_dark';@import 'modal';@import 'themes';+@import 'datepicker';diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scssindex fd8e15b4..4d2d7000 100644--- a/frontend/src/styles/index.scss+++ b/frontend/src/styles/index.scss@@ -4,6 +4,9 @@@import 'variables';// Load Bootstrap 5 (modular import to reduce bundle size)@import 'bootstrap-custom';+// used for date picker+@import 'ngx-bootstrap/datepicker/bs-datepicker.scss';+// local components@import 'components';// used for ngx-toastr@import 'ngx-toastr/toastr-bs5-alert';@@ -11,6 +14,4 @@@import '@angular/cdk/overlay-prebuilt.css';@import '@perfectmemory/ngx-contextmenu/src/assets/stylesheets/base.scss';// used for videogular-@import '@videogular/ngx-videogular/fonts/videogular.css';-// used for date picker-@import 'ngx-bootstrap/datepicker/bs-datepicker.scss';+@import '@videogular/ngx-videogular/fonts/videogular.css';\ No newline at end of file