summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/less/toolkit.less
diff options
context:
space:
mode:
authorLiquidLemon <liquidlemon@protonmail.com>2018-08-18 17:43:29 +0200
committerGitHub <noreply@github.com>2018-08-18 17:43:29 +0200
commit425c4d9a1657263e324d9e7cc212a11ceb21db5c (patch)
tree0621bc5b4383df81ab928a70f1cc3bd9728b8e18 /searx/static/themes/simple/less/toolkit.less
parent2190e2f35da54d320830aaa03959259bab49356f (diff)
parentd377563723d2917fb7ee38c2f4cbdc4e19fb53ac (diff)
downloadsearxng-425c4d9a1657263e324d9e7cc212a11ceb21db5c.tar.gz
searxng-425c4d9a1657263e324d9e7cc212a11ceb21db5c.zip
Merge branch 'master' into master
Diffstat (limited to 'searx/static/themes/simple/less/toolkit.less')
-rw-r--r--searx/static/themes/simple/less/toolkit.less134
1 files changed, 128 insertions, 6 deletions
diff --git a/searx/static/themes/simple/less/toolkit.less b/searx/static/themes/simple/less/toolkit.less
index 641747c6c..46ea17b3a 100644
--- a/searx/static/themes/simple/less/toolkit.less
+++ b/searx/static/themes/simple/less/toolkit.less
@@ -20,7 +20,16 @@ html.js .show_if_nojs {
}
.invisible {
- display: none;
+ display: none !important;
+}
+
+.list-unstyled {
+ list-style-type: none;
+
+ li {
+ margin-top: 4px;
+ margin-bottom: 4px;
+ }
}
.danger {
@@ -39,6 +48,15 @@ html.js .show_if_nojs {
border-radius: 5px;
}
+// kbd
+kbd {
+ padding: 2px 4px;
+ margin: 1px;
+ font-size: 90%;
+ color: white;
+ background: black;
+}
+
// table
table {
@@ -65,6 +83,32 @@ tr {
}
}
+// pre
+.pre() {
+ display: block;
+ font-size: 0.8em;
+ word-break: break-all;
+ margin: 0.1em;
+ .select-all-on-focus();
+}
+
+div.selectable_url {
+ display: block;
+ border: 1px solid @color-result-search-url-border;
+ padding: 4px;
+ color: @color-result-search-url-font;
+ width: 100%;
+ display: block;
+ margin: 0.1em;
+ overflow: hidden;
+ height: 1.2em;
+ line-height: 1.2em;
+
+ pre {
+ .pre();
+ }
+}
+
// dialog
.dialog() {
position: relative;
@@ -95,6 +139,28 @@ tr {
margin: 1px 0 0 0;
}
+ table {
+ width: auto;
+ }
+
+ tr {
+ vertical-align: text-top;
+
+ &:hover {
+ background: transparent;
+ }
+ }
+
+ td {
+ padding: 0 1em 0 0;
+ }
+
+
+ h4 {
+ margin-top: 0.3em;
+ margin-bottom: 0.3em;
+ }
+
}
.dialog-error {
@@ -113,6 +179,19 @@ tr {
.ion-warning();
}
+.dialog-modal {
+ .dialog();
+ background: white;
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ /* bring your own prefixes */
+ transform: translate(-50%, -50%);
+ z-index: 100000;
+ margin: 0 50% 0 0;
+ box-shadow: 0 0 1em;
+}
+
// btn-collapse
.btn-collapse {
cursor: pointer;
@@ -128,7 +207,7 @@ tr {
border: none;
}
-// tabs
+/* -- tabs --*/
.tabs .tabs > label {
font-size: 90%;
}
@@ -215,7 +294,7 @@ html body .tabs > input:checked {
}
}
-// select
+/* -- select -- */
select {
height: 28px;
margin: 0 1em 0 0;
@@ -251,7 +330,7 @@ select {
}
-// checkbox-onoff
+/* -- checkbox-onoff -- */
@supports (border-radius: 50px) {
.checkbox-onoff {
display: inline-block;
@@ -285,7 +364,7 @@ select {
}
}
-// checkbox
+/* -- checkbox --*/
@supports (transform: rotate(-45deg)) {
.checkbox {
width: 20px;
@@ -325,7 +404,7 @@ select {
}
}
- // disabled : can't be focused, show only the check mark
+ // disabled : can''t be focused, show only the check mark
input[disabled] + label {
background-color: transparent !important;
box-shadow: none !important;
@@ -344,3 +423,46 @@ select {
width: 100%;
}
}
+
+/* -- loader -- */
+.loader,
+.loader:after {
+ border-radius: 50%;
+ width: 2em;
+ height: 2em;
+}
+.loader {
+ margin: 1em auto;
+ font-size: 10px;
+ position: relative;
+ text-indent: -9999em;
+ border-top: 0.5em solid rgba(0, 0, 0, 0.2);
+ border-right: 0.5em solid rgba(0, 0, 0, 0.2);
+ border-bottom: 0.5em solid rgba(0, 0, 0, 0.2);
+ border-left: 0.5em solid rgba(255, 255, 255, 0);
+ -webkit-transform: translateZ(0);
+ -ms-transform: translateZ(0);
+ transform: translateZ(0);
+ -webkit-animation: load8 1.2s infinite linear;
+ animation: load8 1.2s infinite linear;
+}
+@-webkit-keyframes load8 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+@keyframes load8 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+} \ No newline at end of file