From 3002de560f363886fddcfa5520ef5520bf78fcc8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 19 Mar 2021 17:12:23 +0200 Subject: Improved card (post) scaling, slight modifications of global styling --- src/styles.css | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/styles.css') diff --git a/src/styles.css b/src/styles.css index 75fe905..af9bbeb 100644 --- a/src/styles.css +++ b/src/styles.css @@ -140,6 +140,11 @@ input[type=file]::file-selector-button { justify-content: flex-end; } +.flex-center-align-children > * { + display: flex; + align-items: center; +} + .justify-children-center > * { display: flex; justify-content: center; @@ -220,13 +225,22 @@ input[type=file]::file-selector-button { /* Cards */ .card { - margin: .5em auto; + margin: 0.5em auto; box-sizing: border-box; padding: var(--card-padding); background-color: var(--card-bg); position: relative; } +@media screen and (max-width: 30rem) { + .card { + font-size: 0.8em; + } + + .card button { + font-size: 0.9em; + } +} /* Effects */ @@ -250,6 +264,14 @@ input[type=file]::file-selector-button { transform: scale(0.9); } +/* Misc */ + +.centered-content { + max-width: var(--max-width); + margin: 0 auto; + box-sizing: border-box; +} + /* Inputs, the type found in login and register */ .input-field { -- cgit v1.2.3