add styles
This commit is contained in:
parent
932821e7ff
commit
22711ca071
File diff suppressed because one or more lines are too long
|
@ -1,12 +1,69 @@
|
|||
|
||||
@color-main: #3498DB;
|
||||
@color-focus: #0665A2;
|
||||
@color-main: #F890E7;
|
||||
@color-focus: #0BD3D3;
|
||||
@color-other-links: #666;
|
||||
@color-fonts: #333;
|
||||
@color-fonts: #282828;
|
||||
@center-width: 70em;
|
||||
@link-background: rgba(248, 144, 231, 0.3); /* this is just vice pink in rgb */
|
||||
@link-background-hover: rgba(11, 211, 211, 0.4); /* This is just vice blue in rgb */
|
||||
|
||||
/* Fonts */
|
||||
|
||||
/* Source Sans Pro */
|
||||
@font-face {
|
||||
font-family: "Source Sans Pro";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('../fonts/SourceSansPro-Regular.otf.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Source Sans Pro";
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: url('../fonts/SourceSansPro-Black.otf.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Source Sans Pro";
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url('../fonts/SourceSansPro-Bold.otf.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Source Sans Pro";
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url('../fonts/SourceSansPro-Semibold.otf.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Source Sans Pro";
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: url('../fonts/SourceSansPro-Light.otf.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Source Sans Pro";
|
||||
font-style: normal;
|
||||
font-weight: 200;
|
||||
font-display: swap;
|
||||
src: url('../fonts/SourceSansPro-ExtraLight.otf.woff2') format('woff2');
|
||||
}
|
||||
|
||||
/* IBM Plex Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1. */
|
||||
@font-face {
|
||||
font-family: "IBM Plex";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url('../fonts/IBMPlexMono-Medium.otf') format('opentype');
|
||||
}
|
||||
|
||||
// Original Styles
|
||||
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
|
@ -18,16 +75,12 @@ input[type="search"] {
|
|||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: @color-other-links;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
font-family: "Source Sans Pro", sans-serif;
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
background: #EEE;
|
||||
background: white;
|
||||
}
|
||||
|
||||
html {
|
||||
|
@ -35,24 +88,34 @@ html {
|
|||
min-height: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: @color-other-links;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.title h1 {
|
||||
font-size:7em;
|
||||
color:@color-main;
|
||||
color: #1D353B;
|
||||
margin:0 auto;
|
||||
line-height:100px;
|
||||
margin-top:-20px;
|
||||
padding-bottom:20px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.title h1 .Miami {
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.center {
|
||||
max-width: @center-width;
|
||||
text-align: center;
|
||||
background: rgba(255,255,255,0.6);
|
||||
padding: 2em;
|
||||
background: rgb(255,255,255);
|
||||
padding: 3em 3em 2em 3em;
|
||||
margin: 7% auto 0;
|
||||
position: relative;
|
||||
}
|
||||
|
@ -103,23 +166,35 @@ a {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
fieldset #categories {
|
||||
margin-top: -1.5em;
|
||||
}
|
||||
|
||||
.top_margin {
|
||||
position: absolute;
|
||||
bottom: -3.5em;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
background-color: white;
|
||||
padding-bottom: 1em;
|
||||
}
|
||||
|
||||
.top_margin a {
|
||||
display: inline-block;
|
||||
margin-right: 1em;
|
||||
color: #FFF;
|
||||
margin-right: 0.5em;
|
||||
margin-left: 0.5em;
|
||||
text-decoration: none;
|
||||
color: @color-fonts;
|
||||
padding: .5em 1em;
|
||||
border-radius: 4px;
|
||||
font-weight: 500;
|
||||
font-family: "IBM Plex", monospace;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.top_margin a:hover,
|
||||
.top_margin a:focus {
|
||||
text-decoration: underline;
|
||||
.top_margin a:hover::before,
|
||||
.top_margin a:focus::before {
|
||||
content: "/"
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1000px) {
|
||||
|
@ -135,11 +210,13 @@ a {
|
|||
color: @color-fonts;
|
||||
cursor: pointer;
|
||||
font-size: 0.9em;
|
||||
background: @link-background;
|
||||
transition: all 0.8s ease;
|
||||
}
|
||||
|
||||
.checkbox_container label:hover {
|
||||
background: @color-main;
|
||||
color: #FFF;
|
||||
background: @link-background-hover;
|
||||
color: @color-fonts;
|
||||
}
|
||||
|
||||
.checkbox_container input[type="checkbox"] {
|
||||
|
@ -148,8 +225,8 @@ a {
|
|||
}
|
||||
|
||||
.checkbox_container input[type="checkbox"]:checked + label {
|
||||
background: @color-main;
|
||||
color: #FFF;
|
||||
background: @link-background-hover;
|
||||
color: @color-fonts;
|
||||
}
|
||||
|
||||
#categories_container > div {
|
||||
|
@ -183,9 +260,7 @@ a {
|
|||
}
|
||||
.checkbox_container label {
|
||||
display: block;
|
||||
background: #CCC;
|
||||
padding: 1em;
|
||||
border: 1px solid #FFF;
|
||||
}
|
||||
.top_margin { position: static; }
|
||||
#categories .hidden {
|
||||
|
@ -208,24 +283,23 @@ a {
|
|||
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;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.q {
|
||||
padding: 0.5em 3em 0.5em 1em;
|
||||
padding: 0.5em 3em 0.5em 0;
|
||||
width: 100%;
|
||||
font-size: 1.5em;
|
||||
border: 0;
|
||||
color: #666;
|
||||
border-bottom: 1px solid @color-main;
|
||||
color: @color-fonts;
|
||||
transition: all 1.2s ease;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#search_submit {
|
||||
|
@ -233,11 +307,12 @@ a {
|
|||
top: 0;
|
||||
right: 0;
|
||||
border: 0;
|
||||
background:url("../img/search-icon.png") no-repeat scroll center center / 65% auto @color-main;
|
||||
background:url("../img/search-icon.png") no-repeat scroll center center / 57% auto @color-main;
|
||||
text-indent: -9999px;
|
||||
width: 5em;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
transition: all 1.2s ease;
|
||||
}
|
||||
|
||||
#search_submit:hover,
|
||||
|
@ -245,46 +320,44 @@ a {
|
|||
background-color: @color-focus;
|
||||
}
|
||||
|
||||
#search_submit:hover + .q {
|
||||
border-bottom-color: @color-focus;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
background: @color-main;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 15em;
|
||||
height: 100%;
|
||||
padding: 1.5em;
|
||||
text-align: right;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#sidebar #apis {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.right {
|
||||
position: fixed;
|
||||
bottom: 1.5em;
|
||||
width: 15em;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
padding: 0 1.5em;
|
||||
text-align: right;
|
||||
padding-bottom: 0.1em;
|
||||
}
|
||||
|
||||
.right a {
|
||||
color: #FFF;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.right a:hover,
|
||||
.right a:focus {
|
||||
text-decoration: underline;
|
||||
.right a:hover::before,
|
||||
.right a:focus::before {
|
||||
content: "$ ";
|
||||
}
|
||||
|
||||
#preferences {
|
||||
background: url("../img/preference-icon.png") no-repeat right center / 12% auto;
|
||||
padding-right: 1.8em;
|
||||
text-decoration: none;
|
||||
font-family: "IBM Plex", mono;
|
||||
font-weight: 500;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
#preferences:hover,
|
||||
#preferences:focus {
|
||||
|
||||
#preferences:hover::before,
|
||||
#preferences:focus::before {
|
||||
content: "/"
|
||||
}
|
||||
|
||||
#search_url input {
|
||||
|
@ -293,8 +366,9 @@ a {
|
|||
}
|
||||
|
||||
#sidebar > div {
|
||||
margin-bottom: 1em;
|
||||
color: #FFF;
|
||||
margin: 0;
|
||||
margin-right: 1em;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
#sidebar form {
|
||||
|
@ -302,23 +376,19 @@ a {
|
|||
}
|
||||
|
||||
#sidebar input[type="submit"] {
|
||||
background: #CCC;
|
||||
border: 0;
|
||||
padding: 0.5em 1em;
|
||||
cursor: pointer;
|
||||
margin-top: 0.5em;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
#sidebar input[type="submit"]:hover,
|
||||
#sidebar input[type="submit"]:focus {
|
||||
color: #FFF;
|
||||
background-color: @color-focus;
|
||||
}
|
||||
|
||||
#results {
|
||||
padding-right: 17em;
|
||||
padding-left: 2em;
|
||||
padding: 0 17em 0 2em;
|
||||
max-width: 100ch;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.result p {
|
||||
|
@ -366,13 +436,15 @@ a {
|
|||
}
|
||||
|
||||
.result_title a {
|
||||
color: @color-main;
|
||||
color: @color-fonts;
|
||||
background-color: @link-background;
|
||||
text-decoration: none;
|
||||
transition: background 1.2s ease;
|
||||
}
|
||||
|
||||
.result_title a:hover,
|
||||
.result_title a:focus {
|
||||
text-decoration: underline;
|
||||
background-color: @link-background-hover;
|
||||
}
|
||||
|
||||
.cache_link {
|
||||
|
@ -382,7 +454,7 @@ a {
|
|||
}
|
||||
|
||||
.search.center {
|
||||
padding-right: 17em;
|
||||
max-width: 111ch;
|
||||
}
|
||||
|
||||
#answers {
|
||||
|
@ -429,16 +501,17 @@ a {
|
|||
|
||||
input[type="submit"] {
|
||||
display: inline-block;
|
||||
background: @color-main;
|
||||
color: #FFF;
|
||||
background: @link-background;
|
||||
color: @color-fonts;
|
||||
border: 0;
|
||||
padding: 0.6em 1em;
|
||||
padding: 0.5em 2em;
|
||||
cursor: pointer;
|
||||
transition: background 1s ease;
|
||||
}
|
||||
|
||||
input[type="submit"]:hover,
|
||||
input[type="submit"]:focus {
|
||||
background: @color-focus;
|
||||
background: @link-background-hover;
|
||||
}
|
||||
|
||||
.row {
|
||||
|
@ -465,10 +538,10 @@ input[type="submit"]:focus {
|
|||
}
|
||||
|
||||
.row fieldset:last-of-type {
|
||||
display: block;
|
||||
//display: block;
|
||||
width: auto;
|
||||
background: none;
|
||||
padding: 0;
|
||||
//background: none;
|
||||
//padding: 0;
|
||||
}
|
||||
|
||||
.row fieldset:nth-child(odd) {
|
||||
|
@ -476,7 +549,7 @@ input[type="submit"]:focus {
|
|||
}
|
||||
|
||||
.row fieldset:nth-child(2) {
|
||||
min-height: 10.5em;
|
||||
min-height: 9em;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
|
@ -512,6 +585,9 @@ input[type="submit"]:focus {
|
|||
.search.center {
|
||||
padding-right: 2em;
|
||||
}
|
||||
.title h1 {
|
||||
font-size: 15vw;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
|
@ -522,32 +598,25 @@ input[type="submit"]:focus {
|
|||
}
|
||||
|
||||
fieldset {
|
||||
border: 0;
|
||||
border: 2px solid @color-main;
|
||||
border-radius: 5px;
|
||||
margin: 1em 0;
|
||||
background: #CCC;
|
||||
background: white;
|
||||
padding: 1.5em;
|
||||
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
width: auto;
|
||||
margin: auto;
|
||||
text-align: left;
|
||||
border: 1px solid #CCC;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table th {
|
||||
background: #999;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
table tr:nth-child(odd) {
|
||||
background: #CCC;
|
||||
}
|
||||
|
||||
table th,
|
||||
table td {
|
||||
padding: 0.5em 1em;
|
||||
border: 1px solid #FFF;
|
||||
//border: 1px solid @color-fonts;
|
||||
}
|
||||
|
||||
.engine_checkbox label {
|
||||
|
@ -558,12 +627,12 @@ table td {
|
|||
}
|
||||
|
||||
.engine_checkbox .deny {
|
||||
background: @color-main;
|
||||
background: @color-focus;
|
||||
}
|
||||
|
||||
.engine_checkbox .allow {
|
||||
display: none;
|
||||
background: #666;
|
||||
background: @color-main;
|
||||
}
|
||||
|
||||
.engine_checkbox input {
|
||||
|
@ -580,7 +649,7 @@ table td {
|
|||
|
||||
.row input[type="submit"] {
|
||||
font-size: 1em;
|
||||
margin: 1em 0 2em;
|
||||
margin: 1em 2em 2em 0;
|
||||
}
|
||||
|
||||
.row .right {
|
||||
|
@ -605,19 +674,27 @@ table th {
|
|||
}
|
||||
|
||||
legend {
|
||||
background: #EEE;
|
||||
background: white;
|
||||
padding: 0 1em;
|
||||
position: relative;
|
||||
border: 2px solid @color-main;
|
||||
border-radius: 5px;
|
||||
font-family: "IBM Plex", monospace;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
select {
|
||||
border: 1px solid #DDD;
|
||||
padding: 0.5em 0.8em;
|
||||
border: 1px solid @color-fonts;
|
||||
padding: 0.25em 1em;
|
||||
font-size: 1em;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.preferences-actions > * {
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight { background: #f8f8f8; }
|
||||
.highlight .c { color: #408080; font-style: italic } /* Comment */
|
||||
.highlight .err { border: 1px solid #FF0000 } /* Error */
|
||||
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
|
||||
|
@ -693,3 +770,15 @@ select {
|
|||
|
||||
.highlight .lineno::selection { background: transparent; } /* WebKit/Blink Browsers */
|
||||
.highlight .lineno::-moz-selection { background: transparent; } /* Gecko Browsers */
|
||||
|
||||
.about-container {
|
||||
max-width: 90ch;
|
||||
margin: auto;
|
||||
}
|
||||
.about-container a {
|
||||
background-color: @link-background;
|
||||
transition: background 1.2s ease;
|
||||
}
|
||||
.about-container a:hover {
|
||||
background-color: @link-background-hover;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue