index.less 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .app-drawer {
  2. --el-mask-color: rgba(0, 0, 0, .25);
  3. &__wrapper {
  4. display: flex;
  5. flex-direction: column;
  6. max-height: 100vh;
  7. min-width: 360px;
  8. color: #fff;
  9. border-radius: 4px;
  10. background: linear-gradient(#084258 0, #102e45 38px, #102e45 100%);
  11. box-shadow: 0 0 20px 0 rgba(0, 0, 0, .15);
  12. overflow: hidden;
  13. }
  14. &__header {
  15. position: relative;
  16. height: 38px;
  17. line-height: 38px;
  18. text-align: center;
  19. h1 {
  20. font-size: 16px;
  21. }
  22. .el-icon {
  23. position: absolute;
  24. top: 50%;
  25. right: 24px;
  26. transform: translate3d(0, -50%, 0);
  27. font-size: 16px;
  28. cursor: pointer;
  29. }
  30. }
  31. &__body {
  32. flex: 1;
  33. overflow-y: auto;
  34. line-height: normal;
  35. background-color: #0f1a25;
  36. padding: 24px;
  37. padding-bottom: 0;
  38. &:last-child {
  39. padding-bottom: 24px;
  40. }
  41. }
  42. &__footer {
  43. text-align: center;
  44. background-color: #0f1a25;
  45. padding: 24px;
  46. }
  47. &.border &__wrapper {
  48. padding: 8px;
  49. padding-top: 0;
  50. }
  51. &.border &__header {
  52. .el-icon {
  53. left: 10px;
  54. right: auto;
  55. }
  56. }
  57. &.border &__body {
  58. padding: 20px;
  59. }
  60. &.border &__footer {
  61. padding: 20px;
  62. padding-top: 0;
  63. }
  64. }