Skip to content

Commit

Permalink
CSS - Change boostrap btn colors && loading animated Lizmap icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mdouchin committed Dec 1, 2023
1 parent 5822c71 commit b8ecc21
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
40 changes: 36 additions & 4 deletions lizmap/www/themes/default/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
--color-contrasted-elements-light: #c3dceb;
--color-contrasted-text: white;
--color-dark-gray-elements: rgb(51, 51, 51);
--color-red-elements: #da4f49;
}

/* BODY */
Expand Down Expand Up @@ -41,16 +40,49 @@ input.btn.active {
background-color: var(--color-contrasted-elements);
color: var(--color-contrasted-text);
}
/* button types (bootstrap) */
/* button types */
.btn.btn-primary, .btn.btn-primary:focus {
background-color: var(--color-contrasted-elements);
background-color: #43718c;
color: white;
}
.btn.btn-info, .btn.btn-info:focus {
background-color: #57bcda;
color: white;
}
.btn.btn-success, .btn.btn-success:focus {
background-color: #95c02a;
color: white;
}
.btn.btn-warning, .btn.btn-warning:focus {
background-color: #f9a227;
color: white;
}
.btn.btn-danger, .btn.btn-danger:focus {
background-color: var(--color-red-elements);
background-color: #da4f49;
color: white;
}

/* hover & active */
.btn.btn-primary:hover, .btn.btn-primary.active {
background-color: #43718c;
filter:brightness(110%);
}
.btn.btn-info:hover, .btn.btn-info.active {
background-color: #57bcda;
filter:brightness(110%);
}
.btn.btn-success:hover, .btn.btn-success.active {
background-color: #95c02a;
filter:brightness(110%);
}
.btn.btn-warning:hover, .btn.btn-warning.active {
background-color: #f9a227;
filter:brightness(110%);
}
.btn.btn-danger:hover, .btn.btn-danger.active {
background-color: #da4f49;
filter:brightness(110%);
}

/* DROP-DOWN LISTS */
.dropdown-menu > li > a:hover,
Expand Down
2 changes: 1 addition & 1 deletion lizmap/www/themes/default/css/map.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
--color-contrasted-elements-light: #c3dceb;
--color-contrasted-text: white;
--color-dark-gray-elements: rgb(51, 51, 51);
--color-red-elements: #da4f49;
}


Expand Down Expand Up @@ -894,6 +893,7 @@ lizmap-feature-toolbar button.btn:hover,
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center;
filter: hue-rotate(140deg) brightness(70%);
}


Expand Down

0 comments on commit b8ecc21

Please sign in to comment.