Skip to content

Commit 7023dcc

Browse files
committed
website: make header looks better on small screen
1 parent 5ed27fe commit 7023dcc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

website/src/components/HeaderLarge.re

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let styles =
55
StyleSheet.create(
66
Style.{
77
"menu":
8-
style(
8+
viewStyle(
99
~justifyContent=`center,
1010
~alignItems=`center,
1111
~borderTopWidth=8.,
@@ -18,60 +18,60 @@ let styles =
1818
(),
1919
),
2020
"barWrapper":
21-
style(~backgroundColor=Consts.Colors.dark, ~overflow=`visible, ())
21+
viewStyle(~backgroundColor=Consts.Colors.dark, ~overflow=`visible, ())
2222
->unsafeAddStyle({"overflow-y": "visible", "overflow-x": "hidden"}),
2323
"bar":
24-
style(
24+
viewStyle(
2525
~flexDirection=`row,
2626
~flexWrap=`wrap,
2727
~justifyContent=`spaceBetween,
2828
(),
2929
),
3030

3131
"logoLink":
32-
style(
32+
viewStyle(
3333
~flexGrow=1.,
3434
~flexShrink=1.,
3535
~position=`relative,
3636
~zIndex=1,
3737
(),
3838
),
3939
"logo":
40-
style(~flexGrow=1., ~flexDirection=`row, ~alignItems=`center, ()),
40+
viewStyle(~flexGrow=1., ~flexDirection=`row, ~alignItems=`center, ()),
4141
"logoText":
42-
style(
42+
textStyle(
4343
~fontSize=18.,
4444
~fontWeight=`_700,
4545
~color=Consts.Colors.light,
4646
(),
4747
),
48-
"search": style(),
48+
"search": viewStyle(),
4949
"links":
50-
style(
50+
viewStyle(
5151
~flexGrow=1.,
5252
~flexShrink=1.,
5353
~flexDirection=`row,
5454
~flexWrap=`wrap,
55-
~justifyContent=`center,
55+
~justifyContent=`flexEnd,
5656
~alignItems=`center,
5757
(),
5858
),
5959
"link":
60-
style(
60+
textStyle(
6161
~fontSize=18.,
6262
~lineHeight=18. *. 1.7,
6363
~fontWeight=`_300,
6464
~color=Consts.Colors.light,
6565
(),
6666
),
6767
"linkActive":
68-
style(
68+
textStyle(
6969
~textDecorationLine=`underline,
7070
~textDecorationStyle=`solid,
7171
(),
7272
),
7373
"icons":
74-
style(
74+
viewStyle(
7575
~flexGrow=1.,
7676
~flexShrink=1.,
7777
~flexDirection=`row,
@@ -80,7 +80,7 @@ let styles =
8080
(),
8181
),
8282
"icon":
83-
style(
83+
textStyle(
8484
~display=`flex,
8585
~flexDirection=`row,
8686
~justifyContent=`center,

0 commit comments

Comments
 (0)