summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/alert_management/list.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/pages/alert_management/list.scss')
-rw-r--r--app/assets/stylesheets/pages/alert_management/list.scss93
1 files changed, 56 insertions, 37 deletions
diff --git a/app/assets/stylesheets/pages/alert_management/list.scss b/app/assets/stylesheets/pages/alert_management/list.scss
index dc181342def..c1ea9b7604a 100644
--- a/app/assets/stylesheets/pages/alert_management/list.scss
+++ b/app/assets/stylesheets/pages/alert_management/list.scss
@@ -1,22 +1,4 @@
.alert-management-list {
- // consider adding these stateful variants to @gitlab-ui
- // https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/1178
- .hover-bg-blue-50:hover {
- background-color: $blue-50;
- }
-
- .hover-gl-cursor-pointer:hover {
- cursor: pointer;
- }
-
- .hover-gl-border-b-solid:hover {
- @include gl-border-b-solid;
- }
-
- .hover-gl-border-blue-200:hover {
- border-color: $blue-200;
- }
-
// these styles need to be deleted once GlTable component looks in GitLab same as in @gitlab/ui
table {
color: $gray-700;
@@ -26,25 +8,52 @@
outline: none;
}
+ > :not([aria-sort='none']).b-table-sort-icon-left:hover::before {
+ content: '' !important;
+ }
+
td,
th {
- @include gl-p-5;
- border: 0; // Remove cell border styling so that we can set border styling per row
-
- &.event-count {
- @include gl-pr-9;
- }
+ // TODO: There is no gl-pl-9 utlity for this padding, to be done and then removed.
+ padding-left: 1.25rem;
+ @include gl-py-5;
+ @include gl-outline-none;
+ @include gl-relative;
}
th {
background-color: transparent;
font-weight: $gl-font-weight-bold;
color: $gl-gray-600;
+
+ &:hover::before {
+ left: 3%;
+ top: 34%;
+ @include gl-absolute;
+ content: url("data:image/svg+xml,%3Csvg \
+ xmlns='http://www.w3.org/2000/svg' \
+ width='14' height='14' viewBox='0 0 16 \
+ 16'%3E%3Cpath fill='%23BABABA' fill-rule='evenodd' \
+ d='M11.707085,11.7071 L7.999975,15.4142 L4.292875,11.7071 \
+ C3.902375,11.3166 3.902375,10.6834 \
+ 4.292875,10.2929 C4.683375,9.90237 \
+ 5.316575,9.90237 5.707075,10.2929 \
+ L6.999975,11.5858 L6.999975,2 C6.999975,1.44771 \
+ 7.447695,1 7.999975,1 C8.552255,1 8.999975,1.44771 \
+ 8.999975,2 L8.999975,11.5858 L10.292865,10.2929 \
+ C10.683395,9.90237 11.316555,9.90237 11.707085,10.2929 \
+ C12.097605,10.6834 12.097605,11.3166 11.707085,11.7071 \
+ Z'/%3E%3C/svg%3E%0A");
+ }
}
+ }
- &:last-child {
- td {
- @include gl-border-0;
+ @include media-breakpoint-up(md) {
+ tr {
+ &:last-child {
+ td {
+ @include gl-border-0;
+ }
}
}
}
@@ -52,21 +61,31 @@
@include media-breakpoint-down(sm) {
.alert-management-table {
- .table-col {
- min-height: 68px;
+ tr {
+ border-top: 0;
- &:last-child {
- background-color: $gray-10;
+ .table-col {
+ min-height: 68px;
- &::before {
- content: none !important;
- }
+ &:last-child {
+ background-color: $gray-10;
+
+ &::before {
+ content: none !important;
+ }
- div {
- width: 100% !important;
- padding: 0 !important;
+ div {
+ width: 100% !important;
+ padding: 0 !important;
+ }
}
}
+
+ &:hover {
+ background-color: $white;
+ border-color: $white;
+ border-bottom-style: none;
+ }
}
}
}