Update css to be more mobile friendly
This commit is contained in:
@ -7,22 +7,47 @@ body {
|
||||
padding: 0;
|
||||
}
|
||||
#header-inner, #content, #footer-inner {
|
||||
width: 80%;
|
||||
min-width: 45em;
|
||||
max-width: 60em;
|
||||
margin: 0 auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#main, #sidebar {
|
||||
position: relative;
|
||||
}
|
||||
#main {
|
||||
float: left;
|
||||
width: 73%;
|
||||
}
|
||||
#sidebar {
|
||||
float: right;
|
||||
width: 23%;
|
||||
}
|
||||
#footer {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
@media (min-width: 751px) {
|
||||
#header-inner, #content, #footer-inner {
|
||||
width: 80%;
|
||||
min-width: 45em;
|
||||
}
|
||||
#main {
|
||||
float: left;
|
||||
width: 73%;
|
||||
}
|
||||
#sidebar {
|
||||
float: right;
|
||||
width: 23%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 750px) {
|
||||
#header-inner, #content, #footer-inner {
|
||||
width: 95%;
|
||||
}
|
||||
#main {
|
||||
float: left;
|
||||
width: 100%;
|
||||
clear: both;
|
||||
}
|
||||
#sidebar {
|
||||
float: left;
|
||||
position: relative;
|
||||
width: 75%;
|
||||
left: 12.5%;
|
||||
}
|
||||
#sidebar.optional {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user