Skip to content

Commit abd6b4a

Browse files
author
Lars Selstad
committed
Added browser prefixes to flex stuff
1 parent 6a2125b commit abd6b4a

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

‎css/main.css‎

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ body{
3030
}
3131

3232
.site{
33-
text-align: left;
34-
padding:2em2em0;
35-
float: left;
36-
flex:1;
33+
text-align: left;
34+
padding:2em2em0;
35+
float: left;
36+
-webkit-box-flex:1;
37+
-webkit-flex:1;
38+
-ms-flex:1;
39+
flex:1;
3740
}
3841

3942
.navbar{
@@ -47,20 +50,42 @@ body{
4750
background-color:#a09a93;
4851
text-align: right;
4952
padding:0.3em2em;
53+
-webkit-box-ordinal-group:2;
54+
-webkit-order:1;
55+
-ms-flex-order:1;
5056
order:1;
5157
display: none;
5258
}
5359

60+
#wrapper{
61+
display: -webkit-box;
62+
display: -webkit-flex;
63+
display: -ms-flexbox;
64+
display: flex;
65+
margin:0 auto;
66+
max-width:940px;
67+
}
68+
5469
@media (max-width:700px){
5570
#wrapper{
71+
-webkit-box-orient: vertical;
72+
-webkit-box-direction: normal;
73+
-webkit-flex-direction: column;
74+
-ms-flex-direction: column;
5675
flex-direction: column;
5776
}
5877
.site{
78+
-webkit-box-ordinal-group:3;
79+
-webkit-order:2;
80+
-ms-flex-order:2;
5981
order:2;
6082
}
6183
.navbar{
6284
width:100%;
63-
order:3;
85+
-webkit-box-ordinal-group:4;
86+
-webkit-order:3;
87+
-ms-flex-order:3;
88+
order:3;
6489
}
6590
#menuLinkBar{
6691
display: block;
@@ -1510,13 +1535,6 @@ pre.sh_sourceCode .sh_value{
15101535
font-family: Georgia,"Times New Roman", serif !important;
15111536
}
15121537

1513-
1514-
#wrapper{
1515-
display: flex;
1516-
margin:0 auto;
1517-
max-width:940px;
1518-
}
1519-
15201538
header{
15211539
margin-top:20px;
15221540
position: relative;

0 commit comments

Comments
(0)