https://sass-lang.com/ - strona główna sass https://sass-lang.com/install - Dart sass - command line https://github.com/sass/sassc-ruby#readme - gem, plugin, do framewroków
# compass compile [path/to/project] - kompilacja ręczna do .css # compass watch [path/to/project] - automatyczna, monitorowanie zmian
# cat config.rb require 'compass/import-once/activate' # Set this to the root of your project when deployed: http_path = "/" css_dir = "stylesheets" sass_dir = "sass" images_dir = "images" javascripts_dir = "javascripts"
# compass create my_project directory test_project/ directory test_project/sass/ directory test_project/stylesheets/ create test_project/config.rb create test_project/sass/screen.scss create test_project/sass/print.scss create test_project/sass/ie.scss write test_project/stylesheets/ie.css write test_project/stylesheets/print.css write test_project/stylesheets/screen.css -- przykład dołączenia plików css projektu <head> <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> <!--[if IE]> <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" /> <![endif]--> </head>
# sass -v Ruby Sass 3.7.4 # compass -v Compass 1.0.3 (Polaris)
# apt install ruby-full # gem install sass # gem install compass