base.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. body.cp {
  2. color: #1e375a;
  3. height: 100%;
  4. overflow: hidden;
  5. position: relative;
  6. width: 100%;
  7. }
  8. body.cp header {
  9. background-color: #205081;
  10. color: #fff;
  11. height: 56px;
  12. left: 0;
  13. position: fixed;
  14. right: 0;
  15. top: 0;
  16. z-index: 3;
  17. }
  18. @keyframes loading-movement{
  19. 0% {
  20. background-position: 0 0;
  21. }
  22. to {
  23. background-position: 50px 0px;
  24. }
  25. }
  26. body.cp header:before {
  27. background-image: linear-gradient(45deg, #28598a 25%, transparent 0, transparent 50%, #28598a 0, #28598a 75%, transparent 0, transparent);
  28. background-size: 50px 50px;
  29. bottom: 0;
  30. content: "";
  31. left: 0;
  32. position: absolute;
  33. right: 0;
  34. top: 0;
  35. z-index: 1;
  36. }
  37. body.cp.loading header:before {
  38. animation: loading-movement 2s linear infinite;
  39. }
  40. body.cp header .wrap {
  41. align-items: stretch;
  42. display: block;
  43. height: 100%;
  44. position: relative;
  45. width: 100%;
  46. z-index: 2;
  47. }
  48. body.cp header .wrap .sidebar,
  49. body.cp header .wrap .content {
  50. height: 100%;
  51. position: relative;
  52. vertical-align: top;
  53. z-index: 2;
  54. }
  55. body.cp header .wrap .content {
  56. z-index: 1;
  57. }
  58. body.cp header .wrap .sidebar {
  59. float: left;
  60. width: 250px;
  61. }
  62. body.cp header .wrap .sidebar.right {
  63. float: right;
  64. }
  65. body.cp .body,
  66. body.cp .body .wrap {
  67. align-items: stretch;
  68. display: block;
  69. height: 100%;
  70. width: 100%;
  71. }
  72. body.cp .body .wrap .sidebar,
  73. body.cp .body .wrap .content {
  74. height: 100%;
  75. padding-top: 56px;
  76. position: relative;
  77. vertical-align: top;
  78. z-index: 2;
  79. }
  80. body.cp .body .wrap .content {
  81. z-index: 1;
  82. }
  83. body.cp .body .wrap .sidebar {
  84. background: #eee;
  85. float: left;
  86. width: 250px;
  87. }
  88. body.cp .body .wrap .sidebar.right {
  89. float: right;
  90. }
  91. body.cp .body .wrap .sidebar .scroll,
  92. body.cp .body .wrap .content .scroll {
  93. height: 100%;
  94. overflow: hidden;
  95. overflow-y: auto;
  96. }
  97. body.cp .body .wrap .sidebar .scroll .padding,
  98. body.cp .body .wrap .content .scroll .padding {
  99. padding: 16px;
  100. }
  101. .divider {
  102. border-top: 1px solid #d6d6d6;
  103. height: 0;
  104. overflow: hidden;
  105. }