_kityminder.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /**
  2. * 基本页面样式
  3. */
  4. html, body, div {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. body, svg {
  9. font-family: "Microsoft Yahei", "Heiti SC", Arial, sans-serif;
  10. }
  11. html, body {
  12. height: 100%;
  13. }
  14. #content-wrapper {
  15. overflow: hidden;
  16. .dock;
  17. position: fixed;
  18. -webkit-user-select: none;
  19. -khtml-user-select: none;
  20. -moz-user-select: none;
  21. -ms-user-select: none;
  22. user-select: none;
  23. -webkit-user-drag: none;
  24. cursor: default;
  25. }
  26. #kityminder {
  27. .dock(100px, 0, 0, 0);
  28. &.maximize {
  29. top: 40px;
  30. }
  31. &:focus {
  32. /* box-shadow: inset 0 0 10px fadeOut(black, 0.5); */
  33. }
  34. -moz-user-select: none;
  35. }
  36. #tab-container.collapsed + #kityminder,
  37. #panel + #kityminder{
  38. top: 40px;
  39. }
  40. .fullscreen #panel {
  41. transform: translate(0, -101px);
  42. }
  43. .fullscreen #kityminder {
  44. top: 0 !important;
  45. }
  46. #panel {
  47. background: @ui-color;
  48. font-family: 'Hiragino Sans GB', 'Arial', 'Microsoft Yahei';
  49. height: @panel-height;
  50. overflow: hidden;
  51. -webkit-backface-visibility: hidden;
  52. position: relative;
  53. transition: transform .7s ease;
  54. z-index: 11;
  55. -webkit-user-select: none;
  56. -webkit-app-region: drag;
  57. h1 {
  58. font-size: 14px;
  59. height: @panel-height;
  60. line-height: @panel-height;
  61. margin: 0;
  62. text-align: center;
  63. font-weight: normal;
  64. color: @ui-fore;
  65. vertical-align: middle;
  66. white-space: nowrap;
  67. text-overflow: ellipsis;
  68. overflow: hidden;
  69. span {
  70. overflow: hidden;
  71. white-space: nowrap;
  72. text-overflow: ellipsis;
  73. }
  74. input {
  75. outline: none;
  76. font-size: 14px;
  77. border: none;
  78. border-radius: 2px;
  79. box-shadow: 0 0 3px black;
  80. padding: 3px 2px 3px 5px;
  81. background: white;
  82. -webkit-user-select: text;
  83. -webkit-app-region: no-drag;
  84. }
  85. &.rename-enabled{
  86. cursor: text;
  87. &:after {
  88. content: ' ';
  89. width: 20px;
  90. height: 20px;
  91. display: inline-block;
  92. background: url(../images/icons.png) 1px -1110px;
  93. vertical-align: middle;
  94. position: relative;
  95. top: -1px;
  96. margin-left: 5px;
  97. opacity: 0;
  98. transition: opacity ease .3s;
  99. }
  100. }
  101. &.rename-enabled:hover:after {
  102. opacity: 0.6;
  103. }
  104. &.loading {
  105. &:before {
  106. position: relative;
  107. display: inline-block;
  108. .loading-circle(12px, 3px);
  109. left: -6px;
  110. top: 3px;
  111. box-shadow: none;
  112. }
  113. &:after {
  114. display: none;
  115. }
  116. }
  117. }
  118. }
  119. .fui-widget {
  120. -webkit-font-smoothing: auto;
  121. -webkit-app-region: no-drag;
  122. }