dark.scss 2.5 KB

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