aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/css/search.css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-08 13:25:07 -0500
committerGitHub <noreply@github.com>2020-11-08 13:25:07 -0500
commit6081e3bef0b6c557896dbc09338e0b963d7f6e4c (patch)
tree3dd83a63a80238d33e0369864ff4ee4c5312a6a0 /ext/mixed/css/search.css
parent8dc961a61f1526067c6b29882e802de02c8b0327 (diff)
Make query parser mode select in the base HTML (#1009)
Diffstat (limited to 'ext/mixed/css/search.css')
-rw-r--r--ext/mixed/css/search.css48
1 files changed, 47 insertions, 1 deletions
diff --git a/ext/mixed/css/search.css b/ext/mixed/css/search.css
index cd986233..066cd726 100644
--- a/ext/mixed/css/search.css
+++ b/ext/mixed/css/search.css
@@ -17,6 +17,7 @@
/* Variables */
:root {
+ --padding: 10px;
--main-content-size: 700px;
--main-content-padding: 10px;
--shadow-color: rgba(0, 0, 0, 0.185);
@@ -33,6 +34,11 @@
--animation-duration: 0s;
--animation-duration2: calc(var(--animation-duration) * 2);
+ --material-arrow-dimension1: 5px;
+ --material-arrow-dimension2: 10px;
+ --input-height: 32px;
+ --input-width-large: 200px;
+
--text-color-default: #222222;
--background-color: #ffffff;
--background-color-light: #ffffff;
@@ -95,6 +101,30 @@ h1 {
border-bottom: var(--thin-border-size) solid var(--separator-color1);
}
+/* Material design select */
+select {
+ width: var(--input-width-large);
+ height: var(--input-height);
+ line-height: var(--input-height);
+ border: 0;
+ border-radius: 0;
+ box-sizing: border-box;
+ padding: 0 0.5em;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+ background-image: url(/mixed/img/material-down-arrow.svg);
+ background-repeat: no-repeat;
+ background-position: right var(--padding) center;
+ background-color: var(--input-background-color);
+ background-size: var(--material-arrow-dimension2) var(--material-arrow-dimension1);
+ cursor: pointer;
+ outline: 0;
+}
+select::-ms-expand {
+ display: none;
+}
+
/* Material design toggle switch */
label.toggle {
cursor: default;
@@ -302,15 +332,31 @@ label.toggle {
align-items: center;
}
.search-option {
- display: flex;
flex: 0 1 auto;
margin: 0.5em 1em;
align-items: center;
cursor: pointer;
}
+.search-option:not([hidden]) {
+ display: flex;
+}
.search-option-label {
padding-left: 0.5em;
}
+.search-option-pre-label {
+ padding-right: 0.5em;
+}
+#query-parser-mode-container {
+ flex: 1 1 auto;
+}
+#query-parser-mode-container:not([hidden]) {
+ display: flex;
+}
+#query-parser-mode-select {
+ flex: 1 1 auto;
+ max-width: 220px;
+ min-width: 100px;
+}
/* Search styles */
#intro {