Modification de .valider_action, devenu plus explicite (textuel & non simplement symbolique)

This commit is contained in:
xdrm-brackets 2015-11-15 21:24:15 +01:00
parent 76f17132bd
commit 27cb3b7c13
4 changed files with 29 additions and 14 deletions

View File

@ -234,21 +234,40 @@ td select > option{ padding: 0; }
position: absolute;
margin-left: 2em;
margin-top: -.2em;
width: 1.5em;
height: 1.5em;
padding: 0 .7em 0 1.3em;
/* border */
border-radius: 3px;
border: 1px solid #2dcc70;
/* background */
background: transparent center center no-repeat;
background-size: 90% auto;
background: transparent center left .2em no-repeat;
background-size: 1em auto;
/* foreground */
color: #2dcc70;
line-height: 1.5em;
/* extra */
cursor: pointer;
}
/* bouton validation */
select.active + .valider_action{ display: inline-block; background-image: url(../src/validate.svg); }
tr:hover td select.active + .valider_action{ background-image: url(../src/validate@hover.svg); }
/* @active */
input.active + .valider_action,
select.active + .valider_action{
display: inline-block;
background-image: url(../src/validate.svg);
}
/* tr@hover */
tr:hover td select.active + .valider_action,
tr:hover td input.active + .valider_action{
border-color: #fff;
background-image: url(../src/validate@hover.svg);
color: #fff;
}
/* saisie note */
.saisie_note{
@ -266,10 +285,6 @@ tr:hover td select.active + .valider_action{ background-image: url(../src/valida
.saisie_note:focus{ border-color: #999; }
/* bouton validation */
input.saisie_note.active + .valider_action{ display: inline-block; background-image: url(../src/validate.svg); }
tr:hover td input.saisie_note.active + .valider_action{ background-image: url(../src/validate@hover.svg); }

View File

@ -352,7 +352,7 @@ elseif( permission('teacher') ){ // si enseignant et qu'un contrôle est spécif
else // sinon on laisse le champ vide
echo "<input class='saisie_note' data-ctrl='".$answer->controle['id']."' type='number' step='.25' min='0' max='".$answer->controle['base']."' placeholder='Note'>";
echo "<div class='valider_action' data-info='confirmer'></div>";
echo "<div class='valider_action'>enregistrer</div>";
echo "</td>";
echo "</tr>";

View File

@ -535,7 +535,7 @@ if( permission('admin') ){ // si l'utilisateur est connecté et que c'est un adm
else // s'il s'agit d'un autre groupe, c'est normal
echo "<option value='".$groupemodif['nom']."'>".$groupemodif['nom']."</option>";
echo '</select>';
echo "<div class='valider_action' data-info='cliquer pour valider'></div>";
echo "<div class='valider_action'>déplacer</div>";
echo '</td>';
echo '</tr>';
}

View File

@ -37,7 +37,7 @@
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="1.3244222"
inkscape:cx="410.94807"
inkscape:cx="264.4691"
inkscape:cy="117.90095"
inkscape:window-x="0"
inkscape:window-y="24"
@ -55,5 +55,5 @@
transform="translate(-17.600012,-17.6)" /><polygon
points="170.4,436.6 264.1,530.3 447.2,347.3 416,316 264.1,467.8 201.6,405.3 "
id="polygon5"
style="fill:#666666"
style="fill:#2dcc70;fill-opacity:1"
transform="translate(-17.600012,-17.6)" /></svg>

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB