]> git.bts.cx Git - cx.git/blobdiff - public/design/css/style.css
Admin fixes
[cx.git] / public / design / css / style.css
index a09110f5aa19d0fe155cf0d17e17a781a7fa7c0f..1c70b7b026020d2d485a7261fceb96e44b882e2b 100644 (file)
@@ -12,6 +12,7 @@
 /* Layout */
 
 body {
+       background: #fcfcfc;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
@@ -30,10 +31,6 @@ body > * {
        margin-right: auto;
 }
 
-header {
-       margin-bottom: 8vh;
-}
-
 header h1 {
        font-size: 2em;
 }
@@ -43,6 +40,15 @@ header h1 a {
        text-decoration: none;
 }
 
+header p {
+       font-size: 0.8em;
+}
+
+nav {
+       margin-top: 2vh;
+       margin-bottom: 4vh;
+}
+
 nav ul {
        list-style: none;
        display: flex;
@@ -131,6 +137,11 @@ a {
        text-underline-offset: 0.08em;
 }
 
+a:hover {
+       background-color: navy;
+       color: #fcfcfc;
+}
+
 a:focus {
        outline: 1px solid currentColor;
        outline-offset: 0.2em;
@@ -142,15 +153,22 @@ article + article {
        padding-top: var(--layout-spacing);
 }
 
-article img {
+article img:not(a *) {
        display: block;
        width: 100%;
-       min-height: 20rem;
-       max-height: 40vh;
+       aspect-ratio: 640 / 360;
+       /*min-height: 20rem;
+       max-height: 40vh;*/
        object-fit: cover;
        margin: 0 auto 1rem !important;
 }
 
+article iframe {
+       display: block;
+       width: 100%;
+       aspect-ratio: 640 / 360;
+}
+
 /*@supports (aspect-ratio: 1) {
        article img {
                max-height: unset;