style.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. max-width: calc(100% - 500px);
  40. overflow: hidden;
  41. text-overflow: ellipsis; //文本溢出显示省略号
  42. white-space: nowrap; //文本不会换行
  43. flex: 1;
  44. text-align: center;
  45. font-size: var(--big-size);
  46. .title { font-size: 1em;
  47. font-weight: 700;
  48. /* display: inline-block; */
  49. text-overflow: ellipsis;
  50. white-space: nowrap;
  51. /* max-width: calc(100% - 500px); */
  52. /* width: 100%; */
  53. overflow: hidden;
  54. }
  55. .split {
  56. padding-left: 0.625em;
  57. }
  58. .extra {
  59. margin-left: 0.625em;
  60. }
  61. }
  62. .split {
  63. position: relative;
  64. padding-right: 1em;
  65. &::after {
  66. content: '|';
  67. position: absolute;
  68. right: 0;
  69. top: 50%;
  70. transform: translateY(-50%);
  71. color: var(--colors-border-color);
  72. font-size: 0.7em;
  73. }
  74. }
  75. .control {
  76. position: absolute;
  77. top: 0;
  78. bottom: 0;
  79. right: 29px;
  80. font-size: 20px;
  81. display: flex;
  82. align-items: center;
  83. a {
  84. color: transparent;
  85. }
  86. .item {
  87. margin-left: 1em;
  88. }
  89. .user {
  90. --bottom: 10px;
  91. width: 1.6em;
  92. height: calc(1.6em + var(--bottom));
  93. position: relative;
  94. margin-top: var(--bottom);
  95. &::after {
  96. bottom: var(--bottom) ;
  97. }
  98. .portrait {
  99. font-size: 1.6em;
  100. position: absolute;
  101. background-color: #424242;
  102. border-radius: 50%;
  103. left: 0;
  104. top: 0;
  105. bottom: var(--bottom);
  106. right: 0;
  107. overflow: hidden;
  108. display: flex;
  109. align-items: center;
  110. cursor: pointer;
  111. img {
  112. width: 100%;
  113. display: block;
  114. height: 100%;
  115. object-fit: cover;
  116. }
  117. }
  118. .login {
  119. cursor: pointer;
  120. font-size: 0.8em;
  121. color: var(--colors-primary-base) ;
  122. }
  123. }
  124. .save {
  125. margin-left: 10px;
  126. }
  127. }
  128. }