Last active
November 16, 2018 15:04
-
-
Save fedir/ab35765c95a40a0c4b841d59c9d889a9 to your computer and use it in GitHub Desktop.
Install node-sass on CentOS 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum update | |
yum install -y gcc-c++ make | |
curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash - | |
npm install --unsafe-perm -g node-sass | |
type node-sass | |
npm install -g less | |
type lessc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lessc test.less test-less.css | |
node-sass test.scss test-scss.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@blue: #3bbfce; | |
@margin: 16px; | |
.content-navigation { | |
border-color: @blue; | |
color: darken(@blue, 9%); | |
} | |
.border { | |
padding: @margin / 2; | |
margin: @margin / 2; | |
border-color: @blue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$blue: #3bbfce; | |
$margin: 16px; | |
.content-navigation { | |
border-color: $blue; | |
color: darken($blue, 9%); | |
} | |
.border { | |
padding: $margin / 2; | |
margin: $margin / 2; | |
border-color: $blue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment