From 29918e833894d2e61e85378ab714d49542195d6c Mon Sep 17 00:00:00 2001 From: Leonardo Taglialegne Date: Sun, 22 May 2022 19:39:46 +0200 Subject: [PATCH] Fix documentation for rgb, rgba, hsl, hsla, hex Remove extraneous parenthesis to fix documentation visualizaiton on packages.elm-lang.org --- src/Css.elm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Css.elm b/src/Css.elm index ace7f0ab..c2038ba9 100644 --- a/src/Css.elm +++ b/src/Css.elm @@ -1565,7 +1565,7 @@ initial = } -{-| [RGB color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()) +{-| [RGB color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb) in functional notation. -} rgb : Int -> Int -> Int -> Color @@ -1579,7 +1579,7 @@ rgb r g b = } -{-| [RGBA color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgba()). +{-| [RGBA color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgba). -} rgba : Int -> Int -> Int -> Float -> Color rgba r g b alpha = @@ -1592,7 +1592,7 @@ rgba r g b alpha = } -{-| [HSL color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#hsl()) +{-| [HSL color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#hsl) `s` and `l` values are expressed as a number between 0 and 1 and are converted to the appropriate percentage at compile-time -} @@ -1611,7 +1611,7 @@ hsl hueVal saturationVal lightnessVal = hslaToRgba value hueVal saturationVal lightnessVal 1 -{-| [HSLA color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#hsla()) +{-| [HSLA color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#hsla) `s` and `l` values are expressed as a number between 0 and 1 and are converted to the appropriate percentage at compile-time -} @@ -1631,7 +1631,7 @@ hsla hueVal saturationVal lightnessVal alpha = hslaToRgba value hueVal saturationVal lightnessVal alpha -{-| [RGB color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()) +{-| [RGB color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb) in hexadecimal notation. You can optionally include `#` as the first character, for benefits like syntax highlighting in editors, ease of copy/pasting from tools which express these as e.g. `#abcdef0`, etc.