Ponysearch/searx/static/default/less/style.less

614 lines
8.2 KiB
Text
Raw Normal View History

/*
* searx, A privacy-respecting, hackable metasearch engine
*
* To convert "style.less" to "style.css" run: $make styles
*/
@import "definitions.less";
@import "mixins.less";
// Main LESS-Code
html {
font-family: sans-serif;
font-size: 0.9em;
.text-size-adjust;
color: @color-font;
padding: 0;
margin: 0;
}
body, #container {
padding: 0;
margin: 0;
}
#container {
width: 100%;
position: absolute;
top: 0;
}
2014-03-20 11:08:55 +01:00
// Search-Field
@import "search.less";
// Autocompleter
@import "autocompleter.less";
.row {
max-width: 800px;
2014-03-06 16:25:15 +01:00
margin: 20px auto;
text-align: justify;
h1 {
font-size: 3em;
margin-top: 50px;
}
p {
padding: 0 10px;
max-width: 700px;
}
h3,ul {
margin: 4px 8px;
}
}
.hmarg {
margin: 0 20px;
border: 1px solid @color-hmarg-border;
padding: 4px 10px;
}
a {
&:link.hmarg {
color: @color-hmarg-font;
}
&:visited.hmarg {
color: @color-hmarg-font;
}
&:active.hmarg {
color: @color-hmarg-font-hover;
}
&:hover.hmarg {
color: @color-hmarg-font-hover;
}
}
.top_margin {
margin-top: 60px;
}
.center {
text-align: center;
}
h1 {
font-size: 5em;
}
div.title {
2014-03-18 09:38:23 +01:00
background: url('../img/searx.png') no-repeat;
width: 100%;
background-position: center;
h1 {
visibility: hidden;
}
}
input[type="submit"] {
padding: 2px 6px;
margin: 2px 4px;
display: inline-block;
background: @color-download-button-background;
color: @color-download-button-font;
.rounded-corners;
border: 0;
cursor: pointer;
}
input[type="checkbox"] {
visibility: hidden;
}
fieldset {
margin: 8px;
border: 1px solid @color-settings-fieldset;
}
#categories {
margin: 0 10px;
}
.checkbox_container {
display: inline-block;
position: relative;
margin: 0 3px;
padding: 0px;
input {
display: none;
}
}
.checkbox_container label, .engine_checkbox label {
cursor: pointer;
padding: 4px 10px;
margin: 0;
display: block;
text-transform: capitalize;
.user-select;
}
.checkbox_container input[type="checkbox"]:checked + label {
background: @color-categories-item-selected;
2014-03-05 16:03:13 +01:00
color: @color-categories-item-selected-font;
}
.engine_checkbox {
padding: 4px;
}
label {
&.allow {
background: @color-settings-label-allowed-background;
padding: 4px 8px;
color: @color-settings-label-allowed-font;
display: none;
}
&.deny {
background: @color-settings-label-deny-background;
padding: 4px 8px;
color: @color-settings-label-deny-font;
display: inline;
}
}
.engine_checkbox input[type="checkbox"]:checked + label {
&:nth-child(2) + label {
display: none;
}
&.allow {
display: inline;
}
}
a {
text-decoration: none;
color: @color-url-font;
&:visited {
color: @color-url-visited-font;
}
}
.result {
margin: 19px 0 18px 0;
padding: 0;
clear: both;
}
.result_title {
margin-bottom: 0;
a {
color: @color-result-link-font;
font-weight: normal;
font-size: 1.1em;
&:hover {
text-decoration: underline;
}
&:visited {
color: @color-result-link-visited-font;
}
}
}
.cache_link {
font-size: 10px !important;
}
.result {
h3 {
font-size: 1em;
word-wrap:break-word;
margin: 5px 0 1px 0;
padding: 0
}
.content {
font-size: 0.8em;
margin: 0;
padding: 0;
max-width: 54em;
word-wrap:break-word;
line-height: 1.24;
2014-09-28 16:51:41 +02:00
img {
float: left;
margin-right: 5px;
max-width: 200px;
max-height: 100px;
}
br.last {
clear: both;
}
}
.url {
font-size: 0.8em;
margin: 0 0 3px 0;
padding: 0;
max-width: 54em;
word-wrap:break-word;
color: @color-result-url-font;
}
2014-03-14 10:04:36 +01:00
.published_date {
font-size: 0.8em;
color: @color-result-publishdate-font;
margin: 5px 20px;
}
}
.engines {
color: @color-engines-font;
}
.small_font {
font-size: 0.8em;
}
.small p {
margin: 2px 0;
}
.right {
float: right;
}
.invisible {
display: none;
}
.left {
float: left;
}
2014-05-09 02:04:20 +02:00
.highlight {
color: @color-highlight;
}
.content .highlight {
color: @color-black;
}
.image_result {
float: left;
margin: 10px 10px;
position: relative;
height: 160px;
img {
border: 0;
height: 160px;
}
p {
margin: 0;
padding: 0;
span a {
display: none;
color: @color-result-image-span-font;
}
&:hover span a {
display: block;
position: absolute;
bottom: 0;
right: 0;
padding: 4px;
background-color: @color-result-image-span-background-hover;
font-size: 0.7em;
}
}
}
.torrent_result {
border-left: 10px solid @color-result-torrent-border;
padding-left: 3px;
p {
margin: 3px;
font-size: 0.8em;
}
}
.definition_result {
border-left: 10px solid @color-result-definition-border;
padding-left: 3px;
}
.percentage {
position: relative;
width: 300px;
div {
background: @color-percentage-div-background;
}
}
table {
width: 100%;
}
td {
padding: 0 4px;
}
tr {
&:hover {
background: @color-settings-tr-hover;
}
}
#results {
2014-05-09 01:27:55 +02:00
margin: auto;
padding: 0;
2014-05-09 01:27:55 +02:00
width: @results-width;
margin-bottom: 20px;
}
#sidebar {
position: absolute;
2014-05-09 01:27:55 +02:00
top: 100px;
2014-05-10 06:42:33 +02:00
right: 10px;
margin: 0 2px 5px 5px;
padding: 0 2px 2px 2px;
2014-05-09 01:27:55 +02:00
width: 14em;
input {
2014-05-09 01:32:21 +02:00
padding: 0;
margin: 3px;
2014-05-09 01:27:55 +02:00
font-size: 0.8em;
display: inline-block;
background: transparent;
color: @color-result-search-url-font;
cursor: pointer;
}
input[type="submit"] {
text-decoration: underline;
}
}
2014-09-28 16:51:41 +02:00
#suggestions, #answers {
2014-05-09 01:27:55 +02:00
2014-09-28 16:51:41 +02:00
margin-top: 20px;
}
#suggestions, #answers, #infoboxes {
2014-05-10 06:40:56 +02:00
2014-05-10 06:39:07 +02:00
input {
padding: 0;
margin: 3px;
font-size: 0.8em;
display: inline-block;
2014-09-28 16:51:41 +02:00
background: transparent;
color: @color-result-search-url-font;
2014-05-10 06:39:07 +02:00
cursor: pointer;
}
2014-09-28 16:51:41 +02:00
input[type="submit"] {
2014-05-10 06:39:07 +02:00
text-decoration: underline;
2014-09-28 16:51:41 +02:00
}
form {
2014-05-10 06:39:07 +02:00
display: inline;
}
}
2014-09-28 16:51:41 +02:00
#infoboxes {
position: absolute;
top: 220px;
right: 20px;
margin: 0px 2px 5px 5px;
padding: 0px 2px 2px;
max-width: 21em;
.infobox {
margin: 10px 0 10px;
border: 1px solid #ddd;
padding: 5px;
font-size: 0.8em;
img {
max-width: 20em;
max-heigt: 12em;
display: block;
margin: 5px;
padding: 5px;
}
h2 {
margin: 0;
}
table {
width: auto;
td {
vertical-align: top;
}
}
input {
font-size: 1em;
}
br {
clear: both;
}
}
}
#search_url {
margin-top: 8px;
input {
border: 1px solid @color-result-search-url-border;
padding: 4px;
color: @color-result-search-url-font;
2014-05-09 01:27:55 +02:00
width: 14em;
display: block;
margin: 4px;
2014-05-09 01:27:55 +02:00
font-size: 0.8em;
}
}
#preferences {
top: 10px;
padding: 0;
border: 0;
2014-03-18 09:38:23 +01:00
background: url('../img/preference-icon.png') no-repeat;
background-size: 28px 28px;
opacity: 0.8;
width: 28px;
height: 30px;
display: block;
* {
display: none;
}
}
#pagination {
clear: both;
2014-05-09 01:27:55 +02:00
width: 40em;
}
#apis {
margin-top: 8px;
clear: both;
}
2014-05-09 01:27:55 +02:00
@media screen and (max-width: @results-width) {
#results {
margin: auto;
padding: 0;
width: 90%;
}
2014-07-07 14:29:12 +02:00
.github {
display: none;
}
2014-05-09 01:27:55 +02:00
.checkbox_container {
display: block;
width: 90%;
//float: left;
label {
border-bottom: 0;
}
}
2014-05-09 01:27:55 +02:00
}
2014-09-28 16:51:41 +02:00
@media screen and (max-width: 75em) {
#infoboxes {
position: inherit;
max-width: inherit;
.infobox {
clear:both;
img {
float: left;
max-width: 10em;
}
}
}
#categories {
font-size: 90%;
clear: both;
.checkbox_container {
margin-top: 2px;
margin: auto;
}
}
.right {
display: none;
postion: fixed !important;
top: 100px;
right: 0px;
}
2014-05-09 01:27:55 +02:00
#sidebar {
position: static;
max-width: @results-width;
margin: 0 0 2px 0;
padding: 0;
float: none;
border: none;
width: auto;
input {
border: 0;
}
}
2014-05-09 01:27:55 +02:00
#apis {
display: none;
}
2014-05-09 01:27:55 +02:00
#search_url {
display: none;
}
.result {
border-top: 1px solid @color-result-top-border;
margin: 7px 0 6px 0;
}
}
.favicon {
float: left;
margin-right: 4px;
margin-top: 2px;
}
2014-03-06 16:25:15 +01:00
.preferences_back {
background: none repeat scroll 0 0 @color-settings-return-background;
border: 0 none;
.rounded-corners;
cursor: pointer;
display: inline-block;
margin: 2px 4px;
padding: 4px 6px;
a {
color: @color-settings-return-font;
}
}