base.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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, hsla(0, 0%, 100%, .05) 25%, transparent 0, transparent 50%, hsla(0, 0%, 100%, .05) 0, hsla(0, 0%, 100%, .05) 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 .sidebar,
  41. body.cp header .wrap .content {
  42. height: 100%;
  43. position: relative;
  44. vertical-align: top;
  45. }
  46. body.cp header .wrap .sidebar {
  47. float: left;
  48. width: 250px;
  49. }
  50. body.cp header .wrap .sidebar.right {
  51. float: right;
  52. }
  53. body.cp .body .wrap {
  54. align-items: stretch;
  55. display: block;
  56. height: 100%;
  57. width: 100%;
  58. }
  59. body.cp .body .wrap .sidebar,
  60. body.cp .body .wrap .content {
  61. height: 100%;
  62. padding-top: 56px;
  63. position: relative;
  64. vertical-align: top;
  65. z-index: 2;
  66. }
  67. body.cp .body .wrap .content {
  68. z-index: 1;
  69. }
  70. body.cp .body .wrap .sidebar {
  71. background: #eee;
  72. float: left;
  73. width: 250px;
  74. }
  75. body.cp .body .wrap .sidebar.right {
  76. float: right;
  77. }
  78. body.cp .body .wrap .sidebar .scroll,
  79. body.cp .body .wrap .content .scroll {
  80. height: 100%;
  81. overflow: hidden;
  82. overflow-y: auto;
  83. }
  84. body.cp .body .wrap .sidebar .scroll .padding,
  85. body.cp .body .wrap .content .scroll .padding {
  86. padding: 16px;
  87. }