1module Tests.ColumnAlignment exposing (..)
5import Testable.Element as Element exposing (..)
6import Testable.Element.Background as Background
7import Testable.Element.Font as Font
9import Tests.Palette as Palette exposing (..)
15 Testable.Runner.show view
22 , Background.color blue
30 el [ width (px 100), height (px 100) ]
35 colContainer attrs children =
36 column ([ Background.color lightGrey, spacing 20, width (px 100), height (px 500) ] ++ attrs) children
38 tallContainer attrs children =
39 column ([ Background.color lightGrey, spacing 20, width (px 100), height fill ] ++ attrs) children
42 [ width fill, spacing 20 ]
43 [ el [] (text "Alignment Within a Column")
51 [ box [ alignBottom, label "first" ]
63 [ box [ alignLeft, label "first" ]
64 , box [ centerX, label "second" ]
65 , box [ alignRight, label "third" ]
77 , box [ alignBottom, label "third" ]
81 , box [ alignBottom, label "second" ]
85 [ box [ alignBottom, label "first" ]
92 [ colContainer [ height fill ]
93 [ box [ centerY, label "solo" ]
97 , box [ centerY, label "middle" ]
103 , box [ centerY, label "last" ]
106 , text "multiple centerY"
107 , row [ height (px 800), spacing 20 ]
114 , box [ alignBottom ]
127 , text "top, center, bottom"
130 [ box [ alignTop, label "first" ]
132 , box [ alignBottom, label "last" ]
137 , box [ alignBottom ]
140 [ box [ alignLeft, alignTop ]
141 , box [ centerX, centerY ]
142 , box [ alignRight, alignBottom ]
145 , el [ width fill ] (text "Column in a Row")
146 , row [ width fill, spacing 20, label "row" ]
147 [ box [ alignLeft, alignTop, label "box" ]
153 , Background.color lightGrey
164 , Background.color lightGrey
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list