Skip to content
Snippets Groups Projects
Commit 67c47cbb authored by Dominic Meiser's avatar Dominic Meiser Committed by Thomas Schneider
Browse files

Nicer indication for when you selected a template

parent 2e3fc90b
Branches
Tags
1 merge request!3A bunch of design stuff
...@@ -12,8 +12,11 @@ body { ...@@ -12,8 +12,11 @@ body {
font-family: "Noto Sans", sans-serif; font-family: "Noto Sans", sans-serif;
padding: 0; padding: 0;
margin: 0; margin: 0;
background-color: #fff;
color: #000;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@media not print { @media not print {
/* This magic constant approximately corresponds to 48px at A4 size, but scales /* This magic constant approximately corresponds to 48px at A4 size, but scales
* with the viewport/iframe size * with the viewport/iframe size
......
// the threshold at which we consider the screen "mobile" // the threshold at which we consider the screen "mobile"
@mobile_threshold: 700px; @mobile_threshold: 700px;
// the border around the preview (per color)
@preview_border: .3rem;
* { * {
box-sizing: border-box; box-sizing: border-box;
...@@ -132,8 +134,8 @@ main { ...@@ -132,8 +134,8 @@ main {
/* A4 aspect ratio: √2:1 */ /* A4 aspect ratio: √2:1 */
aspect-ratio: 1.4142135623730951; aspect-ratio: 1.4142135623730951;
background-color: #fff; border: @preview_border solid var(--bg);
color: #000; padding: @preview_border;
} }
.preview-small { .preview-small {
...@@ -168,6 +170,7 @@ textarea { ...@@ -168,6 +170,7 @@ textarea {
fieldset { fieldset {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 2 * @preview_border;
} }
fieldset > div { fieldset > div {
...@@ -198,13 +201,17 @@ fieldset input { ...@@ -198,13 +201,17 @@ fieldset input {
fieldset img, fieldset img,
fieldset iframe, fieldset iframe,
.preview-small { .preview-small {
border: 3px solid lightgray; border-color: var(--fg);
border-radius: 10px; border-radius: 3 * @preview_border;
}
input[type="radio"] {
&:checked + label > img,
&:checked + iframe {
border-color: var(--accent2);
} }
input[type="radio"]:checked { &:not(:checked) + iframe {
& + label > img, opacity: .8;
& + iframe {
border:3px solid red;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment