mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Removed units from hsla() color functions
This commit is contained in:
parent
a43679b104
commit
24b185a759
@ -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"
|
||||
}
|
3
material/assets/stylesheets/main.695576d6.min.css
vendored
Normal file
3
material/assets/stylesheets/main.695576d6.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.695576d6.min.css.map
Normal file
1
material/assets/stylesheets/main.695576d6.min.css.map
Normal file
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
3
material/assets/stylesheets/palette.36d1b78f.min.css
vendored
Normal file
3
material/assets/stylesheets/palette.36d1b78f.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 %}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user