index.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @import "./../common/abstracts/_mixin.scss";
  2. @import "./../common/abstracts/variable.scss";
  3. .wot-theme-dark {
  4. @include b(navbar-capsule) {
  5. &::before {
  6. border: 2rpx solid $-dark-border-color;
  7. }
  8. &::after {
  9. background: $-dark-border-color;
  10. }
  11. :deep(.wd-navbar-capsule__icon) {
  12. color: $-dark-color;
  13. }
  14. }
  15. }
  16. @include b(navbar-capsule) {
  17. position: relative;
  18. box-sizing: border-box;
  19. width: $-navbar-capsule-width;
  20. height: $-navbar-capsule-height;
  21. display: flex;
  22. align-items: center;
  23. justify-content: center;
  24. &::before {
  25. content: '';
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. width: 200%;
  30. height: 200%;
  31. transform: scale(0.5);
  32. transform-origin: 0 0;
  33. box-sizing: border-box;
  34. border-radius: calc($-navbar-capsule-border-radius * 2);
  35. border: 2rpx solid $-navbar-capsule-border-color;
  36. }
  37. &::after {
  38. content: '';
  39. display: block;
  40. position: absolute;
  41. left: 50%;
  42. top: 50%;
  43. transform: translateY(-50%);
  44. width: 1px;
  45. height: 36rpx;
  46. background: $-navbar-capsule-border-color;
  47. }
  48. &:empty {
  49. display: none;
  50. }
  51. @include edeep(icon) {
  52. flex: 1;
  53. position: relative;
  54. color: $-navbar-desc-font-color;
  55. font-size: $-navbar-capsule-icon-size;
  56. }
  57. }