home.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. @import url('app://bower_components/fontawesome/css/font-awesome.min.css');
  2. :host {
  3. display: flex;
  4. }
  5. .home {
  6. position: relative;
  7. display: flex;
  8. flex-direction: column;
  9. flex: 1;
  10. padding: 10px;
  11. header {
  12. border-bottom: 1px solid #666;
  13. padding: 10px 5px;
  14. }
  15. .control {
  16. padding: 8px 4px;
  17. i {
  18. padding: 4px 6px;
  19. cursor: pointer;
  20. transition: color 0.3s;
  21. }
  22. .fa-pencil-square-o[edit] {
  23. color: #cc0000;
  24. }
  25. }
  26. .list {
  27. overflow: auto;
  28. background: #333;
  29. padding: 0;
  30. flex: 1;
  31. ul {
  32. padding: 0;
  33. margin: 0;
  34. li {
  35. padding: 5px 12px;
  36. line-height: 20px;
  37. display: flex;
  38. list-style: none;
  39. &:hover {
  40. background: #282828;
  41. }
  42. .edit {
  43. width: 0;
  44. opacity: 0;
  45. font-size: 15px;
  46. transition: opacity 0.3s, width 0.3s;
  47. overflow: hidden;
  48. margin-right: 5px;
  49. i {
  50. padding: 3px;
  51. cursor: pointer;
  52. color: #cc0000;
  53. }
  54. &[edit] {
  55. width: 18px;
  56. opacity: 1;
  57. }
  58. }
  59. .name {
  60. width: 90px;
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. white-space: nowrap;
  64. }
  65. .path {
  66. flex: 1;
  67. width: 0;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. white-space: nowrap;
  71. }
  72. }
  73. }
  74. }
  75. .popup {
  76. position: absolute;
  77. top: 0;
  78. left: 0;
  79. height: 100%;
  80. width: 100%;
  81. display: none;
  82. .mask {
  83. position: absolute;
  84. top: 0;
  85. left: 0;
  86. height: 100%;
  87. width: 100%;
  88. background: #474747;
  89. opacity: 0.9;
  90. }
  91. .language {
  92. position: absolute;
  93. width: 260px;
  94. left: 50%;
  95. top: 45%;
  96. margin: -50px 0 0 -130px;
  97. h3 {
  98. margin: 0 0 12px 0;
  99. text-align: center;
  100. }
  101. .button {
  102. text-align: right;
  103. display: flex;
  104. ui-button {
  105. margin: 10px;
  106. flex: 1;
  107. }
  108. }
  109. }
  110. &[active] {
  111. display: block;
  112. }
  113. }
  114. }