Aller au contenu

Sondages – Précisions

L’extension est en version gratuite, le résultat affiché n’est pas très beau. Pour l’améliorer…

Dans Style puis onglet CSS rajouter le script ci-dessous :

/* =========================================================
TEXTE DE PRESENTATION AVANT LE SONDAGE
========================================================= */

.mlw_qmn_message_before{
margin:17px;
}

/* =========================================================
PRÉSENTATION DES QUESTIONS QSM
========================================================= */

/* Chaque question devient un petit bloc */
.qsm-question-page .qsm-question-wrapper {
background: #f8f9f7;
border: 1px solid #e1e5df;
border-radius: 10px;
padding: 20px 24px;
margin: 0 0 18px 0;
box-sizing: border-box;
transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Effet discret au survol */
.qsm-question-page .qsm-question-wrapper:hover {
border-color: #c8d3c4;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ———————————————————
INTITULÉ DE LA QUESTION
——————————————————— */

.qsm-question-page .mlw_qmn_new_question {
margin-bottom: 10px;
}

/* Texte de la question */
.qsm-question-page .qsm-question-title-label,
.qsm-question-page .mlw_qmn_new_question {
font-size: 1.05rem;
font-weight: 600;
line-height: 1.4;
color: #34483a;
}

/* ———————————————————
SUPPRESSION DE L’ESPACE VIDE SOUS LA QUESTION
——————————————————— */

.qsm-question-page .mlw_qmn_question {
margin: 0;
padding: 0;
}

.qsm-question-page .mlw_qmn_question p:empty {
display: none;
}

/* ———————————————————
CHAMPS TEXTE ET NUMÉRIQUES
——————————————————— */

.qsm-question-page input[type= »text »],
.qsm-question-page input[type= »number »],
.qsm-question-page input[type= »email »],
.qsm-question-page textarea,
.qsm-question-page select {
width: 100%;
max-width: 600px;
box-sizing: border-box;

padding: 10px 13px;
margin-top: 4px;

border: 1px solid #c9d1c8;
border-radius: 6px;

background: #fff;
color: #333;
font-size: 1rem;

transition: border-color 0.2s ease, box-shadow 0.2s ease;

}

/* Champ actif */
.qsm-question-page input[type= »text »]:focus,
.qsm-question-page input[type= »number »]:focus,
.qsm-question-page input[type= »email »]:focus,
.qsm-question-page textarea:focus,
.qsm-question-page select:focus {
border-color: #6d8b70;
box-shadow: 0 0 0 3px rgba(109, 139, 112, 0.15);
outline: none;
}

/* ———————————————————
RADIO / CASES À COCHER
——————————————————— */

.qsm-question-page .qmn_radio_answers,
.qsm-question-page .qmn_check_answers {
margin-top: 8px;
}

.qsm-question-page .qmn_radio_answers label,
.qsm-question-page .qmn_check_answers label {
display: block;
padding: 7px 10px;
margin: 4px 0;
border-radius: 5px;
cursor: pointer;
}

/* ———————————————————
LÉGENDES VIDES DES FIELDSET
——————————————————— */

.qsm-question-page fieldset legend:empty {
display: none;
}

/* ———————————————————
PETITS ÉCRANS
——————————————————— */

@media (max-width: 600px) {

.qsm-question-page .qsm-question-wrapper {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 8px;
}

.qsm-question-page .qsm-question-title-label,
.qsm-question-page .mlw_qmn_new_question {
    font-size: 1rem;
}

.qsm-question-page input[type="text"],
.qsm-question-page input[type="number"],
.qsm-question-page input[type="email"],
.qsm-question-page textarea,
.qsm-question-page select {
    max-width: 100%;
}

}