all.scss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // These variables are always included so that they can be used by theme-neutral without
  2. // requiring either the font-awesome or font-ext package. This allows sub-themes to
  3. // simply require these two packages to enable font icon support.
  4. @import 'font-awesome-variables';
  5. @import 'font-ext-variables';
  6. @import 'font-pictos-variables';
  7. @import 'font-ios-variables';
  8. @import 'extensions.js';
  9. $output-paths: null !default;
  10. @function get-resource-path($path, $pool: "path", $packageName: null) {
  11. $prefix: $current-resource-root;
  12. @if ($output-paths != null) {
  13. @if ($pool != null) {
  14. $val: map-get($output-paths, $pool);
  15. // if a named path was found, use it, else keep the
  16. // current-resource-root default
  17. @if ($val != null) {
  18. $prefix: file_join($val, $prefix);
  19. }
  20. }
  21. }
  22. @if ($packageName != null) {
  23. $prefix: file_join($prefix, $packageName);
  24. }
  25. $leaf: file_join($prefix, $path);
  26. $ret: none;
  27. @if $path {
  28. $ret: $leaf;
  29. } @else {
  30. @warn "@get-resource-path: No arguments passed";
  31. }
  32. @return $ret;
  33. }