Removed units from hsla() color functions

This commit is contained in:
squidfunk 2020-05-25 17:19:42 +02:00
parent a43679b104
commit 24b185a759
10 changed files with 25 additions and 15 deletions

View File

@ -5,8 +5,8 @@
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.de50e36d.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.27c6a5e6.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.27c6a5e6.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.d6c38d2b.min.css",
"assets/stylesheets/main.css.map": "assets/stylesheets/main.d6c38d2b.min.css.map",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.02db69e1.min.css",
"assets/stylesheets/palette.css.map": "assets/stylesheets/palette.02db69e1.min.css.map"
"assets/stylesheets/main.css": "assets/stylesheets/main.695576d6.min.css",
"assets/stylesheets/main.css.map": "assets/stylesheets/main.695576d6.min.css.map",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.36d1b78f.min.css",
"assets/stylesheets/palette.css.map": "assets/stylesheets/palette.36d1b78f.min.css.map"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,9 +41,9 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.d6c38d2b.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.695576d6.min.css' | url }}">
{% if palette.scheme or palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.02db69e1.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.36d1b78f.min.css' | url }}">
{% endif %}
{% if palette.primary %}
{% import "partials/palette.html" as map %}

View File

@ -24,12 +24,22 @@
// Helpers
// ----------------------------------------------------------------------------
///
/// Strip units from a number
///
@function strip-units($number) {
@return $number / ($number * 0 + 1);
}
///
/// Convert color in HEX to HSL
///
/// Note, that we need to strip the `deg` units from the `hue` value, as they
/// were added in Color Level 4, which not all browsers support.
///
@function hex2hsl($color) {
@return
round(hue($color)),
round(strip-units(hue($color))),
round(saturation($color)),
round(lightness($color));
}