Skip to content

Commit

Permalink
feat: extract color styles to theme.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
mumiao committed Nov 27, 2020
1 parent a99d131 commit 6dd927f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/components/tabs/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $tabSwitcher: 'tab-switcher';

.tab-button {
align-items: center;
color: rgba(255, 255, 255, 0.6);
cursor: pointer;
display: inline-flex;
height: 100%;
Expand Down Expand Up @@ -37,7 +36,6 @@ $tabSwitcher: 'tab-switcher';
width: 18px;

&::after {
background-color: #fff;
border-radius: 50%;
content: '';
display: block;
Expand All @@ -52,7 +50,6 @@ $tabSwitcher: 'tab-switcher';
&__close {
cursor: pointer;
display: block;
fill: rgba(255, 255, 255, 1);
font-weight: 500;
height: 18px;
width: 18px;
Expand Down Expand Up @@ -92,4 +89,4 @@ $tabSwitcher: 'tab-switcher';
margin-bottom: auto;
overflow: hidden;
overflow-y: auto;
}
}
22 changes: 18 additions & 4 deletions src/style/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,17 @@
}
}

.rc-tree-treenode.drag-over > .draggable {
.rc-tree-treenode.drag-over>.draggable {
@include border-color(#316ac5);
background-color: #316ac5;
color: #bbb;
}

.rc-tree-treenode.drag-over-gap-top > .draggable {
.rc-tree-treenode.drag-over-gap-top>.draggable {
border-top: 2px rgb(0, 122, 204) solid;
}

.rc-tree-treenode.drag-over-gap-bottom > .draggable {
.rc-tree-treenode.drag-over-gap-bottom>.draggable {
border-bottom: 2px rgb(0, 122, 204) solid;
}

Expand All @@ -174,6 +174,20 @@
// =============== Tab =============== //
#{prefix($tabSwitcher)} {
background-color: rgb(37, 37, 38);

.tab-button {
color: rgba(255, 255, 255, 0.6);

&__dot {
&::after {
background-color: #fff;
}
}

&__close {
fill: rgba(255, 255, 255, 1);
}
}
}

// =============== Button =============== //
Expand All @@ -192,4 +206,4 @@
background-color: #316ac5;
}
}
}
}

0 comments on commit 6dd927f

Please sign in to comment.