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 example html

/*
SASS default file *.scss must be converted to *.css to use in html

Installation: 
npm install -g sass
*/
<head>
	<link rel="stylesheet" href="styles.css">
</head>
/* create new file styles.scss and fill */
$myColor: red;

body {
  color: $myColor;
}
/*
in terminal run: sass --watch styles.scss styles.css

info from https://sass-lang.com/install
*/
Comment

PREVIOUS NEXT
Code Example
Css :: css animate absolute position 
Css :: material css sidebar 
Css :: Set cellpadding and cellspacing in CSS? 
Css :: blurring behind a div 
Css :: github lottie 
Css :: :is in css 
Css :: css background templates 
Css :: custom properties css 
Css :: What is the "style", when creating an internal CSS? 
Css :: display flex css 
Css :: add logo html css 
Css :: css calc margin-top based on height? 
Css :: save css file to different folder in scss 
Css :: is any way to change only arabic font family not english font family 
Css :: Evaluate ruby code inside html :css filter 
Css :: hoq to give paragraph color css 
Css :: react bootstrap css module use media query mixin 
Css :: adding custom icons 
Css :: capitalize only first letter css 
Css :: menu multiple colums batch 
Css :: weird box-shadow color input css 
Css :: css to reduce margin of class container 
Css :: font face roboto css 
Css :: à quoi sert clearfix 
Css :: image with colored background html css tigether 
Css :: adding whitespace in box 
Css :: images css in react native fir in container 
Css :: forEach In a forEach method, we pass each food type within that iteration into the callback. A for loop needs you to access the array using a temporary i variable. 
Css :: alternate table row color css 
Css :: set values to asame id jquery 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =