Improve mobile version of Green theme

This commit is contained in:
Frederic Guillot 2013-07-20 09:10:55 -04:00
parent 25acb9bf28
commit 3a79a96b5a
3 changed files with 126 additions and 89 deletions

View File

@ -559,7 +559,7 @@ section li {
width: 50%; width: 50%;
float: right; float: right;
display: block; display: block;
line-height: 25px; line-height: 30px;
} }
nav ul { nav ul {

View File

@ -1,5 +1,5 @@
/* Basic example theme */ /* Basic example theme */
/* Indentation: 4 spaces - Line Endings: Unix */
/* Import the original stylesheet if you want, it's up to you... */ /* Import the original stylesheet if you want, it's up to you... */
@import url("../../../assets/css/app.css"); @import url("../../../assets/css/app.css");

View File

@ -1,159 +1,196 @@
@import url("../../../assets/css/app.css"); @import url("../../../assets/css/app.css");
body { body {
background-color: #f5fec9 ; background-color: #f5fec9;
color: #4c4c4c; color: #4c4c4c;
font-family: 'Verdana', Arial, sans-serif; font-family: 'Verdana', Arial, sans-serif;
font-size: 15px; font-size: 15px;
max-width: 800px; max-width: 800px;
padding-bottom: 20px; padding-bottom: 20px;
} }
a { a {
color: #336600; color: #336600;
text-decoration: underline; text-decoration: underline;
} }
a:hover { a:hover {
color: #336600; color: #336600;
text-decoration: none; text-decoration: none;
} }
h1, h2, h3 { h1, h2, h3 {
color: #4c4c4c; color: #4c4c4c;
margin: 0; margin: 0;
} }
h3 { h3 {
margin-top: 5px; margin-top: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
header { header {
margin: 0; margin: 0;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
border-left: 1px solid #CACACA; border-left: 1px solid #CACACA;
border-right: 1px solid #CACACA; border-right: 1px solid #CACACA;
border-bottom: 1px solid #CACACA; border-bottom: 1px solid #CACACA;
background: #fefefe; background: #fefefe;
background: -moz-linear-gradient(top, #fefefe 0%, #e5e5e5 100%); background: -moz-linear-gradient(top, #fefefe 0%, #e5e5e5 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(100%,#e5e5e5)); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(100%,#e5e5e5));
background: -webkit-linear-gradient(top, #fefefe 0%,#e5e5e5 100%); background: -webkit-linear-gradient(top, #fefefe 0%,#e5e5e5 100%);
background: -o-linear-gradient(top, #fefefe 0%,#e5e5e5 100%); background: -o-linear-gradient(top, #fefefe 0%,#e5e5e5 100%);
background: -ms-linear-gradient(top, #fefefe 0%,#e5e5e5 100%); background: -ms-linear-gradient(top, #fefefe 0%,#e5e5e5 100%);
background: linear-gradient(to bottom, #fefefe 0%,#e5e5e5 100%); background: linear-gradient(to bottom, #fefefe 0%,#e5e5e5 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefefe', endColorstr='#e5e5e5',GradientType=0 ); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefefe', endColorstr='#e5e5e5',GradientType=0 );
} }
a.logo { a.logo {
margin-left: 5px; margin-left: 5px;
} }
a.logo:hover { a.logo:hover {
color: #000; color: #000;
} }
header li a { header li a {
color: #434343; color: #434343;
text-decoration: none; text-decoration: none;
padding-top: 3px; padding-top: 3px;
padding-left: 9px; padding-left: 9px;
padding-right: 9px; padding-right: 9px;
padding-bottom: 3px; padding-bottom: 3px;
} }
header li a:hover { header li a:hover {
color: #336600; color: #336600;
text-decoration: underline; text-decoration: underline;
} }
header li { header li {
padding-left: 0; padding-left: 0;
} }
nav .active a { nav .active a {
border: 1px solid #C6DA95; border: 1px solid #C6DA95;
-moz-border-radius: 8px; -moz-border-radius: 8px;
border-radius: 8px; border-radius: 8px;
background-color: #FBFDF0; background-color: #FBFDF0;
margin-left: 6px; margin-left: 6px;
margin-right: 6px; margin-right: 6px;
font-weight: normal; font-weight: normal;
} }
section.page { section.page {
background-color: #fff; background-color: #fff;
border-left: 1px solid #CACACA; border-left: 1px solid #CACACA;
border-right: 1px solid #CACACA; border-right: 1px solid #CACACA;
border-bottom: 1px solid #CACACA; border-bottom: 1px solid #CACACA;
border-radius: 0px 0px 8px 8px; border-radius: 0px 0px 8px 8px;
padding-bottom: 10px; padding-bottom: 10px;
padding-top: 15px;
} }
.page-header { .page-header {
margin-bottom: 15px; margin-bottom: 15px;
} }
.page-header ul { .page-header ul {
margin-right: 5px; margin-right: 5px;
} }
.page-header h2, .page-section h2 { .page-header h2, .page-section h2 {
border-bottom: 1px dotted #CACACA; border-bottom: 1px dotted #CACACA;
font-family: Georgia, serif; font-family: Georgia, serif;
font-size: 20px; font-size: 20px;
font-weight: normal; font-weight: normal;
margin: 0; margin: 0;
padding: 6px 10px; padding: 6px 10px;
} }
.items article { .items article {
border: none; border: none;
background-color: inherit; background-color: inherit;
} }
.items a:hover { .items a:hover {
color: #336600; color: #336600;
} }
form { form {
border: none; border: none;
padding-left: 10px; padding-left: 10px;
} }
.form-actions { .form-actions {
margin-top: 20px; margin-top: 20px;
margin-left: 10px;
} }
input[type="email"], input[type="tel"], input[type="password"], input[type="text"], textarea, select { input[type="email"],
-webkit-border-radius: 4px; input[type="tel"],
border-radius: 4px; input[type="password"],
border: 1px solid #CCC; input[type="text"],
margin-top: 3px; textarea,
padding: 5px; select {
font-family: 'Verdana', Arial, sans-serif; -webkit-border-radius: 4px;
font-size: 15px; border-radius: 4px;
border: 1px solid #CCC;
margin-top: 3px;
padding: 5px;
font-family: 'Verdana', Arial, sans-serif;
font-size: 15px;
} }
input[type="email"]:focus, input[type="tel"]:focus, input[type="password"]:focus, input[type="text"]:focus, textarea:focus { input[type="email"]:focus,
border: 1px solid #336600; input[type="tel"]:focus,
box-shadow: none; input[type="password"]:focus,
input[type="text"]:focus,
textarea:focus {
border: 1px solid #336600;
box-shadow: none;
} }
.alert { .alert {
margin-left: 10px; margin-left: 10px;
margin-right: 10px; margin-right: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.btn-blue { .btn-blue {
background-color: #708F51; background-color: #708F51;
border-color: #065806; border-color: #065806;
} }
.btn-blue:hover, .btn-blue:focus { .btn-blue:hover,
background-color: #609C22; .btn-blue:focus {
border-color: #0A7C0A; background-color: #609C22;
} border-color: #0A7C0A;
}
@media only screen and (max-width: 480px) {
body {
border-left: 1px solid #CACACA;
border-right: 1px solid #CACACA;
padding-bottom: 0;
}
header {
padding: 0;
border: none;
}
header li {
background-color: #fff;
}
section.page {
border: none;
border-radius: 0;
}
.item {
padding-bottom: 0;
}
}