consultation-order-dialog.component.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @use '../../../shared/styles/variables';
  2. @use '../../../shared/styles/ios-theme' as ios;
  3. .consultation-order-dialog {
  4. // 弹窗容器样式
  5. .mat-mdc-dialog-container .mdc-dialog__surface {
  6. border-radius: ios.$ios-radius-lg;
  7. background: ios.$ios-card-background;
  8. box-shadow: ios.$ios-shadow-lg;
  9. border: 1px solid ios.$ios-border;
  10. min-width: 800px;
  11. max-width: 1000px;
  12. max-height: 90vh;
  13. overflow: hidden;
  14. }
  15. .dialog-header {
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. padding: ios.$ios-spacing-lg ios.$ios-spacing-lg ios.$ios-spacing-md;
  20. border-bottom: 1px solid ios.$ios-border;
  21. background: ios.$ios-background;
  22. .dialog-title {
  23. color: ios.$ios-text-primary;
  24. font-weight: ios.$ios-font-weight-semibold;
  25. font-family: ios.$ios-font-family;
  26. font-size: ios.$ios-font-size-lg;
  27. margin: 0;
  28. }
  29. .close-button {
  30. color: ios.$ios-text-secondary;
  31. transition: color 0.3s ease;
  32. &:hover {
  33. color: ios.$ios-primary;
  34. }
  35. }
  36. }
  37. .dialog-content {
  38. padding: 0;
  39. max-height: calc(90vh - 80px);
  40. overflow-y: auto;
  41. // 确保咨询订单组件内部样式正常
  42. app-consultation-order {
  43. display: block;
  44. height: 100%;
  45. ::ng-deep {
  46. .consultation-order-container {
  47. height: 100%;
  48. border-radius: 0;
  49. box-shadow: none;
  50. margin: 0;
  51. .dashboard-header {
  52. border-radius: 0;
  53. margin: 0;
  54. }
  55. .dashboard-content {
  56. max-height: calc(90vh - 140px);
  57. overflow-y: auto;
  58. padding: ios.$ios-spacing-md;
  59. }
  60. }
  61. }
  62. }
  63. }
  64. // 响应式设计
  65. @media (max-width: 1024px) {
  66. .mat-mdc-dialog-container .mdc-dialog__surface {
  67. min-width: 90vw;
  68. max-width: 95vw;
  69. margin: ios.$ios-spacing-md;
  70. }
  71. }
  72. @media (max-width: 768px) {
  73. .mat-mdc-dialog-container .mdc-dialog__surface {
  74. min-width: 95vw;
  75. max-width: 95vw;
  76. margin: ios.$ios-spacing-sm;
  77. }
  78. .dialog-header {
  79. padding: ios.$ios-spacing-md;
  80. .dialog-title {
  81. font-size: ios.$ios-font-size-md;
  82. }
  83. }
  84. .dialog-content {
  85. app-consultation-order {
  86. ::ng-deep {
  87. .consultation-order-container {
  88. .dashboard-content {
  89. padding: ios.$ios-spacing-sm;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }