@@ -105,9 +105,11 @@ If alignment is set on elements in a layout such as `row`, then the element will
106will result in a layout like
106will result in a layout like
108− |-|-| |-| |-|
108+ |-|-| |-| |-|
110−Where there are two elements on the left, one in the center, and one on the right.
110+Where there are two elements on the left, one on the right, and one in the center of the space between the elements on the left and right.
112+**Note** For text alignment, check out `Element.Font`!
112@docs centerX, centerY, alignLeft, alignRight, alignTop, alignBottom
114@docs centerX, centerY, alignLeft, alignRight, alignTop, alignBottom
@@ -1532,13 +1534,21 @@ type Orientation
1532classifyDevice : { window | height : Int, width : Int } -> Device
1534classifyDevice : { window | height : Int, width : Int } -> Device
1533classifyDevice window =
1535classifyDevice window =
1534 { class =
1536 { class =
1535− if window.width <= 600 then
1539+ if window.width < window.height then
1545+ if shortSide <= 600 then
1538− else if window.width > 600 && window.width <= 1200 then
1548+ else if shortSide > 600 && shortSide <= 1200 then
1541− else if window.width > 1200 && window.width <= 1800 then
1551+ else if shortSide > 1200 && shortSide <= 1800 then
@@ -1555,7 +1565,7 @@ classifyDevice window =
1555{-| When designing it's nice to use a modular scale to set spacial rythms.
1565{-| When designing it's nice to use a modular scale to set spacial rythms.
1557 scaled =
1567 scaled =
1558− Scale.modular 16 1.25
1568+ Element.modular 16 1.25
1560A modular scale starts with a number, and multiplies it by a ratio a number of times.
1570A modular scale starts with a number, and multiplies it by a ratio a number of times.
1561Then, when setting font sizes you can use:
1571Then, when setting font sizes you can use: