From 01ed693540fa35cec1273f7583c60c376c064f62 Mon Sep 17 00:00:00 2001 From: ouidade Date: Wed, 5 Jan 2022 12:39:13 +0100 Subject: [PATCH] css form faq --- web/themes/custom/eql/css-compiled/styles.css | 51 +++++++++++-- .../custom/eql/scss/pages/_webform.scss | 71 +++++++++++++++++-- 2 files changed, 113 insertions(+), 9 deletions(-) diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index 565cc1a..093900b 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -2104,13 +2104,15 @@ a { margin-left: 13%; margin-right: 20%; width: 60%; } + .path-webform .region-content .block-system-main-block h2 { + display: none; } .path-webform .region-content #webform-submission-deposer-une-contribution-add-form { display: flex; flex-direction: row; flex-wrap: wrap; flex-basis: auto; justify-content: space-between; - margin-top: 20vh; } + margin-top: 10vh; } .path-webform .region-content #webform-submission-deposer-une-contribution-add-form input.required::after { content: " - Remember this"; background-color: yellow; @@ -2183,7 +2185,8 @@ a { font-size: 1.2rem; font-weight: 600; float: right; - margin-top: 1rem; } + margin-top: 1rem; + border: none; } .path-webform .region-content #webform-submission-deposer-une-contribution-add-form #edit-actions #edit-actions-submit:after { content: url('data:image/svg+xml,'); } .path-webform .region-content #webform-submission-offre-de-service-add-form { @@ -2192,7 +2195,7 @@ a { flex-wrap: wrap; flex-basis: auto; justify-content: space-between; - margin-top: 20vh; } + margin-top: 10vh; } .path-webform .region-content #webform-submission-offre-de-service-add-form #edit-processed-text { width: 100%; } .path-webform .region-content #webform-submission-offre-de-service-add-form .form-item-intitule-de-l-offre-de-service { @@ -2244,9 +2247,49 @@ a { font-size: 1.2rem; font-weight: 600; float: right; - margin-top: 1rem; } + margin-top: 1rem; + border: none; } .path-webform .region-content #webform-submission-offre-de-service-add-form #edit-actions #edit-actions-submit:after { content: url('data:image/svg+xml,'); } + .path-webform .region-content #webform-submission-question-add-form { + display: flex; + flex-direction: row; + flex-wrap: wrap; + flex-basis: auto; + justify-content: space-between; + margin-top: 10vh; } + .path-webform .region-content #webform-submission-question-add-form #edit-couriel--wrapper { + width: 100%; } + .path-webform .region-content #webform-submission-question-add-form #edit-couriel--wrapper .form-item-couriel-mail-1 { + margin-top: 2rem; + width: 100%; } + .path-webform .region-content #webform-submission-question-add-form #edit-couriel--wrapper .form-item-couriel-mail-1 input { + width: 100%; } + .path-webform .region-content #webform-submission-question-add-form #edit-couriel--wrapper .form-item-couriel-mail-2 { + margin-top: 2rem; + width: 100%; } + .path-webform .region-content #webform-submission-question-add-form #edit-couriel--wrapper .form-item-couriel-mail-2 input { + width: 100%; } + .path-webform .region-content #webform-submission-question-add-form .form-item-question { + margin-top: 2rem; + width: 100%; } + .path-webform .region-content #webform-submission-question-add-form .form-item-question textarea { + width: 100%; } + .path-webform .region-content #webform-submission-question-add-form #edit-actions { + width: 100%; } + .path-webform .region-content #webform-submission-question-add-form #edit-actions input { + width: 30%; + align-self: flex-end; + background-color: #009ee3; + text-transform: uppercase; + color: white; + font-size: 1.2rem; + font-weight: 600; + float: right; + margin-top: 1rem; + border: none; } + .path-webform .region-content #webform-submission-question-add-form #edit-actions #edit-actions-submit:after { + content: url('data:image/svg+xml,'); } /*partials*/ .layout-container { diff --git a/web/themes/custom/eql/scss/pages/_webform.scss b/web/themes/custom/eql/scss/pages/_webform.scss index 43c4205..4bdef75 100644 --- a/web/themes/custom/eql/scss/pages/_webform.scss +++ b/web/themes/custom/eql/scss/pages/_webform.scss @@ -4,9 +4,11 @@ margin-right: 20%; width: 60%; - #block-contenudelapageprincipale{ - // h2{ display:none} - } + // #block-contenudelapageprincipale{ + .block-system-main-block{ + h2{ display:none} + } + // } #webform-submission-deposer-une-contribution-add-form{ display: flex; @@ -14,7 +16,7 @@ flex-wrap: wrap; flex-basis: auto; justify-content: space-between; - margin-top: 20vh; + margin-top: 10vh; // input:focus ~ label, // input:not(:placeholder-shown) ~ label { // z-index: -1; @@ -115,6 +117,7 @@ font-weight: 600; float: right; margin-top: 1rem; + border: none; } #edit-actions-submit:after{ content: url('data:image/svg+xml,'); @@ -128,7 +131,7 @@ flex-wrap: wrap; flex-basis: auto; justify-content: space-between; - margin-top: 20vh; + margin-top: 10vh; // input:focus ~ label, // input:not(:placeholder-shown) ~ label { // z-index: -1; @@ -202,6 +205,7 @@ font-weight: 600; float: right; margin-top: 1rem; + border: none; } #edit-actions-submit:after{ content: url('data:image/svg+xml,'); @@ -209,5 +213,62 @@ } } + + #webform-submission-question-add-form{ + display: flex; + flex-direction: row; + flex-wrap: wrap; + flex-basis: auto; + justify-content: space-between; + margin-top: 10vh; + + #edit-couriel--wrapper{ + width: 100%; + .form-item-couriel-mail-1{ + margin-top: 2rem; + width: 100%; + input{ + width: 100%; + } + + } + .form-item-couriel-mail-2{ + margin-top: 2rem; + width: 100%; + input{ + width: 100%; + } + + } + } + + .form-item-question{ + margin-top: 2rem; + width: 100%; + textarea{ + width: 100%; + } + + } + #edit-actions{ + // display: inline-flex; + width: 100%; + input{ + width: 30%; + align-self: flex-end; + background-color: $blue-light; + text-transform: uppercase; + color: $white; + font-size: 1.2rem; + font-weight: 600; + float: right; + margin-top: 1rem; + border: none; + } + #edit-actions-submit:after{ + content: url('data:image/svg+xml,'); + } + } + } } } \ No newline at end of file