dark.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // SCSS variables
  2. $color-main-text: #d8d8d8;
  3. $color-main-background: #181818;
  4. $color-background-hover: lighten($color-main-background, 4%);
  5. $color-background-dark: lighten($color-main-background, 7%);
  6. $color-background-darker: lighten($color-main-background, 14%);
  7. $color-placeholder-light: lighten($color-main-background, 10%);
  8. $color-placeholder-dark: lighten($color-main-background, 20%);
  9. $color-text-maxcontrast: darken($color-main-text, 30%);
  10. $color-text-light: darken($color-main-text, 10%);
  11. $color-text-lighter: darken($color-main-text, 20%);
  12. $color-loading-light: #777;
  13. $color-loading-dark: #ccc;
  14. $color-box-shadow: transparentize(darken($color-main-background, 70%), 0.5);
  15. $color-border: lighten($color-main-background, 7%);
  16. $color-border-dark: lighten($color-main-background, 14%);
  17. $image-logo: url('../../../core/img/logo/logo.svg?v=1');
  18. $image-logoheader: url('../../../core/img/logo/logo.svg?v=1');
  19. #app-navigation > ul > li > a:first-child,
  20. #app-navigation > ul > li > ul > li > a:first-child,
  21. #expanddiv a,
  22. .activity-section .activity-icon.monochrome {
  23. & > img,
  24. :not(.avatardiv) > img {
  25. filter: invert(100%);
  26. }
  27. }
  28. #navigation #apps li a,
  29. #body-settings #content-vue.app-settings .app-image-icon,
  30. #body-settings #content-vue.app-settings #app-sidebar #app-details-view h2 {
  31. svg {
  32. filter: invert(100%);
  33. }
  34. }
  35. // Otherwise icon-more gets inverted via function
  36. #appmenu .icon-more-white {
  37. filter: invert(100%);
  38. }
  39. // since svg icons are inverted, revert to white for the header
  40. .header-right > * {
  41. >[class^='icon-'] {
  42. filter: invert(100%);
  43. }
  44. }
  45. .bubble,
  46. .app-navigation-entry-menu,
  47. .popovermenu,
  48. .popover__menu {
  49. li {
  50. > button,
  51. > a,
  52. > .menuitem, > .popover__menuitem {
  53. > img {
  54. filter: invert(100%);
  55. }
  56. }
  57. }
  58. }
  59. .bubble,
  60. .app-navigation-entry-menu,
  61. .popovermenu,
  62. #header .menu {
  63. border: 1px solid var(--color-border);
  64. }
  65. .popover[x-placement^='top'] .popover__arrow {
  66. border-top-color: var(--color-border);
  67. }
  68. .popover[x-placement^='bottom'] .popover__arrow {
  69. border-bottom-color: var(--color-border);
  70. }
  71. .popover[x-placement^='left'] .popover__arrow {
  72. border-left-color: var(--color-border);
  73. }
  74. .popover[x-placement^='right'] .popover__arrow {
  75. border-right-color: var(--color-border);
  76. }
  77. .popover .popover__inner {
  78. border: 1px solid var(--color-border);
  79. }
  80. // Prevent slideshow icons from going dark
  81. #slideshow {
  82. [class^='icon-'], [class*=' icon-']{
  83. filter: invert(100%);
  84. }
  85. }
  86. input[type=checkbox] {
  87. &.checkbox {
  88. &:checked + label:before {
  89. background-image: url('../../../core/img/actions/checkbox-mark-dark.svg');
  90. }
  91. &:indeterminate + label:before {
  92. background-image: url('../../../core/img/actions/checkbox-mixed-dark.svg');
  93. }
  94. }
  95. }