Skip to content

Commit 888c249

Browse files
authored
Merge pull request openWB#757 from benderl/fixes
fix scoped css
2 parents b72e6ad + fd7373f commit 888c249

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

src/App.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,4 +299,28 @@ export default {
299299
.not-clickable {
300300
cursor: not-allowed;
301301
}
302+
303+
.bg-primary,
304+
.bg-secondary,
305+
.bg-info,
306+
.bg-danger,
307+
.bg-success,
308+
.bg-dark {
309+
color: white;
310+
}
311+
312+
.bg-warning,
313+
.bg-pink,
314+
.bg-light,
315+
.bg-white {
316+
color: #212529;
317+
}
318+
319+
.border-pink {
320+
border-color: var(--pink) !important;
321+
}
322+
323+
.bg-pink {
324+
background-color: var(--pink) !important;
325+
}
302326
</style>

src/components/OpenwbBaseCard.vue

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -142,37 +142,13 @@ export default {
142142
align-items: center;
143143
}
144144
145-
.card-actions .pill {
145+
.card-actions :deep(.pill) {
146146
border-radius: 10px;
147147
padding: 5px;
148148
border-width: 2px;
149149
border-style: solid;
150150
}
151151
152-
.border-pink {
153-
border-color: var(--pink) !important;
154-
}
155-
156-
.bg-pink {
157-
background-color: var(--pink) !important;
158-
}
159-
160-
.bg-primary,
161-
.bg-secondary,
162-
.bg-info,
163-
.bg-danger,
164-
.bg-success,
165-
.bg-dark {
166-
color: white;
167-
}
168-
169-
.bg-warning,
170-
.bg-pink,
171-
.bg-light,
172-
.bg-white {
173-
color: #212529;
174-
}
175-
176152
.card-header.bg-secondary .btn-outline-info:not(.active):not(:hover),
177153
.card-header.bg-success .btn-outline-info:not(.active):not(:hover),
178154
.card-header.bg-primary .btn-outline-info:not(.active):not(:hover) {
@@ -192,7 +168,7 @@ export default {
192168
background-color: bg-border-white; /* Ensure this matches the background color of other elements */
193169
}
194170
195-
.card-header .card.border-white {
171+
.card-header :deep(.card.border-white) {
196172
background-color: inherit; /* Change this to match the background color of the card body */
197173
}
198174

0 commit comments

Comments
 (0)