Releases: rstudio/sass
sass 0.4.9
sass 0.4.8
sass 0.4.7
sass 0.4.6
sass 0.4.5
sass 0.4.4
sass 0.4.3
Improvements
- Close #113: Get rid of C++ warning during package installation about sprintf() being deprecated
sass 0.4.2
sass 0.4.1
sass 0.4.0
Possibly breaking changes
-
sass_layer()
's argument order has changed to better accommodate for the addition of newfunctions
andmixins
arguments as well as deprecation of thedeclarations
argument. This change reflects an update in our understanding of Sass best practice of placing function definitions before variables, so that variable definitions may leverage functions. (#80) -
sass()
andas_sass()
now always attachhtmlDependency()
(s) (found inside of theirinput
argument) as an attribute on their return value. This mainly in support the new font importing feature (which relies onsass()
/as_sass()
being able to returnhtmlDependency()
s), but this could be more generally useful for attaching HTML dependencies to Sass/CSS code. (#74)
New features
-
Added new font importing helpers, namely
font_google()
,font_link()
,font_face()
, andfont_collection()
for intelligently importing web fonts files. They must be used inside a named list, for example:list("font-variable" = font_google("Pacifico"))
. Seehelp(font_face, package = "sass")
for more details and examples. (#74) -
A new
sass_layer_file()
function was added to read in a.scss
file as asass_layer()
. Special comments of the form/*-- scss:(functions|defaults|rules|mixins) --*/
can be used to place certain sections of the file intofunctions
,defaults
,rules
, andmixins
. The primary motivation for this is to allow quarto's theme file format to also be used Shiny and R Markdown. (#81) -
Closed #87: Added new
sass_options_get()
andsass_options_set()
for setting and readingsass_options()
globally (sass()
'soptions
argument now defaults tosass_options_get()
instead ofsass_options()
). In addition, whenshiny::devmode()
is enabled, Sass source maps are included by default. (#88) -
output_template()
gains apath
argument to change the root directory where output file will be written. (#76)