index.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @import "./../common/abstracts/_mixin.scss";
  2. @import "./../common/abstracts/variable.scss";
  3. .wot-theme-dark {
  4. @include b(navbar) {
  5. background-color: $-dark-background;
  6. @include e(title) {
  7. color: $-dark-color;
  8. }
  9. @include e(text) {
  10. color: $-dark-color;
  11. }
  12. :deep(.wd-navbar__arrow) {
  13. color: $-dark-color;
  14. }
  15. }
  16. }
  17. @include b(navbar) {
  18. position: relative;
  19. text-align: center;
  20. user-select: none;
  21. height: $-navbar-height;
  22. line-height: $-navbar-height;
  23. background-color: $-navbar-background;
  24. box-sizing: content-box;
  25. @include e(content) {
  26. position: relative;
  27. height: 100%;
  28. width: 100%;
  29. }
  30. @include e(title) {
  31. max-width: 60%;
  32. height: 100%;
  33. margin: 0 auto;
  34. color: $-navbar-color;
  35. font-weight: $-navbar-title-font-weight;
  36. font-size: $-navbar-title-font-size;
  37. @include lineEllipsis();
  38. }
  39. @include e(text) {
  40. display: inline-block;
  41. vertical-align: middle;
  42. color: $-navbar-desc-font-color;
  43. }
  44. @include e(left, right, capsule) {
  45. position: absolute;
  46. top: 0;
  47. bottom: 0;
  48. font-size: $-navbar-desc-font-size;
  49. display: flex;
  50. align-items: center;
  51. padding: 0 12px;
  52. @include when(disabled) {
  53. opacity: $-navbar-disabled-opacity;
  54. }
  55. }
  56. @include e(left, capsule) {
  57. left: 0;
  58. }
  59. @include e(right) {
  60. right: 0;
  61. }
  62. @include edeep(arrow) {
  63. font-size: $-navbar-arrow-size;
  64. color: $-navbar-color;
  65. }
  66. @include when(border) {
  67. @include halfPixelBorder('bottom');
  68. }
  69. @include when(fixed) {
  70. position: fixed;
  71. top: 0;
  72. left: 0;
  73. width: 100%;
  74. z-index: 500;
  75. }
  76. }