Made Leggero-v2 responsive + tweaks

This commit is contained in:
MarcThibeault 2014-10-09 19:18:19 -04:00
parent d600ec2e46
commit 80c06d9faa
5 changed files with 96 additions and 52 deletions

View File

@ -3,6 +3,7 @@
<head> <head>
<title>{$flatpress.title|tag:wp_title:'&laquo;'}</title> <title>{$flatpress.title|tag:wp_title:'&laquo;'}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$flatpress.charset}" /> <meta http-equiv="Content-Type" content="text/html; charset={$flatpress.charset}" />
<meta name="viewport" content="width=device-width, initial-scale=1">
{action hook=wp_head} {action hook=wp_head}
</head> </head>

View File

@ -52,8 +52,9 @@ body#inline-body input {
#body-container { #body-container {
text-align: left; text-align: left;
font-size: 0.85em;
width: 80% !important; width: 80% !important;
width: 80%px; /* fix for I.E. */ min-width: 1000px;
margin: 0 auto 0 auto; margin: 0 auto 0 auto;
padding: 5px; padding: 5px;
background-color: rgba(255,255,255,1); background-color: rgba(255,255,255,1);

View File

@ -12,19 +12,33 @@ Module: style.css
*/ */
/* ===== NORMAL DESIGN ===== */
@media (min-width: 720px) {
/* ===== COLUMN ===== */ /* ===== COLUMN ===== */
#column { #column {
float: right; width: 20%;
width: 230px !important; display: inline-block;
width: 230px;
font-size: 80% !important;
font-size: 75%; font-size: 75%;
height:1%; height:1%;
margin-bottom: 5px; margin-bottom: 5px;
padding: 10px;
color: white; color: white;
} }
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 719px) {
/* ===== COLUMN ===== */
#column {
text-align: center;
float: center;
width: 100%;
display: inline-block;
font-size: 100%;
height:1%;
margin: 5px auto;
color: white;
}
}
#column h4 { #column h4 {
/* Titles of the sections */ /* Titles of the sections */

View File

@ -35,11 +35,15 @@ p { margin: .5em 0 }
img { border: none } img { border: none }
blockquote { blockquote {
width: 90%; width: 80%;
color: #666; color: #444;
background-color: #ddd;
margin: 1em 1em; margin: 1em 1em;
padding: 0 10px; padding: 0 10px;
border-left: 5px solid #bbb border-left: 5px solid #aaa;
border-right: 1px solid #aaa;
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
} }
pre, code { pre, code {
@ -48,8 +52,7 @@ pre, code {
} }
pre { pre {
border-top: 1px solid #ddd; border: 1px dashed #555;
border-bottom: 1px solid #ddd;
background-color: #efefef; background-color: #efefef;
overflow: auto; overflow: auto;
@ -118,7 +121,7 @@ h1 {
/* Title of the blog */ /* Title of the blog */
font-size: 2.2em; font-size: 2.2em;
letter-spacing: 2px; letter-spacing: 2px;
margin: 2em 0 0 0; margin: 1em 0 1em 0;
} }
h2 { } /* see h2.date */ h2 { } /* see h2.date */
@ -133,29 +136,14 @@ h3 {
h4 { font-size: 1.2em; } h4 { font-size: 1.2em; }
/* ===== DIV CONTAINER ALL ELEMENTS BLOCK ===== */
#body-container {
text-align: left;
width: 1000px !important;
width: 1000px; /* fix for I.E. */
margin: 0 auto 0 auto;
padding: 5px;
background-color: rgba(0,0,0,0.8);
border-radius: 3px;
}
/* ===== HEAD ===== */ /* ===== HEAD ===== */
#head { #head {
font-family: 'book antiqua', georgia, garamond, times, 'times new roman', serif; font-family: 'book antiqua', georgia, garamond, times, 'times new roman', serif;
padding: 25px 25px 25px 25px; padding: 25px 25px 25px 25px;
margin: 10px; margin: 10px;
/*background: #aa4142 url('../imgs/shade.png1') repeat-x;*/ /*background: #aa4142 url('../imgs/shade.png1') repeat-x;*/
background: rgba(184,60,50,0.7); background: rgba(184,60,50,0.4);
border: #bbb 1px solid; border: black 1px solid;
border-radius: 10px ; border-radius: 10px ;
} }
@ -170,6 +158,7 @@ h4 { font-size: 1.2em; }
/* ===== DIV CONTAINER "MAIN" ===== */ /* ===== DIV CONTAINER "MAIN" ===== */
#outer-container { #outer-container {
position: relative; position: relative;
@ -178,7 +167,21 @@ h4 { font-size: 1.2em; }
padding: 0px; padding: 0px;
} }
/* ===== NORMAL DESIGN ===== */
@media (min-width: 720px) {
body { margin: 10px 0 10px 0 }
/* ===== BODY CONTAINER ===== */
#body-container {
text-align: left;
max-width: 1000px;
width: 100%;
margin: 0 auto 0 auto;
padding: 5px;
background-color: rgba(0,0,0,0.8);
border-radius: 3px;
}
/* ===== MAIN ===== */ /* ===== MAIN ===== */
#main h4 { margin: 2em 0 0 0} #main h4 { margin: 2em 0 0 0}
@ -186,14 +189,42 @@ h4 { font-size: 1.2em; }
#main { #main {
float:left; float:left;
position: relative; position: relative;
width: 65% !important;
width: 65%; width: 65%;
font-size: 100%; font-size: 100%;
padding: 25px; padding: 25px;
margin: 20px; margin: 20px;
background-color: rgba(255,255,255,0.8); background-color: rgba(255,255,255,0.9);
border-radius: 3px; border-radius: 3px;
} }
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 719px) {
body { margin: 0 0 0 0 }
/* ===== BODY CONTAINER ===== */
#body-container {
text-align: left;
width: 100%;
margin: 0 auto 0 auto;
padding-top: 5px;
background-color: rgba(0,0,0,0.8);
}
/* ===== MAIN ===== */
#main h4 { margin: 2em 0 0 0}
#main {
float: center;
width: 90%;
font-size: 100%;
padding: 15px;
margin: 10px auto;
background-color: rgba(255,255,255,0.9);
border-radius: 3px;
}
}
#main p { line-height: 1.5em; margin-top: 1.2em; } #main p { line-height: 1.5em; margin-top: 1.2em; }
@ -280,10 +311,10 @@ h4 { font-size: 1.2em; }
/* ===== FOOTER ===== */ /* ===== FOOTER ===== */
#footer { #footer {
clear: both; clear: both;
text-align: center;
font-size: 80%; font-size: 80%;
color: #555; color: white;
padding: 5px; padding: 5px;
border-top: #bbb 1px solid
} }
* { * {

View File

@ -20,9 +20,6 @@ Module: style.css
/* imports column (where widgets usually go) rules */ /* imports column (where widgets usually go) rules */
@import url(column.css); @import url(column.css);
/* defines rules specific to the front page */
body { margin: 10px 0 0 0 }
#comments li.comment-admin { #comments li.comment-admin {
padding:1em padding:1em
} }