about summary refs log tree commit diff stats
path: root/frontend/static
diff options
context:
space:
mode:
authorAlan Pearce2024-05-17 13:53:34 +0200
committerAlan Pearce2024-05-17 13:58:29 +0200
commit29f2099e68a3226060308c66e5b1aa19fb2ba8e0 (patch)
treeb5e94de477eeed6647cdc77fff8a39e05d704111 /frontend/static
parent054d2b3bf7eb4c5a5401565e86031f22ea754062 (diff)
downloadsearchix-29f2099e68a3226060308c66e5b1aa19fb2ba8e0.tar.lz
searchix-29f2099e68a3226060308c66e5b1aa19fb2ba8e0.tar.zst
searchix-29f2099e68a3226060308c66e5b1aa19fb2ba8e0.zip
fix(css): support browsers without css nesting
Diffstat (limited to 'frontend/static')
-rw-r--r--frontend/static/style.css66
1 files changed, 31 insertions, 35 deletions
diff --git a/frontend/static/style.css b/frontend/static/style.css
index 4596fb3..eebba81 100644
--- a/frontend/static/style.css
+++ b/frontend/static/style.css
@@ -21,30 +21,28 @@ body > header {
   display: flex;
   justify-content: center;
   padding: unset;
-  & > :only-child {
-    margin-block-start: 0;
-  }
-  & > nav {
-    width: min(var(--min-width), 90%);
-    display: flex;
-    padding: 0.5rem 0;
-
-    a {
-      margin-bottom: unset;
-      font-size: 1.15rem;
-    }
-
-    & h1 {
-      margin: unset;
-      font-size: 1.15rem;
-      line-height: 2;
-      & > a {
-        margin-left: unset;
-        padding-left: unset;
-        border: 1px transparent;
-      }
-    }
-  }
+}
+body > header > :only-child {
+  margin-block-start: 1ex;
+}
+header > nav {
+  width: min(var(--min-width), 90%);
+  display: flex;
+  padding: 0.5rem 0;
+}
+header > nav a {
+  margin-bottom: 1ex;
+  font-size: 1.15rem;
+}
+nav > h1 > a {
+  margin-left: unset;
+  padding-left: unset;
+  border: 1px transparent;
+}
+body > header h1 {
+  margin: unset;
+  font-size: 1.15rem;
+  line-height: 2;
 }
 
 form {
@@ -98,19 +96,17 @@ pre:has(> code) {
   background: var(--bg);
 }
 
-section {
-  nav {
-    display: flex;
-    justify-content: space-between;
-    align-items: baseline;
-    a[rel="next"] {
-      margin-left: auto;
-    }
-  }
-  footer {
-    text-align: center;
+section > nav {
+  display: flex;
+  justify-content: space-between;
+  align-items: baseline;
+  a[rel="next"] {
+    margin-left: auto;
   }
 }
+section > footer {
+  text-align: center;
+}
 
 .error {
   background: var(--accent-error);