Sass

scss rendering error [Internal Error: File to read not found or unreadable:]

会有一股神秘感。 提交于 2020-06-26 12:39:33
问题 I want to make a website with scss but when i save the scss file it gives me an error. However, if I saved it a couple times then it will render completely. Its nothing major but it bugs me. I tried finding an answer in Google but nothing works This is just a simple scss file because I am just trying to check if there's an error before i begin my project. turns out there is. @import "fixed"; * { margin: 0; padding: 0; box-sizing: border-box; } body { background: #444; } { "status": 3,

Bootstrap 4 Sass - changing theme dynamically

一曲冷凌霜 提交于 2020-06-26 03:07:18
问题 New to sass I stuck with the problem how to enable the dynamic change of a website theme - lets say a dark and a light theme - through user interaction. The template I use as a base (coreui) has a _custom.scss file in which various variables are defined ... $navbar-bg: #fff; ... The values of these variables would need to be set dynamically depending on the user choice of the theme and I have no clue how to get this done. Any pointer how to implement this would be highly appreciated. 回答1:

SASS with Codeigniter

让人想犯罪 __ 提交于 2020-06-25 09:43:11
问题 I have a big codeigniter project that has been going on / selling for a while. I want to integrate SASS into it however SASS seems mainly - not strictly - for rails. I have been reading up on it and even though there are sparks for codeigniter that will allow SASS, it does not support recent versions of it very well. I have yet to see instructions on how to implement SASS on codeigniter. Anyone can provide some clean instructions please? Thank you ! 回答1: Sass and CodeIgniter does not need to

SassError: argument `$color` of `darken($color, $amount)` must be a color

旧街凉风 提交于 2020-06-17 09:37:13
问题 I am attempting to add a custom color map in Bulma, with the following SCSS code: // Set your colors $primary: #5B43CC; $primary-invert: findColorInvert($primary); $twitter: #4099FF; $twitter-invert: findColorInvert($twitter); $facebook: #4267B2; $facebook-invert: findColorInvert($facebook); $custom-colors: ( "foo": (black, grey), ); // Import Bulma's core @import "~bulma/sass/utilities/_all"; // Links $link: $primary; $link-invert: $primary-invert; $link-focus-border: $primary; // Import

SASS include parent styles

ⅰ亾dé卋堺 提交于 2020-06-17 07:04:11
问题 I am trying to find a way to include the parents styles within nested styles. In the code below, I want to include the width and box-sizing that are set on .random-div in the two nested styles too, so that .random-div--large would have width , box-sizing and padding all set. .random-div { width: 100%; box-sizing: border-box; &--large { padding: 65px 45px; } &--small { padding: 25px 15px; } } I've tried extending the parent class within the nested ones but that includes all of the other nested

Setting up SCSS color variables won't work

独自空忆成欢 提交于 2020-06-17 02:08:49
问题 I'd like to define my own color variables in my SCSS, but how? I checked this website and did everything that is described there.. but it doesn't work. I have installed a preprocessor already! Furthermore I tried to create a color-map and access the color with map-get.. doesn't work either. colors.scss file $yellow_100: #FFC819; style.scss file with a colors.scss import h1 { color: $yellow_100; } I also tried this: colors.scss file $colors: ( color: #FFBB00 ); style.scss file h1 { color: map

Setting up SCSS color variables won't work

北城以北 提交于 2020-06-17 02:08:24
问题 I'd like to define my own color variables in my SCSS, but how? I checked this website and did everything that is described there.. but it doesn't work. I have installed a preprocessor already! Furthermore I tried to create a color-map and access the color with map-get.. doesn't work either. colors.scss file $yellow_100: #FFC819; style.scss file with a colors.scss import h1 { color: $yellow_100; } I also tried this: colors.scss file $colors: ( color: #FFBB00 ); style.scss file h1 { color: map

How do you get rid of these SASS linting errors when using Tailwind-CSS?

微笑、不失礼 提交于 2020-06-12 03:47:14
问题 I'm using Tailwind in a Gatsby.js project. My environment is VSCode, using Prettier code formatter. How do I get rid of these linting error alerts? 回答1: Solution for both .css and .scss At the root level of your project, update or create a dir .vscode with a file settings.json : Add the following to .vscode/settings.json: { "css.validate": false, "less.validate": false, "scss.validate": false } Install the vscode-stylelint extension install stylelint-config-standard: npm i stylelint-config

Angular: How to parse JSON variables into SCSS

你离开我真会死。 提交于 2020-06-11 20:08:49
问题 Within an Angular application, I do D3 visuals through either plain D3 or Vega. There's also SCSS styling going on. I'd like to be able to refer to the same global variables for styling from Javascript and from SCSS. JSON files do the trick very well for storing settings that I load into Typescript through a simple import statement. But how does one go about doing the same from SCSS ? node-sass-json-importer seems like a good candidate but adding it to an Angular 9 CLI application isn't

Angular: How to parse JSON variables into SCSS

馋奶兔 提交于 2020-06-11 20:08:09
问题 Within an Angular application, I do D3 visuals through either plain D3 or Vega. There's also SCSS styling going on. I'd like to be able to refer to the same global variables for styling from Javascript and from SCSS. JSON files do the trick very well for storing settings that I load into Typescript through a simple import statement. But how does one go about doing the same from SCSS ? node-sass-json-importer seems like a good candidate but adding it to an Angular 9 CLI application isn't