aboutsummaryrefslogtreecommitdiff
path: root/styles
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-18 11:30:10 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-18 11:30:10 +0200
commit18652c6ff5e10208298bea67ffce6b4ed327c97d (patch)
tree9c0cca8139007641c9fd9a1cbfcff179953a1054 /styles
parent59459df904674bc3eaa95f4203113793c7c7fc9a (diff)
search page without inline css
Diffstat (limited to 'styles')
-rw-r--r--styles/global.css18
-rw-r--r--styles/search.css12
-rw-r--r--styles/utility.css11
3 files changed, 32 insertions, 9 deletions
diff --git a/styles/global.css b/styles/global.css
index 3c28cfc..b6ed028 100644
--- a/styles/global.css
+++ b/styles/global.css
@@ -116,14 +116,20 @@ h1, h2, h3, p, b, i, span, td, th {
table { table-layout: fixed; }
/* table styles */
-td, th {
- padding: 4px;
- font-size: 15px;
+td, th { padding: 4px; }
+
+input {
+ color: var(--foreground);
+ background-color: transparent;
+ font-family: inherit;
+ border: 0;
+ font-size: 1rem; /* why? */
}
input::placeholder {
font-style: italic;
- opacity: .8;
+ opacity: 1;
+ color: var(--gray-600);
}
/* remove chrome's ugly :focus outline */
@@ -135,10 +141,6 @@ input::placeholder {
/* material-ui default state */
svg.MuiSvgIcon-root { transition: none !important; }
-input::placeholder { opacity: .75; }
-input.dark::placeholder { color: var(--text); }
-input.light::placeholder { color: var(--text-alt); }
-
/* editable field status */
*[contenteditable] { border-color: var(--background-alt); }
*[contenteditable="true"]:focus { border-color: var(--disk-a); }
diff --git a/styles/search.css b/styles/search.css
new file mode 100644
index 0000000..06a3918
--- /dev/null
+++ b/styles/search.css
@@ -0,0 +1,12 @@
+.searchBar input {
+ width: calc(100% - 2 * var(--spacing-medium) - 48px);
+ margin: 2px 0;
+}
+
+.results .result .inner .userInfo {
+ left: calc(48px + var(--spacing-medium));
+}
+
+h1.noresults {
+ margin: 24px 32px;
+}
diff --git a/styles/utility.css b/styles/utility.css
index 4331d3a..783b168 100644
--- a/styles/utility.css
+++ b/styles/utility.css
@@ -28,8 +28,17 @@
.a0 { top: 0; bottom: 0; left: 0; right: 0; }
+.dispnone { display: none; }
+.dispinbl { display: inline-block; }
+.dispbl { display: block; }
+
+.valigntop { vertical-align: top; }
+.valignsup { vertical-align: super; }
+
+.center { text-align: center; }
+
.subtile {
- color: var(--gray-300);
+ color: var(--gray-600);
font-style: italic;
}