forked from DTStack/molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor editorService editorTab interface / optimize Tab component (D…
…TStack#58) * refactor: migrate theme to editorTab closed#49 * feat: update editorGroupTabs themeCololr * feat: tab component support customClassName * fix: open the currentTab by default when openTabAction trigger and fix openTab repeat * refactor: rafactor editorGroup triggerEvent logic and expose eventHandler of outline extension * refactor: refactor editorService closeTab interface * feat: remove unless subscribeHandler
- Loading branch information
Showing
8 changed files
with
100 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
@import 'mo/style/common'; | ||
|
||
// =============== Editor Tabs =============== // | ||
#{prefix($tabSwitcher)} { | ||
#{$tabs} { | ||
background-color: var(--editorGroupHeader-tabsBackground); | ||
|
||
.tab-button { | ||
color: var(--foreground); | ||
&__content { | ||
color: var(--tabItem-foreground); | ||
} | ||
|
||
&--line { | ||
border-bottom: 1px solid var(--tabHeader-border); | ||
} | ||
|
||
#{$tab} { | ||
&__item { | ||
background: var(--tabItem-background); | ||
border-right: 1px solid var(--tabItem-border); | ||
color: var(--tabItem-foreground); | ||
|
||
&__dot { | ||
&::after { | ||
background-color: var(--tab-activeBackground); | ||
color: var(--tab-activeForeground); | ||
&__op { | ||
&__dot::after { | ||
background: var(--tabItem-activeForeground); | ||
} | ||
} | ||
} | ||
|
||
&:hover { | ||
background-color: var(--tab-activeBackground); | ||
color: var(--tab-activeForeground); | ||
} | ||
&--active { | ||
background: var(--tabItem-activeBackground); | ||
border-bottom-color: var(--tabItem-activeForeground); | ||
color: var(--tabItem-activeForeground); | ||
} | ||
|
||
&__close { | ||
fill: var(--tab-activeBackground); | ||
&--close { | ||
color: var(--tabItem-activeForeground); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters