Skip to content

Commit 77a0255

Browse files
author
Lars Selstad
committed
Change layout with flexbox and remove some unused CSS
1 parent 1ce213b commit 77a0255

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

‎css/main.css‎

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ time, mark, audio, video{
2222
body{
2323
font-family: sans-serif;
2424
line-height:1;
25-
margin:2em;
2625
font-size:14px;
2726
line-height:22px;
2827
font-family:"adelle", Georgia,"Times New Roman", serif;
@@ -32,17 +31,28 @@ body{
3231

3332
.site{
3433
text-align: left;
35-
width:42em;
36-
margin:0 auto;
37-
padding:02em02em;
34+
padding:2em2em0;
3835
float: left;
36+
flex:1;
3937
}
4038

4139
.navbar{
4240
float: left;
4341
text-align: left;
4442
width:20em;
45-
margin-right:10px;
43+
padding:2em;
44+
}
45+
46+
@media (max-width:700px){
47+
body{
48+
flex-direction:column;
49+
}
50+
51+
.navbar{
52+
width:100%;
53+
54+
order:2;
55+
}
4656
}
4757

4858
ol,ul{
@@ -81,6 +91,11 @@ body{
8191
line-height:22px;
8292
font-family:"adelle", Georgia,"Times New Roman", serif;
8393
color:#4e443c;
94+
display: flex;
95+
margin:0;
96+
padding:0;
97+
width:100%;
98+
height:100%;
8499
}
85100

86101
.windows.chromebody,
@@ -1481,11 +1496,6 @@ pre.sh_sourceCode .sh_value{
14811496
font-style: normal;
14821497
}
14831498

1484-
1485-
body{
1486-
}
1487-
1488-
14891499
.windows.chromebody*,
14901500
.windows.ie8body*{
14911501
font-family: Georgia,"Times New Roman", serif !important;
@@ -1601,6 +1611,7 @@ header a.button h3{
16011611
p{
16021612
color:#6b5d52;
16031613
margin-bottom:15px;
1614+
word-wrap: break-word;
16041615
}
16051616

16061617
#front-mainp{

0 commit comments

Comments
(0)