summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/less/toolkit.less
diff options
context:
space:
mode:
authorAlex <alex@al-f.net>2018-08-09 16:13:50 +0200
committerAlexandre Flament <alex@al-f.net>2018-08-14 17:21:30 +0200
commit3ba0d0516e5cabce8ebcc9a27c0fe069fa23f52c (patch)
treedffd7311f1bf9bba9386101c67f5e03c30a53116 /searx/static/themes/simple/less/toolkit.less
parent845ba79e7532dedad2bb96e5d68504b6729bee14 (diff)
simple theme update
- npm package update - apply #1226 - implement vim help dialog - display cookies and search URL with preferences - allow to enable / disable Open Access DOI rewrite - add a clear text button on the left of the search button - implement #1011 : the HTML title page is not set when using POST - remove searx/static/themes/simple/img/loader.gif - use full width when only there are only images as result
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