@@ -2789,16 +2789,11 @@ lengthConverter units unitLabel numericValue =
27892789
27902790{- | Convenience length value that compiles to 0 with no units.
27912791
2792- stylesheet
2793- [ ul
2794- [ padding zero ]
2795- ]
2792+ css [ padding zero ]
27962793
27972794...compiles to:
27982795
2799- ul {
2800- padding: 0;
2801- }
2796+ padding: 0;
28022797
28032798-}
28042799zero :
@@ -7897,23 +7892,19 @@ animationNames identifiers =
78977892 [ textDecoration underline ]
78987893 ]
78997894
7900- stylesheet
7901- [ class FancyLink
7902- [ color (rgb 128 64 32)
7903- , underlineOnHover
7904- ]
7905- ]
7895+ css
7896+ [ color (rgb 128 64 32)
7897+ , underlineOnHover
7898+ ]
79067899
79077900...has the same result as:
79087901
7909- stylesheet
7910- [ class FancyLink
7911- [ color (rgb 128 64 32)
7912- , textDecoration none
7913- , hover
7902+ css
7903+ [ color (rgb 128 64 32)
7904+ , textDecoration none
7905+ , hover
79147906 [ textDecoration underline ]
7915- ]
7916- ]
7907+ ]
79177908
79187909-}
79197910batch : List Style -> Style
@@ -7923,16 +7914,11 @@ batch =
79237914
79247915{- | Define a custom property.
79257916
7926- stylesheet
7927- [ body
7928- [ property "-webkit-font-smoothing" "none" ]
7929- ]
7917+ css [ property "-webkit-font-smoothing" "none" ]
79307918
79317919...outputs
79327920
7933- body {
7934- -webkit-font-smoothing: none;
7935- }
7921+ -webkit-font-smoothing: none;
79367922
79377923-}
79387924property : String -> String -> Style
@@ -7972,16 +7958,19 @@ This can be useful for deprecated pseudo-classes such as `-moz-any-link`, which
79727958[has been deprecated and removed](https://www.fxsitecompat.com/en-CA/docs/2016/any-link-css-pseudo-class-has-been-unprefixed/)
79737959in modern browsers.
79747960
7975- stylesheet
7976- [ body
7977- [ pseudoClass "-moz-any-link" [ color (hex "f00") ] ]
7978- ]
7961+ button
7962+ [ css [ pseudoClass "-moz-any-link" [ color (hex "f00") ] ] ]
7963+ [ text "Whee!" ]
79797964
79807965...outputs
79817966
7982- body:-moz-any-link {
7983- color: #f00;
7984- }
7967+ <button class="f9fcb2">Whee!</button>
7968+
7969+ <style>
7970+ .f9fcb2:-moz-any-link {
7971+ color: #f00;
7972+ }
7973+ </style>
79857974
79867975-}
79877976pseudoClass : String -> List Style -> Style
@@ -8267,16 +8256,19 @@ valid =
82678256
82688257{- | Define a custom pseudo-element.
82698258
8270- stylesheet
8271- [ body
8272- [ pseudoElement "-webkit-scrollbar" [ display none ] ]
8273- ]
8259+ textarea
8260+ [ css [ pseudoElement "-webkit-scrollbar" [ display none ] ] ]
8261+ []
82748262
82758263...outputs
82768264
8277- body::-webkit-scrollbar {
8278- display: none;
8279- }
8265+ <textarea class="d84ff7"></textarea>
8266+
8267+ <style>
8268+ .d84ff7::-webkit-scrollbar {
8269+ display: none;
8270+ }
8271+ </style>
82808272
82818273-}
82828274pseudoElement : String -> List Style -> Style
@@ -8340,10 +8332,7 @@ CSS specification, and as such are intentionally unsupported.
83408332Using them is a bad idea, but if the fate of the world depends on it, you can
83418333fall back on something like this:
83428334
8343- stylesheet
8344- [ button
8345- [ property "border-left" "thin" ]
8346- ]
8335+ css [ property "border-left" "thin" ]
83478336
83488337-}
83498338thin : IntentionallyUnsupportedPleaseSeeDocs
@@ -8359,10 +8348,7 @@ CSS specification, and as such are intentionally unsupported.
83598348Using them is a bad idea, but if the fate of the world depends on it, you can
83608349fall back on something like this:
83618350
8362- stylesheet
8363- [ button
8364- [ property "border-left" "thick" ]
8365- ]
8351+ css [ property "border-left" "thick" ]
83668352
83678353-}
83688354thick : IntentionallyUnsupportedPleaseSeeDocs
0 commit comments