Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 7f1059c

Browse files
style: menu for dark mode
1 parent 10adeea commit 7f1059c

File tree

3 files changed

+10
-41
lines changed

3 files changed

+10
-41
lines changed

studio/src/app/components/core/app-footer/app-footer.scss

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,3 @@ ion-split-pane {
3232
}
3333
}
3434

35-
@media (prefers-color-scheme: dark) {
36-
ion-split-pane {
37-
app-footer {
38-
div {
39-
ion-anchor {
40-
color: white;
41-
42-
&:hover, &.active {
43-
color: var(--ion-color-secondary);
44-
border-bottom-color: var(--ion-color-secondary);
45-
}
46-
}
47-
}
48-
}
49-
}
50-
}

studio/src/app/components/core/app-menu/app-menu.scss

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,3 @@ ion-split-pane {
5858
}
5959
}
6060
}
61-
62-
@media (prefers-color-scheme: dark) {
63-
ion-split-pane {
64-
ion-menu {
65-
ion-content {
66-
ion-list {
67-
ion-searchbar[class*="sc-ion-searchbar"] {
68-
--cancel-button-color: white;
69-
--clear-button-color: white;
70-
--icon-color: white;
71-
color: white;
72-
}
73-
}
74-
}
75-
}
76-
}
77-
}

studio/src/global/theme/menu.scss

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,29 +121,31 @@ ion-split-pane {
121121
ion-split-pane {
122122
ion-menu {
123123

124-
--background: var(--ion-color-primary);
125-
--ion-background-color: var(--ion-color-primary);
124+
--background: white;
125+
--ion-background-color: white;
126126

127127
ion-content {
128128

129+
border-right: 1px solid rgba(0,0,0,.13);
130+
129131
ion-list {
130132
ion-item-divider {
131-
--color: var(--ion-color-light);
133+
--color: black;
132134
}
133135

134136
ion-item {
135-
--color: var(--ion-color-light);
137+
--color: var(--ion-color-medium);
136138

137139
ion-icon {
138-
color: white;
140+
color: var(--ion-color-medium);
139141
}
140142
}
141143
}
142144

143145
ion-button {
144-
--background: white;
145-
--color: var(--ion-color-dark);
146-
--color-activated: var(--ion-color-dark);
146+
--background: var(--ion-color-primary);
147+
--color: white;
148+
--color-activated: white;
147149
}
148150
}
149151
}

0 commit comments

Comments
 (0)