style.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. .header {
  2. color: rgba(var(--colors-primary-fill), 0.8);
  3. display: flex;
  4. align-items: center;
  5. justify-content: center;
  6. padding: 0 20px;
  7. transition: top .3s ease;
  8. top: var(--header-top);
  9. backdrop-filter: blur(4px);
  10. .menu {
  11. transition: inset .3s ease, margin .3s ease, background .3s ease;
  12. position: absolute;
  13. left: 0;
  14. top: 0;
  15. margin: calc((var(--editor-head-height) - 42px) / 2) calc((var(--editor-menu-width) - 42px) / 2);
  16. width: 42px;
  17. height: 42px;
  18. display: flex;
  19. align-items: center;
  20. justify-content: center;
  21. cursor: pointer;
  22. .icon {
  23. font-size: 16px;
  24. }
  25. &.abs {
  26. top: 100%;
  27. left: 0;
  28. background: rgba(27, 27, 28, 0.8);
  29. border-radius: 4px;
  30. border: 1px solid #000000;
  31. backdrop-filter: blur(4px);
  32. margin: 10px;
  33. .icon {
  34. font-size: 24px;
  35. }
  36. }
  37. }
  38. .main {
  39. flex: 1;
  40. text-align: center;
  41. font-size: var(--big-size);
  42. .title {
  43. font-size: 1em;
  44. font-weight: bold;
  45. display: inline-block;
  46. max-width: calc(100vw - 580px);
  47. overflow: hidden;
  48. text-overflow: ellipsis;
  49. white-space: nowrap;
  50. }
  51. .split {
  52. padding-left: 0.625em;
  53. }
  54. .extra {
  55. margin-left: 0.625em;
  56. }
  57. }
  58. .split {
  59. position: relative;
  60. padding-right: 1em;
  61. &::after {
  62. content: '|';
  63. position: absolute;
  64. right: 0;
  65. top: 50%;
  66. transform: translateY(-50%);
  67. color: var(--colors-border-color);
  68. font-size: 0.7em;
  69. }
  70. }
  71. .control {
  72. position: absolute;
  73. top: 0;
  74. bottom: 0;
  75. right: 29px;
  76. font-size: 20px;
  77. display: flex;
  78. align-items: center;
  79. .pure {
  80. position: fixed;
  81. right: 10px;
  82. top: 10px;
  83. }
  84. a {
  85. color: transparent;
  86. }
  87. .item {
  88. margin-left: 1em;
  89. }
  90. .user {
  91. --bottom: 10px;
  92. width: 1.6em;
  93. height: calc(1.6em + var(--bottom));
  94. position: relative;
  95. margin-top: var(--bottom);
  96. &::after {
  97. bottom: var(--bottom) ;
  98. }
  99. .portrait {
  100. font-size: 1.6em;
  101. position: absolute;
  102. background-color: #424242;
  103. border-radius: 50%;
  104. left: 0;
  105. top: 0;
  106. bottom: var(--bottom);
  107. right: 0;
  108. overflow: hidden;
  109. display: flex;
  110. align-items: center;
  111. cursor: pointer;
  112. img {
  113. width: 100%;
  114. display: block;
  115. height: 100%;
  116. object-fit: cover;
  117. }
  118. }
  119. .login {
  120. cursor: pointer;
  121. font-size: 0.8em;
  122. color: var(--colors-primary-base) ;
  123. }
  124. }
  125. .save {
  126. margin-left: 10px;
  127. }
  128. }
  129. }