Adjust cut descenders on formtitle

Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
This commit is contained in:
Jonas Rittershofer 2020-05-24 19:14:34 +02:00
parent 9aa17d7192
commit 8e5f57e401
2 changed files with 12 additions and 5 deletions

View file

@ -49,6 +49,7 @@
id="form-title" id="form-title"
ref="title" ref="title"
v-model="form.title" v-model="form.title"
class="form-title"
:minlength="0" :minlength="0"
:maxlength="maxStringLengths.formTitle" :maxlength="maxStringLengths.formTitle"
:placeholder="t('forms', 'Form title')" :placeholder="t('forms', 'Form title')"
@ -417,15 +418,17 @@ export default {
margin-top: 44px; margin-top: 44px;
margin-bottom: 24px; margin-bottom: 24px;
#form-title, .form-title,
.form-desc { .form-desc {
width: 100%; width: 100%;
padding: 0 16px; padding: 0 16px;
border: none; border: none;
} }
#form-title { .form-title {
font-size: 2em; font-size: 2em;
font-weight: bold; font-weight: bold;
color: var(--color-main-text);
min-height: 36px;
margin: 32px 0; margin: 32px 0;
padding-left: 14px; // align with description (compensate font size diff) padding-left: 14px; // align with description (compensate font size diff)
overflow: hidden; overflow: hidden;
@ -433,6 +436,7 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
.form-desc { .form-desc {
font-size: 100%;
padding-bottom: 20px; padding-bottom: 20px;
resize: none; resize: none;
} }

View file

@ -25,7 +25,7 @@
<AppContent> <AppContent>
<!-- Forms title & description--> <!-- Forms title & description-->
<header> <header>
<h2 id="form-title"> <h2 class="form-title">
{{ formTitle }} {{ formTitle }}
</h2> </h2>
<p v-if="!loading && !success" class="form-desc"> <p v-if="!loading && !success" class="form-desc">
@ -202,15 +202,17 @@ export default {
margin-top: 44px; margin-top: 44px;
margin-bottom: 24px; margin-bottom: 24px;
#form-title, .form-title,
.form-desc { .form-desc {
width: 100%; width: 100%;
padding: 0 16px; padding: 0 16px;
border: none; border: none;
} }
#form-title { .form-title {
font-size: 2em; font-size: 2em;
font-weight: bold; font-weight: bold;
color: var(--color-main-text);
min-height: 36px;
margin: 32px 0; margin: 32px 0;
padding-left: 14px; // align with description (compensate font size diff) padding-left: 14px; // align with description (compensate font size diff)
overflow: hidden; overflow: hidden;
@ -218,6 +220,7 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
.form-desc { .form-desc {
font-size: 100%;
padding-bottom: 20px; padding-bottom: 20px;
resize: none; resize: none;
} }