Skip to content

Commit

Permalink
Merge pull request #1288 from dradis/css/add-icons-stylesheet
Browse files Browse the repository at this point in the history
Add icons.scss
  • Loading branch information
aapomm authored Sep 17, 2024
2 parents a83fb02 + 0cc3c7b commit 06cd330
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
11 changes: 11 additions & 0 deletions app/assets/stylesheets/shared/_icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.fa-check {
color: $green;
}

.fa-info-circle {
color: $blue;
}

.fa-times {
color: $red;
}
17 changes: 3 additions & 14 deletions app/assets/stylesheets/shared/_validations.scss
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
.validation {
.fa-check {
color: $green;
}

.fa-info-circle {
color: $blue;
}

.fa-times {
color: $red;
}

&.validation-feed {
.validation-list {
list-style-type: none;
margin: 1rem 0 0;
padding: 0;

li {
i {
margin-right: .15rem;
margin-right: 0.15rem;
}

.text-error {
font-size: 90%;
margin: 0 0 .5rem 1.3rem;
margin: 0 0 0.5rem 1.6rem;
}

&:last-of-type .text-error {
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/tylium.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@import 'shared/datatables';
@import 'shared/editor_toolbar';
@import 'shared/empty_state.scss';
@import 'shared/icons';
@import 'shared/inline_editable';
@import 'shared/mixins';
@import 'shared/noscript';
Expand Down
6 changes: 5 additions & 1 deletion app/assets/stylesheets/tylium/modules/_dots-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

.dots-dropdown-header {
font-weight: 400 !important;

&:hover {
color: $linkColor !important;
background-color: initial !important;
Expand All @@ -21,6 +21,10 @@
margin-top: 0.3rem;
padding-top: 0.3rem;
}

&:not(:has(+ .dropdown-item)) {
display: none;
}
}

.dropdown-menu {
Expand Down

0 comments on commit 06cd330

Please sign in to comment.