What do you want to save?
Add Code snippet
New code examples
-
CSS 2021-10-25 03:23:07
sass use variables from another file
// When importing the master, you leave out the underscore, and it // will look for a file with the underscore. This prevents the SCSS // compiler from generating a CSS file from it. @import "assets/master"; // Then do the rest of my CSS afterw... Add solution -
CSS 2021-10-14 15:20:05
Sass @extend and Inheritance
SCSS Syntax .button-basic { border: none; padding: 15px 30px; text-align: center; font-size: 16px; cursor: pointer; } .button-report { @extend .button-basic; background-color: red; } .button-submit { @extend .button-basic; backgrou... Add solution -
Other 2021-10-12 14:25:08
vue bulma
vue create appname --preferably vue2 cd appname npm install bulma buefy create a main scss file with source './assets/scss/main.scss' fill that file with the variables you want ,,, see bulma docs for example ,,, import that file in your main.js file:... Add solution -
CSS 2021-10-07 06:23:05
scss dynamic variable
/*Sass ( Scss ) does not allow variables to be created or accessed dynamically. However, you can use lists for similar behavior.*/ $list: 20px 30px 40px; @mixin get-from-list($index) { width: nth($list, $index); } $item-number: 2; #smth { @inclu... Add solution -
CSS 2021-10-05 20:33:04
simple font-face mixin scss
/* SCSS */ @mixin font-face($name, $file) { @font-face { font-family: "#{$name}"; src: url("../fonts/#{$file}.eot"); src: url("../fonts/#{$file}.eot?#iefix") format("embedded-opentype"), url("../... Add solution