home.css 1.7 KB

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