- [x] [container.scss] Icone dans bouton quand succes sur l'operation

This commit is contained in:
xdrm-brackets 2016-02-18 10:43:05 +01:00
parent a5ac2c48d5
commit 733f7eca75
6 changed files with 69 additions and 7 deletions

View File

@ -8,7 +8,15 @@ $sub-menu-color: #5b5e63;
$error-color: #cc5857;
/* FORMULAIRES */
$form-valid-color: #27a560;
$form-valid-color: #27a560;
$form-neutral-color: #2193e6;
$form-search-color: #5630ed;
$form-invalid-color: darken($theme-color, 5);
$form-search-color: #5630ed;
$form-invalid-color: #d52918;
// POUR RESOURCE_DISPATCHER
$rd-form-valid-color: '27a560';
$rd-form-neutral-color: '2193e6';
$rd-form-search-color: '5630ed';
$rd-form-invalid-color: 'd52918';

File diff suppressed because one or more lines are too long

View File

@ -419,6 +419,33 @@
}
}
// Boutons quand action validee
&.invalid > button.active,
button.invalid.active,
button.active{
background: url('/f/svg/active/st/container/'+$rd-form-invalid-color) center center no-repeat;
background-size: 1em auto;
color: transparent !important;
}
button.valid.active,
&.valid > button.active{
background-image: url('/f/svg/active/st/container/'+$rd-form-valid-color);
}
button.neutral.active,
&.neutral > button.active{
background-image: url('/f/svg/active/st/container/'+$rd-form-neutral-color);
}
button.search.active,
&.search > button.active{
background-image: url('/f/svg/active/st/container/'+$rd-form-search-color);
}
// "OU" separant les boutons
hr.OR[data-label]{
display: block;

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="32"
height="32"
viewBox="0 0 32 32"
id="svg2"
xml:space="preserve"><metadata
id="metadata14"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs12" /><g
transform="matrix(2.1052632,0,0,2.1052632,-17.684211,-13.221054)"
id="Guides__x26__Forms" /><g
transform="matrix(2.1052632,0,0,2.1052632,-17.684211,-17.684211)"
id="Icons"
style="fill:#ffffff"><g
id="g6"
style="fill:#ffffff"><polygon
points="14.054,21.48 23.6,11.934 22.186,10.52 14.054,18.652 9.814,14.411 8.4,15.825 "
id="stylisable"
style="fill:#ffffff" /></g></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -7,8 +7,7 @@
############
# EN COURS #
############
- [ ] [container.scss] Icone dans bouton quand succes sur l'operation
- [x] [container.scss] Icone dans bouton quand succes sur l'operation
- [ ] [view/users][view/js/users.js] Suppression avec recherche comme pour la modification
- [ ] [view/machines][view/js/machines.js] Suppression avec recherche comme pour la modification

View File

@ -27,7 +27,6 @@ var section = {
/* [1] view -> AFFICHAGE DES UTILISATEURS
=========================================================*/
if( section.view.element != null ){