@@ -65,6 +65,7 @@ garamond =
66 { url = Just "https://fonts.googleapis.com/css?family=EB+Garamond"
66 { url = Just "https://fonts.googleapis.com/css?family=EB+Garamond"
67 , name = "EB Garamond"
67 , name = "EB Garamond"
68 , adjustment =
69 , adjustment =
69 { capital = default.capital
70 { capital = default.capital
70 , lowercase = default.lowercase
71 , lowercase = default.lowercase
@@ -92,6 +93,7 @@ catamaran =
93 { url = Just "https://fonts.googleapis.com/css?family=Catamaran"
94 { url = Just "https://fonts.googleapis.com/css?family=Catamaran"
94 , name = "Catamaran"
95 , name = "Catamaran"
95 , adjustment =
97 , adjustment =
96 { capital = default.capital
98 { capital = default.capital
97 , lowercase = default.lowercase
99 , lowercase = default.lowercase
@@ -119,6 +121,7 @@ poiret =
120 { url = Just "https://fonts.googleapis.com/css?family=Poiret+One"
122 { url = Just "https://fonts.googleapis.com/css?family=Poiret+One"
121 , name = "Poiret One"
123 , name = "Poiret One"
122 , adjustment =
125 , adjustment =
123 { capital = default.capital
126 { capital = default.capital
124 , lowercase = default.lowercase
127 , lowercase = default.lowercase
@@ -152,6 +155,7 @@ roboto =
152 , baseline = default.baseline
155 , baseline = default.baseline
153 , descender = default.descender
156 , descender = default.descender
@@ -283,49 +287,64 @@ adjusted size adjustment =
283 , centerX
287 , centerX
284 , centerY
288 , centerY
286− [ el [ Font.size 32 ] (text "Standard Defaults in CSS")
291+ [ Font.size 32 ]
292+ (text "New Adjustments in Els")
289− , Font.size 120
294+ [ Font.size 85
292− [ Background.color (rgb 0 0.8 0.9)
301+ , Background.color (rgb 0 0.8 0.9)
293− , style "line-height" "normal"
295− , above (el [ Font.size 12 ] (text "line-height: normal"))
302+ , above (el [ Font.size 24, moveUp 6 ] (text "full height"))
308+ , Background.color (rgb 0.9 0.8 0)
297 (text "Typography")
312 (text "Typography")
299− [ Background.color (rgb 0 0.8 0.9)
300− , style "line-height" "1"
301− , above (el [ Font.size 12 ] (text "line-height: 1"))
307− (text "New Adjustments in Els")
312− [ --corrected adjustment.full "corrected"
313− -- , corrected adjustment.capital "corrected capital"
315 [ Font.sizeByCapital
314 [ Font.sizeByCapital
316 , Background.color (rgb 0 0.8 0.9)
316 , Background.color (rgb 0 0.8 0.9)
317− , above (el [ Font.size 12, moveUp 6 ] (text "corrected capital"))
317+ , above (el [ Font.size 24, moveUp 6 ] (text "corrected capital"))
318 , onLeft <|
318 , onLeft <|
320 [ centerY
320 [ centerY
321 , width (px 40)
321 , width (px 40)
322− , height (px 120)
322+ , height (px 85)
323 , Background.color (rgb 0.9 0.8 0)
323 , Background.color (rgb 0.9 0.8 0)
327 (text "Typography")
327 (text "Typography")
329+ , el [ Font.size 32 ] (text "Standard Defaults in CSS")
335+ [ Background.color (rgb 0 0.8 0.9)
336+ , style "line-height" "normal"
338+ , above (el [ Font.size 12 ] (text "line-height: normal"))
342+ [ Background.color (rgb 0 0.8 0.9)
343+ , style "line-height" "1"
344+ , above (el [ Font.size 12 ] (text "line-height: 1"))
329 , row [ spacing 120 ]
348 , row [ spacing 120 ]
330 [ paragraph
349 [ paragraph
331 [ Font.size 25
350 [ Font.size 25
@@ -465,8 +484,6 @@ viewAdjustment label adjustment size left lineHeight updateWith =
467 [ moveLeft left
486 [ moveLeft left
469− -- , moveUp (0.125 * toFloat size)
470 , height (px (round (toFloat size * lineHeight)))
487 , height (px (round (toFloat size * lineHeight)))
@@ -522,23 +539,6 @@ viewAdjustment label adjustment size left lineHeight updateWith =
522 , Border.width 1
539 , Border.width 1
523 , Border.color (Element.rgb 0.5 0.5 0.5)
540 , Border.color (Element.rgb 0.5 0.5 0.5)
524 , Background.color (Element.rgb 1 1 1)
541 , Background.color (Element.rgb 1 1 1)
529− -- , width (px 1200)
531− -- , Border.color (rgb 0 0 0)
533− -- , Border.widthEach
543 , value = adjustment
543 , value = adjustment