global variable scss example
Example 1: scss variables
$base-color: #c6538c;
$border-dark: rgba($base-color, 0.88);
.alert {
border: 1px solid $border-dark;
}
Example 2: variables scss
// SCSS variables
$darkcolor: #605C4D;
$large: 350px;
section{
background-color: $darkcolor;
height: $large;
}
Example 3: how to make a scss variable
$variableName = item
$gray = #404040
body{
background:$gray;
}
Example 4: scss global class
:global {
.tweet {
text-align: left;
}
.user {
text-align: left;
}
}