Skip to content

Commit

Permalink
feat: popup,elevator等组件暗黑模式支持
Browse files Browse the repository at this point in the history
  • Loading branch information
szg2008 committed Jul 29, 2022
1 parent e1c3274 commit 11bbbc0
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/packages/__VUE/elevator/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ export default createDemo({
</script>

<style lang="scss" scoped>
.nut-theme-dark {
.demo {
background-color: #000 !important;
}
}
.demo {
background-color: #fff !important;
}
Expand Down
16 changes: 16 additions & 0 deletions src/packages/__VUE/elevator/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
.nut-theme-dark {
.nut-elevator {
background-color: $dark-background2;
&__list {
&__item {
color: $dark-color;
&__code {
color: $dark-color;
}
}
&__fixed {
background-color: $dark-background2;
}
}
}
}
.nut-elevator {
width: 100%;
display: block;
Expand Down
10 changes: 10 additions & 0 deletions src/packages/__VUE/popup/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
.nut-theme-dark {
.nut-popup {
background: $dark-background2;
}
.nutui-popup {
&__close-icon {
color: $dark-color;
}
}
}
.popup-slide {
&-center-enter-active,
&-center-leave-active {
Expand Down
9 changes: 9 additions & 0 deletions src/packages/__VUE/sidenavbaritem/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
.nut-theme-dark {
.nut-sidenavbaritem {
background-color: $dark-background2;
&__title {
background-color: $dark-background2;
color: $dark-color;
}
}
}
.nut-sidenavbaritem {
height: $sidenavbar-item-height;
line-height: $sidenavbar-item-line-height;
Expand Down
5 changes: 5 additions & 0 deletions src/packages/__VUE/steps/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ export default createDemo({
</script>

<style lang="scss">
.nut-theme-dark {
.steps-wrapper {
background-color: #1b1b1b;
}
}
.padding {
padding-left: 0 !important;
padding-right: 0 !important;
Expand Down
7 changes: 7 additions & 0 deletions src/packages/__VUE/sticky/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ export default createDemo({
});
</script>
<style lang="scss" scoped>
.nut-theme-dark {
.demo {
.sticky-container {
background-color: #1b1b1b;
}
}
}
.demo {
height: 200vh !important;
}
Expand Down
12 changes: 12 additions & 0 deletions src/packages/__VUE/subsidenavbar/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
.nut-theme-dark {
.nut-subsidenavbar {
background-color: $dark-background2;
&__title {
background-color: $dark-background3;
color: $dark-color;
&__text {
color: $dark-color;
}
}
}
}
.nut-subsidenavbar {
display: grid;
float: left;
Expand Down

0 comments on commit 11bbbc0

Please sign in to comment.