When editing and compiling the SASS files I am getting one style.css that loses some of the websites functionality. When I compare the compiled style.css to the original file (the one included in your distribution) I notice that they have a different structure and it is almost impossible to track down where things went wrong.
This is the package.json that I use:
{
"name": "gmiwhip",
"version": "1.0.0",
"description": "gmiwhip",
"main": "index.js",
"scripts": {
"watch:sass": "node-sass style.scss style.css -w",
"devserver": "live-server --browser=firefox",
"start": "npm-run-all --parallel devserver watch:sass",
"compile:sass": "node-sass style.scss style.comp.css",
"prefix:css": "postcss --use autoprefixer -b 'last 10 versions' style.comp.css -o style.prefix.css",
"compress:css": "node-sass style.prefix.css style.css --output-style compressed",
"build:css": "npm-run-all compile:sass prefix:css compress:css"
},
"author": "ADG",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^10.4.7",
"concat": "^1.0.3",
"live-server": "^1.2.2",
"node-sass": "^7.0.1",
"npm-run-all": "^4.1.5",
"postcss-cli": "^9.1.0"
}
}
I created an example with two different style.css files:
the original files from your distribution. Files uploaded at: http://villagemassagedev.co/v0/responsive-sticky.html
modified the $theme-color in sass/_variables.scss and then compiled style.css. Files uploaded at: http://villagemassagedev.co/v0/responsive-sticky.html
You will notice that in the second instance the theme color is indeed changed. But the header is not sticky anymore in the tablet view (when tested on an iPad or Android tablet). Strangely enough it is still sticky in desktop and mobile view.
Also, if you compare the two style.css files' sizes they are quite different even if I only changed one hex code in the sass/_variables.scss file.
Please check and let me know if I am doing something wrong and which would be the correct steps in order to edit the SASS files and get a consistent result.
