Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css sass scss

/*SMART DIFFERENCE*/
/*CSS*/
body {
  font: 100% Helvetica, sans-serif;
  color: #333;
}

/*SCSS*/

$font-stack:    Helvetica, sans-serif;
$primary-color: #333;

body {
  font: 100% $font-stack;
  color: $primary-color;
}


/*SASS*/
$font-stack:    Helvetica, sans-serif
$primary-color: #333

body
  font: 100% $font-stack
  color: $primary-color


Comment

sass use

// style.scss
@use "src/corners" as c;

.button {
  @include c.rounded;
  padding: 5px + c.$radius;
}
Comment

sass use

// style.scss
@use 'foundation/code';
@use 'foundation/lists';
Comment

sass @use

// style.scss
@use "src/corners";

.button {
  @include corners.rounded;
  padding: 5px + corners.$radius;
}
Comment

why sass

/* Sass has a lot of features
The most important ones are nesting, functions and mixins
*/
Comment

PREVIOUS NEXT
Code Example
Css :: hover.css cdn 
Css :: import css in figma 
Css :: css class inheritance 
Css :: css grid generator 
Css :: jquery or selector 
Css :: move div up and down infinite 
Css :: how to remove list style in css 
Css :: line height negative css 
Css :: is there a min-left css attribute 
Css :: html css text color invert on image 
Css :: button position translate on bottom edge bootstrap 
Css :: vertical multi color border css 
Css :: apply style to only children not grandchildren 
Css :: adding custom icons 
Css :: html percentage css 
Css :: css template columns and rows 
Css :: css first child of type 
Css :: blur on scroll css 
Css :: how to solve your coading bugs 
Css :: overriding fullpage js anchor style 
Css :: bootstrap 
Css :: create an irregular shape div css 
Css :: Slide up and down animation CSS CodePen 
Css :: input on Internet explore has close icon 
Css :: prevenrt div with height 100% from growing up 
Css :: css safari webkit input search icon hide 
Css :: CSS Div Angel (prize) 
Css :: css lobotomized owl 
Css :: how to make textbox shorter in html 
Css :: fira code cdn 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =