EditorHeader.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. @import "~assets/less/variable";
  2. .editorHeader {
  3. height: 48px;
  4. background-color: @white;
  5. box-shadow: @header-box-shadow;
  6. z-index: @header-index;
  7. display: flex;
  8. flex-direction: row;
  9. .back {
  10. flex-shrink: 0;
  11. padding: 6px 8px 0;
  12. font-size: 2em;
  13. line-height: 44px;
  14. color: @disabled-text-color;
  15. cursor: pointer;
  16. &:hover {
  17. background-color: @body-bg;
  18. }
  19. }
  20. .title {
  21. flex: 1;
  22. padding: 8px;
  23. overflow: hidden;
  24. display: flex;
  25. flex-direction: row;
  26. align-items: flex-end;
  27. .name {
  28. flex-shrink: 0;
  29. font-size: 1.5em;
  30. position: relative;
  31. }
  32. .desc {
  33. flex: 1;
  34. height: 1.65em;
  35. line-height: 1.65em;
  36. color: @light-text-color;
  37. padding: 0 16px;
  38. position: relative;
  39. .ellipsis;
  40. input {
  41. left: 16px;
  42. }
  43. }
  44. .name,
  45. .desc {
  46. span {
  47. display: block;
  48. visibility: hidden;
  49. }
  50. }
  51. input {
  52. width: 100%;
  53. border: 0;
  54. outline: 0;
  55. position: absolute;
  56. top: 0;
  57. cursor: pointer;
  58. &::-webkit-input-placeholder {
  59. color: @disabled-text-color;
  60. }
  61. &::-moz-placeholder {
  62. color: @disabled-text-color;
  63. }
  64. &:-ms-input-placeholder {
  65. color: @disabled-text-color;
  66. }
  67. &:-moz-placeholder {
  68. color: @disabled-text-color;
  69. }
  70. }
  71. }
  72. .actions {
  73. flex-shrink: 0;
  74. padding: 0 16px;
  75. display: flex;
  76. flex-direction: row;
  77. justify-content: flex-end;
  78. align-items: center;
  79. button {
  80. width: 70px;
  81. margin-left: 8px;
  82. }
  83. }
  84. .tools {
  85. margin-right: 16px;
  86. display: flex;
  87. flex-direction: row;
  88. li {
  89. width: 50px;
  90. height: 50px;
  91. display: flex;
  92. flex-direction: column;
  93. justify-content: center;
  94. align-items: center;
  95. i {
  96. font-size: 24px;
  97. cursor: pointer;
  98. }
  99. }
  100. }
  101. }