Browse Source

feat: add modal and drawer bg

pull/19968/head
ycjcl868 5 years ago
committed by GitHub Action
parent
commit
279c24716c
  1. 6
      components/drawer/style/drawer.less
  2. 2
      components/modal/style/modal.less
  3. 2
      components/style/themes/default.less

6
components/drawer/style/drawer.less

@ -141,7 +141,7 @@
position: relative; position: relative;
z-index: 1; z-index: 1;
overflow: auto; overflow: auto;
background-color: @component-background; background-color: @drawer-bg;
background-clip: padding-box; background-clip: padding-box;
border: 0; border: 0;
} }
@ -181,14 +181,14 @@
position: relative; position: relative;
padding: @drawer-header-padding; padding: @drawer-header-padding;
color: @text-color; color: @text-color;
background: @component-background; background: @drawer-bg;
border-bottom: @border-width-base @border-style-base @border-color-split; border-bottom: @border-width-base @border-style-base @border-color-split;
border-radius: @border-radius-base @border-radius-base 0 0; border-radius: @border-radius-base @border-radius-base 0 0;
} }
&-header-no-title { &-header-no-title {
color: @text-color; color: @text-color;
background: @component-background; background: @drawer-bg;
} }
&-body { &-body {

2
components/modal/style/modal.less

@ -36,7 +36,7 @@
&-content { &-content {
position: relative; position: relative;
background-color: @component-background; background-color: @modal-content-bg;
background-clip: padding-box; background-clip: padding-box;
border: 0; border: 0;
border-radius: @border-radius-base; border-radius: @border-radius-base;

2
components/style/themes/default.less

@ -390,6 +390,7 @@
// -- // --
@modal-body-padding: 24px; @modal-body-padding: 24px;
@modal-header-bg: @component-background; @modal-header-bg: @component-background;
@modal-content-bg: @component-background;
@modal-heading-color: @heading-color; @modal-heading-color: @heading-color;
@modal-footer-bg: transparent; @modal-footer-bg: transparent;
@modal-footer-border-color-split: @border-color-split; @modal-footer-border-color-split: @border-color-split;
@ -679,6 +680,7 @@
// --- // ---
@drawer-header-padding: 16px 24px; @drawer-header-padding: 16px 24px;
@drawer-body-padding: 24px; @drawer-body-padding: 24px;
@drawer-bg: @component-background;
// Timeline // Timeline
// --- // ---

Loading…
Cancel
Save