Skip to content

Commit 5f11248

Browse files
committed
style(finjs): remove dark themes and hardcoded colors
1 parent 0c402e3 commit 5f11248

10 files changed

Lines changed: 172 additions & 209 deletions

File tree

projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.scss

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
@import '~igniteui-dockmanager/dist/collection/styles/igc.themes.css';
33

44
:host {
5-
width: 100%;
6-
overflow-y: auto;
5+
width: 100%;
6+
overflow-y: auto;
77
}
88

99

@@ -15,15 +15,15 @@
1515
.dock-m-position {
1616
width: 100vw;
1717
height: 100vh;
18-
padding: 0px 8px 8px 8px;
19-
--igc-pane-content-background: #fff;
18+
padding: 0 rem(8px) rem(8px) rem(8px);
19+
--igc-pane-content-background: #{contrast-color(null, 'grays', 900)};
2020
}
2121

2222
.chart-types-container {
2323
overflow-y: auto;
2424
height: 100%;
2525
width: 100%;
26-
padding-left: 15px;
26+
padding-left: rem(15px);
2727
}
2828

2929
.selection-area {
@@ -43,18 +43,19 @@
4343

4444

4545
}
46+
4647
$custom-badge-theme: badge-theme(
47-
$border-color: white,
48-
$border-width: 2px,
49-
$icon-color: white,
50-
$text-color: black,
51-
$background-color: black,
48+
$border-color: contrast-color(null, 'grays', 900),
49+
$border-width: #{rem(2px)},
50+
$icon-color: contrast-color(null, 'grays', 900),
51+
$text-color: contrast-color(null, 'grays', 50),
52+
$background-color: contrast-color(null, 'grays', 500),
5253
$border-radius: 50%
53-
);
54+
);
5455
:host ::ng-deep {
5556
.selected {
56-
igx-badge{
57-
&{
57+
igx-badge {
58+
& {
5859
@include badge($custom-badge-theme);
5960
}
6061

@@ -80,22 +81,27 @@ $custom-badge-theme: badge-theme(
8081

8182
.igx-divider {
8283
margin-top: 5px !important;
83-
background: black !important;
84+
background: contrast-color(null, 'grays', 50) !important;
8485
width: 95% !important;
8586
}
8687
}
88+
8789
.grid-chart-contextmenu-wrapper {
8890
igx-grid {
8991
@include scrollbar(scrollbar-theme($size: 16px));
9092
}
9193
}
9294

9395
.analytics-btn {
94-
@include button(button-theme($palette: $fluent-excel-palette,
95-
$foreground: #fff,
96-
$background: #335e3b,
97-
$hover-background: #459a55,
98-
$border-radius: 0));
96+
@include css-vars(
97+
button-theme(
98+
$foreground: contrast-color(null, 'grays', 900),
99+
$background: color(null, 'success', 500, .8),
100+
$hover-background: color(null, 'success'),
101+
$hover-foreground: contrast-color(null, 'grays', 900),
102+
$border-radius: 0
103+
)
104+
);
99105
z-index: 9;
100106
position: absolute;
101107
}
@@ -122,7 +128,7 @@ $custom-badge-theme: badge-theme(
122128
pointer-events: none;
123129
}
124130

125-
.disabled{
131+
.disabled {
126132
opacity: .5;
127133
}
128134

@@ -132,33 +138,35 @@ $custom-badge-theme: badge-theme(
132138
pointer-events: none;
133139
}
134140

135-
$font-family: "Titillium Web", "Roboto", "Helvetica Neue", sans-serif;
136-
.tab-options-wrapper{
141+
$font-family: 'Titillium Web', 'Roboto', 'Helvetica Neue', sans-serif;
142+
143+
.tab-options-wrapper {
137144
@include scrollbar(scrollbar-theme($size: 6px));
138145

139146
display: flex;
140147
flex-flow: column;
141-
max-height: 110px;
142-
max-width: 310px;
148+
max-height: rem(110px);
149+
max-width: rem(310px);
143150
margin: -0.8rem -1.5rem -0.8rem -1.5rem;
144-
.header{
151+
152+
.header {
145153
font-size: 0.7rem;
146154
display: flex;
147155
width: 100%;
148156
padding: 0 0.2rem 0 0.4rem;
149157
font-weight: 650;
150-
border-bottom: 1px solid #BDBDBD;
158+
border-bottom: 1px solid color(null, 'grays', 100);
151159
align-self: center;
152160
font-family: $font-family;
153161
letter-spacing: 1.7px;
154-
color: rgba(0, 0, 0, 0.87);
162+
color: contrast-color(null, 'grays', 50, .87);
155163
}
156164
}
157165

158166
.tab-option {
159167
padding: .5rem 0.4rem 0.4rem 0.4rem;
160-
height: 110px;
161-
width: 310px;
168+
height: rem(110px);
169+
width: rem(310px);
162170
display: inline-flex;
163171
overflow-x: auto;
164172
overflow-y: hidden;
@@ -170,7 +178,8 @@ $font-family: "Titillium Web", "Roboto", "Helvetica Neue", sans-serif;
170178
cursor: pointer;
171179

172180
opacity: .62;
173-
&.selected--condition{
181+
182+
&.selected--condition {
174183
pointer-events: none;
175184
opacity: 1;
176185
}
@@ -183,7 +192,7 @@ $font-family: "Titillium Web", "Roboto", "Helvetica Neue", sans-serif;
183192
}
184193
}
185194

186-
.clear-action{
195+
.clear-action {
187196
cursor: pointer;
188197
display: flex;
189198
flex-flow: column;
@@ -202,7 +211,7 @@ $font-family: "Titillium Web", "Roboto", "Helvetica Neue", sans-serif;
202211
flex-flow: column;
203212
align-items: center;
204213

205-
img{
214+
img {
206215
pointer-events: none;
207216
}
208217

0 commit comments

Comments
 (0)