diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index 48924743..3aad3eff 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -145,6 +145,7 @@ h2.tabs a:hover { } .highlights { text-align: center; + margin-bottom: calc(var(--box-margin) * 2); } .highlights img.colophon { display: inline-block; @@ -183,8 +184,6 @@ input[type="submit"], } .wrapper .button, .wrapper input { - height: 56px; - line-height: 43px; font-weight: bold; } diff --git a/umap/static/umap/css/form.css b/umap/static/umap/css/form.css index 52bc94ca..e47e4aa0 100644 --- a/umap/static/umap/css/form.css +++ b/umap/static/umap/css/form.css @@ -83,7 +83,7 @@ input[type="submit"] { border-radius: 2px; font-weight: normal; cursor: pointer; - padding: 3px 12px; + padding: var(--button-padding); border: none; text-decoration: none; background-color: white; @@ -342,11 +342,12 @@ input.switch:checked ~ label:after { width: 100% } .button-bar { - grid-gap: 7px; + grid-gap: var(--gutter); } .umap-multiplechoice.by2, .button-bar.half { grid-template-columns: 1fr 1fr; + justify-items: center; } .button-bar.by3, .button-bar.by5, @@ -363,6 +364,7 @@ input.switch:checked ~ label:after { .button-bar .button, .button-bar [type="button"] { display: inline-block; + width: 100%; } .umap-multiplechoice input[type='radio'] { display: none; diff --git a/umap/static/umap/nav.css b/umap/static/umap/nav.css index 6d771110..5f41f1ac 100644 --- a/umap/static/umap/nav.css +++ b/umap/static/umap/nav.css @@ -41,7 +41,7 @@ footer .i18n_switch { display: flex; flex-direction: column; } -.umap-nav a { +.umap-nav a:not(.button) { color: var(--color-darkBlue); padding: .4rem; } @@ -51,7 +51,7 @@ footer .i18n_switch { .umap-nav h1 { margin-bottom: 0; } -.umap-nav h1 a { +.umap-nav h1 a:not(.button) { background-image: url("./img/logo.svg"); background-position: left center; background-repeat: no-repeat; @@ -74,7 +74,6 @@ html[dir="rtl"] .umap-nav h1 a { .umap-nav .button, .umap-nav .button:hover { text-decoration: none; - min-width: 150px; margin-inline-start: 1rem; } diff --git a/umap/static/umap/vars.css b/umap/static/umap/vars.css index 4d755937..c294c0f5 100644 --- a/umap/static/umap/vars.css +++ b/umap/static/umap/vars.css @@ -24,6 +24,7 @@ --button-primary-color: var(--color-darkBlue); --button-neutral-background: var(--color-lightGray); --button-neutral-color: var(--color-darkGray); + --button-padding: 8px 16px; /* Sizes and spaces */ --gutter: 8px; diff --git a/umap/templates/umap/about_summary.html b/umap/templates/umap/about_summary.html index 46e73ce3..d3c10c67 100644 --- a/umap/templates/umap/about_summary.html +++ b/umap/templates/umap/about_summary.html @@ -60,10 +60,10 @@ {% spaceless %}
{% endspaceless %}