Skip to content

Commit

Permalink
fix(module:theme:style): fix dropdown + button spacing when closed pr…
Browse files Browse the repository at this point in the history
…eserve (#292)

* fix(module:theme:style): fix dropdown + button spacing when closed preserve

* fix: text-hover
  • Loading branch information
cipchk authored Nov 25, 2018
1 parent a882507 commit d330e5e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 11 additions & 1 deletion packages/theme/styles/app/ng/preserve-white-spaces.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@
margin-top: @preserve-sf-and-st-spaces;
}

// button + button
.ant-btn + .ant-btn,
// button + popconfirm
.ant-btn + nz-popconfirm,
nz-popconfirm + .ant-btn,
// popconfirm + popconfirm
nz-popconfirm + nz-popconfirm,
// button + button group
.ant-btn + nz-button-group,
nz-popconfirm + nz-button-group {
nz-button-group + .ant-btn,
// dropdown + button
.ant-btn + nz-dropdown,
nz-dropdown +.ant-btn,
// popconfirm + button group
nz-popconfirm + nz-button-group,
nz-button-group + nz-popconfirm {
margin-left: @preserve-buttons-spaces;
}
.ant-btn-group {
Expand Down
5 changes: 4 additions & 1 deletion packages/theme/styles/app/utils/color.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
.bg-white { background-color: #fff !important; }
.bg-transparent { background-color: transparent !important; }
.text-white { color: #fff !important; }
.text-hover:hover { color: @primary-color !important; }
.text-hover {
cursor: pointer;
&:hover { color: @primary-color !important; }
}

.for-each(@colors, {
.bg-@{adKey}-light { background-color: extract(@adItem, @color-light-position) !important; }
Expand Down

0 comments on commit d330e5e

Please sign in to comment.