Made Leggero-v2 responsive + tweaks
This commit is contained in:
parent
d600ec2e46
commit
80c06d9faa
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>{$flatpress.title|tag:wp_title:'«'}</title>
|
<title>{$flatpress.title|tag:wp_title:'«'}</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>
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -12,18 +12,32 @@ Module: style.css
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* ===== NORMAL DESIGN ===== */
|
||||||
|
@media (min-width: 720px) {
|
||||||
|
/* ===== COLUMN ===== */
|
||||||
|
#column {
|
||||||
|
width: 20%;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 75%;
|
||||||
|
height:1%;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* ===== COLUMN ===== */
|
/* ===== RESPONSIVE DESIGN ===== */
|
||||||
#column {
|
@media (max-width: 719px) {
|
||||||
float: right;
|
/* ===== COLUMN ===== */
|
||||||
width: 230px !important;
|
#column {
|
||||||
width: 230px;
|
text-align: center;
|
||||||
font-size: 80% !important;
|
float: center;
|
||||||
font-size: 75%;
|
width: 100%;
|
||||||
height:1%;
|
display: inline-block;
|
||||||
margin-bottom: 5px;
|
font-size: 100%;
|
||||||
padding: 10px;
|
height:1%;
|
||||||
color: white;
|
margin: 5px auto;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#column h4 {
|
#column h4 {
|
||||||
|
@ -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,21 +167,63 @@ h4 { font-size: 1.2em; }
|
|||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ===== NORMAL DESIGN ===== */
|
||||||
|
@media (min-width: 720px) {
|
||||||
|
|
||||||
|
body { margin: 10px 0 10px 0 }
|
||||||
|
|
||||||
/* ===== MAIN ===== */
|
/* ===== BODY CONTAINER ===== */
|
||||||
#main h4 { margin: 2em 0 0 0}
|
#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 ===== */
|
||||||
float:left;
|
#main h4 { margin: 2em 0 0 0}
|
||||||
position: relative;
|
|
||||||
width: 65% !important;
|
#main {
|
||||||
width: 65%;
|
float:left;
|
||||||
font-size: 100%;
|
position: relative;
|
||||||
padding: 25px;
|
width: 65%;
|
||||||
margin: 20px;
|
font-size: 100%;
|
||||||
background-color: rgba(255,255,255,0.8);
|
padding: 25px;
|
||||||
border-radius: 3px;
|
margin: 20px;
|
||||||
|
background-color: rgba(255,255,255,0.9);
|
||||||
|
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user