Skip to content

Commit bb1d722

Browse files
committed
dialog css wip
1 parent b9ccee4 commit bb1d722

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed

ghcjs/delivery-calculator/src/App/Widgets/Main.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mainWidget st =
2121
[ style_
2222
[ ("padding", "0"),
2323
("margin", "0 auto"),
24+
("max-width", "100%"),
2425
("min-height", "100vh"),
2526
("display", "flex"),
2627
("flex-direction", "column"),
@@ -32,7 +33,10 @@ mainWidget st =
3233
<> [ Flex.flexCol main_ id $ screenWidget st
3334
]
3435
<> [ footer_
35-
[ style_ [("text-align", "center")]
36+
[ style_
37+
[ ("text-align", "center"),
38+
("margin-bottom", "1rem")
39+
]
3640
]
3741
$ tosWidget
3842
: br_ mempty

ghcjs/delivery-calculator/src/Main.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,10 @@ viewModel st =
244244
],
245245
link_
246246
[ rel_ "stylesheet",
247-
-- href_ "static/css/mvp.css"
247+
-- href_ "https://unpkg.com/[email protected]/css/nes.min.css"
248+
href_ "static/css/mvp.css"
248249
-- href_ "static/css/simple.min.css"
249-
href_ "static/css/tacit-css-1.8.1.min.css"
250+
-- href_ "static/css/tacit-css-1.8.1.min.css"
250251
-- href_ "node_modules/@lowlighter/matcha/dist/matcha.css"
251252
],
252253
link_

ghcjs/delivery-calculator/static/css/app.css

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33
}
44

55
html {
6-
width: 100vw;
6+
width: 100%;
77
min-height: 100vh;
88
}
99

10-
body {
11-
padding: 0;
12-
margin: 0 auto;
13-
}
14-
1510
html,
1611
main {
1712
margin: 0;
1813
padding: 0;
1914
}
2015

16+
body {
17+
width: 100%;
18+
padding: 0;
19+
margin: 0 auto;
20+
}
21+
2122
header,
2223
footer {
2324
margin-left: 0;
@@ -26,13 +27,25 @@ footer {
2627
padding-right: 0;
2728
}
2829

30+
nav {
31+
margin-bottom: 1rem;
32+
}
33+
2934
textarea {
3035
resize: vertical;
3136
pointer-events: auto;
3237
}
3338

3439
dialog {
40+
width: 100%;
41+
height: fit-content;
42+
max-height: calc(100% - 4rem);
43+
max-width: min(calc(100% - 4rem), 640px);
3544
overflow: auto;
45+
padding: 1rem;
46+
z-index: 9999;
47+
position: initial;
48+
transform: initial;
3649
}
3750

3851
button {

0 commit comments

Comments
 (0)