base.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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: #1e375a;
  10. box-shadow: 0 3px 5px rgb(0 0 0 / 30%);
  11. color: #fff;
  12. height: 56px;
  13. left: 0;
  14. position: fixed;
  15. right: 0;
  16. top: 0;
  17. z-index: 3;
  18. }
  19. @keyframes loading-movement{
  20. 0% {
  21. background-position: 0 0;
  22. }
  23. to {
  24. background-position: 50px 50px;
  25. }
  26. }
  27. body.cp.loading header:before {
  28. animation: loading-movement 2s linear infinite;
  29. 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);
  30. background-size: 50px 50px;
  31. bottom: 0;
  32. content: "";
  33. left: 0;
  34. position: absolute;
  35. right: 0;
  36. top: 0;
  37. z-index: 1;
  38. }
  39. body.cp header .sidebar,
  40. body.cp header .content {
  41. height: 100%;
  42. position: relative;
  43. vertical-align: top;
  44. }
  45. body.cp header .sidebar {
  46. float: left;
  47. width: 250px;
  48. }
  49. body.cp header .sidebar.right {
  50. float: right;
  51. }
  52. body.cp .wrap {
  53. align-items: stretch;
  54. display: block;
  55. height: 100%;
  56. width: 100%;
  57. }
  58. body.cp .wrap .sidebar,
  59. body.cp .wrap .content {
  60. box-shadow: 0 3px 5px rgb(0 0 0 / 30%);
  61. height: 100%;
  62. padding-top: 56px;
  63. position: relative;
  64. vertical-align: top;
  65. z-index: 2;
  66. }
  67. body.cp .wrap .content {
  68. z-index: 1;
  69. }
  70. body.cp .wrap .sidebar {
  71. background: #eee;
  72. float: left;
  73. width: 250px;
  74. }
  75. body.cp .wrap .sidebar.right {
  76. float: right;
  77. }
  78. body.cp .wrap .sidebar .scroll,
  79. body.cp .wrap .content .scroll {
  80. height: 100%;
  81. overflow: hidden;
  82. overflow-y: auto;
  83. }
  84. body.cp .wrap .sidebar .scroll .padding,
  85. body.cp .wrap .content .scroll .padding {
  86. padding: 16px;
  87. }