Merge pull request #129 from courgette/courgette

responsive theme courgette
This commit is contained in:
Adam Tauber 2014-11-20 15:48:31 +01:00
commit a5fc08c369
2 changed files with 139 additions and 21 deletions

View File

@ -25,6 +25,32 @@ html {
min-height: 100%;
}
.title h1 {
background: url(../img/searx.png) no-repeat;
width: 319px;
height: 62px;
text-indent: -9999px;
margin: 0.5em auto 1em;
}
.center {
max-width: 55em;
text-align: center;
background: rgba(255,255,255,0.6);
padding: 4em 2em;
margin: 7% auto 0;
position: relative;
}
.center.search {
position: static;
width: auto;
background: none;
margin: auto;
padding-top: 1.8em;
}
@media screen and (min-width: 1001px) {
.center:after {
content: "";
z-index: -1;
@ -39,34 +65,6 @@ html {
.center.search:after {
content: none;
}
.title h1 {
background: url(../img/searx.png) no-repeat;
width: 319px;
height: 62px;
text-indent: -9999px;
margin: 0.5em auto 1em;
}
.center {
width: 55em;
text-align: center;
background: rgba(255,255,255,0.6);
padding: 4em 2em;
margin: 7% auto 0;
position: relative;
/*position: absolute;
top: 50%;
left: 50%;
margin:-220px 0 0 -408px;*/
}
.center.search {
position: static;
width: auto;
background: none;
margin: auto;
padding-top: 1.8em;
}
.autocompleter-choices {
@ -106,11 +104,19 @@ html {
text-decoration: underline;
}
@media screen and (max-width: 1000px) {
.center { background: none; }
.top_margin a {
color: #333;
}
}
.checkbox_container { margin-top: 1.5em; }
.checkbox_container label {
padding: 0.5em 1em;
color: #333;
cursor: pointer;
font-size: 0.9em;
}
.checkbox_container label:hover {
background: #3498DB;
@ -127,10 +133,70 @@ html {
color: #FFF;
}
#categories > div {
#categories_container > div {
display: inline-block;
}
#categories .hidden {
display: none;
position: absolute;
bottom: 1em;
left: 0;
text-align: center;
width: 100%;
font-size: 0.9em;
font-style: italic;
color: #333;
}
#categories:hover .hidden {
display: block;
}
@media screen and (max-width: 900px) {
#categories_container { letter-spacing: -5px; }
#categories_container > div {
letter-spacing: normal;
margin-top: 1em;
}
.checkbox_container {
margin: 0;
}
.checkbox_container label {
display: block;
background: #CCC;
padding: 1em;
border: 1px solid #FFF;
}
.top_margin { position: static; }
#categories .hidden {
position: static;
display: block;
}
}
@media screen and (max-width: 900px) and (min-width: 501px) {
#categories_container > div {
width: 31%;
margin-left: 2.333%;
}
#categories_container > div:nth-child(3n+1) { margin-left: 0; }
}
@media screen and (max-width: 500px) {
#categories_container > div {
width: 48%;
margin-left: 2%;
font-size: 0.9em;
}
#categories_container > div:nth-child(2n+1) { margin-left: 0; }
.title h1 {
background: url(../img/searx-mobile.png) no-repeat;
width: 200px;
height: 39px;
}
}
#search_wrapper {
position: relative;
}
@ -284,6 +350,12 @@ html {
text-decoration: underline;
}
.cache_link {
color: #666;
font-size: 0.9em;
font-style: italic;
}
.search.center {
padding-right: 17em;
}
@ -339,6 +411,10 @@ input[type="submit"]:focus {
margin: auto;
}
.row a {
color: #3498db;
}
.row form {
letter-spacing: -5px;
}
@ -368,6 +444,48 @@ input[type="submit"]:focus {
min-height: 10.5em;
}
@media screen and (max-width: 900px) {
.row {
margin: 0 1em;
}
.row fieldset { width: 49%; }
.row fieldset,
.row fieldset:nth-child(odd) {
margin-right: 0;
}
.row fieldset:first-child {
width: 100%;
margin-right: 0;
}
.row fieldset:nth-child(even) {
margin-right: 2%;
}
}
@media screen and (max-width: 800px) {
.row fieldset { width: 100%; }
select { width: 100%; }
table { font-size: 0.8em; }
.right {display: none;}
#sidebar { display: none; }
#results { padding: 0 2em; }
.search.center {
padding-right: 2em;
}
}
@media screen and (max-width: 400px) {
.row #categories_container > div {
width: 100%;
margin-left: 0;
}
}
fieldset {
border: 0;
margin: 1em 0;

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB