(vue) use :slotted to apply scoped styles to slotted elements

https://vuejs.org/api/sfc-css-features.html#slotted-selectors
This commit is contained in:
Valentyne Stigloher 2024-08-06 18:26:43 +02:00
parent d7ca6fe741
commit 9639d2204e

View File

@ -36,11 +36,11 @@ export default {
text-decoration: none; text-decoration: none;
} }
img { :slotted(img) {
width: 1em; width: 1em;
} }
.fa-fw { :slotted(.fa-fw) {
position: relative; position: relative;
top: .2em; top: .2em;
} }