scss-mixins

Stylization vuetify component v-expansion-panel__header

喜夏-厌秋 提交于 2021-02-11 12:36:20
问题 I have a Vuejs component with Vuetify and pug. .moreQuestion__wrapper v-expansion-panel.moreQuestion__wrapper-panel v-expansion-panel-content(v-for="(question, i) in questions" :key="i" expand-icon="arrow_drop_down") <template v-slot:header> .moreQuestion__wrapper-slot {{ question }} </template> v-card v-card-text.moreQuestion__wrapper-text {{ content }} What the main problem - I've to override padding-right for v-expansion-panel__header. What the main problem - I've to override padding-right

What does “use this SASS mixin” mean in the context of Material Design Components?

风格不统一 提交于 2021-01-27 13:17:15
问题 I am using the Material Design Components for Web library. I have a tab component that I'd like to change the underline-color of. The instructions say To customize the tab indicator, use the following mixins. Then it gives a table. For underline color, it says underline-color($color) Customizes the color of the underline. So, I try in my scss file, the following: .mdc-tab-indicator { underline-color(red); } I compile my sass (using dart-sass ) and get the following error Error: expected "{".

ng build --base-href=“/…/” --deploy-url=“/…/” css background image not working

跟風遠走 提交于 2020-08-03 06:39:09
问题 "@angular/core": "~8.0.0", scaffold angular 8 project with scss style option i have code for as mentioned below in component scss file background: url("/assets/images/vector-icon.png") no-repeat 25%; at the final buil using command ng build --prod --base-href="/website/" --deploy-url="/website/" put build at sub folder root/webside everything working fine except background image path i have tried by ip/website/assets/images/vector-icon.png at that point i am able to get image. What if i don't

CSS variable & SCSS mixin

两盒软妹~` 提交于 2020-05-09 03:14:12
问题 I need to be able to use CSS variables because I need to have an hover effect (background-color) to be customizable by my VueJs app. But my CSS stylesheet should have a default value, which is stored in a nested SCSS map. (map-getter is a function which returns values from nested maps) I know that my SCSS code works, because I get the intended result when I do this: .theme--dark .AppNavTile:hover { background-color: map-getter($theme-dark, AppNav, hover); //returns background-color: rgba(255,

What is the long-term alternative solutions to /deep/ OR ::ng-deep?

家住魔仙堡 提交于 2019-12-25 03:25:02
问题 /deep/ and ::ng-deep these are also deprecated in DOM mode and, i'ld like to know whether there will be an alternative in the future to /deep/ and ::ng-deep or should we start using other ways? ::ng-deep .result-container .options-section .option-radio-button .option-text p { margin: 5px 0px !important; white-space: pre-wrap !important; } 回答1: Currently there's no alternative right now, so we should all continue to use it, because it's practical. When ViewEncapsulation.Native is properly

How to set custom button text color in Bootstrap 4 and Sass?

泪湿孤枕 提交于 2019-12-23 09:17:25
问题 I would like to create a new button style in Bootstrap 4 with a white (#fff) text color. Mixin button-variant automatically sets the text color based on the background color. How can I use this mixin and set the color at the same time, without modifying _buttons.scss ? custom.scss .my_button { @include button-variant(HOW TO SET TEXT COLOR TO WHITE?); } _buttons.scss @mixin button-variant($background, $border, $hover-background: darken($background, 7.5%), $hover-border: darken($border, 10%),

SASS - Pass $variable to @content from within a @mixin

不想你离开。 提交于 2019-12-23 03:17:22
问题 I'm fighting to pass/get a $variable to a @content from within a @mixin. I read extensively online about it and know it's not possible. But maybe someone knows a good variation and/or other solution. I created a SassMeister file to explain it: https://www.sassmeister.com/gist/f5404131ace6e243ef0a6c9cca042889 Anyone who can help me out? Thanks for reaching out ;-) 回答1: I don't know if it is the best method, but you could create a global variable, change it at every loop and use it. Something