diff --git a/src/assets/css/components/index.scss b/src/assets/css/components/index.scss index ad16c89a..d1d61e49 100644 --- a/src/assets/css/components/index.scss +++ b/src/assets/css/components/index.scss @@ -20,6 +20,7 @@ @import './views/entityExplorer/entityList/row'; @import 'views/entityExplorer/entityList/detail-overview'; @import './views/detections/detections'; +@import './views/detections/detection-filter'; @import './views/charts/panel'; @import 'views/charts/chartIpOpenPortBar'; @import './views/charts/chartTable'; diff --git a/src/assets/css/components/views/detections/detection-filter.scss b/src/assets/css/components/views/detections/detection-filter.scss new file mode 100644 index 00000000..e28c5f99 --- /dev/null +++ b/src/assets/css/components/views/detections/detection-filter.scss @@ -0,0 +1,66 @@ +.detection-filter-case { + display: flex; + flex-direction: column; + width: 280px; + padding: 10px; + margin-right: 10px; + background-color: white; + + .detection-filter { + display: flex; + flex-direction: column; + margin-bottom: 10px; + + .filter__header { + display: flex; + flex: 0 0 32px; + align-items: center; + padding-left: 10px; + color: #666; + background-color: #F3F7FA; + cursor: pointer; + + span { + font-size: 14px; + padding-left: 6px; + } + i { + font-size: 12px; + transition: all linear .1s; + transform: rotate(0) translate(0, 2px); + } + i.arrow-rotate { + transform: rotate(90deg) translate(2px, 3px); + } + } + .filter__body { + padding: 5px 0 0 15px; + + .el-checkbox-group { + display: flex; + flex-direction: column; + + .el-checkbox { + display: flex; + align-items: center; + padding: 5px 0; + + .filter__checkbox-label { + display: flex; + align-items: center; + + .severity-color-block { + width: 4px; + height: 15px; + border-radius: 2px; + } + } + + &:last-of-type { + padding-bottom: 0; + } + } + } + } + } +} diff --git a/src/views/detections/DetectionFilter.vue b/src/views/detections/DetectionFilter.vue index 3703c50f..0a54e76c 100644 --- a/src/views/detections/DetectionFilter.vue +++ b/src/views/detections/DetectionFilter.vue @@ -1,11 +1,49 @@ diff --git a/src/views/detections/DetectionSearch.vue b/src/views/detections/DetectionSearch.vue index 47dfffdc..8cfc0ec2 100644 --- a/src/views/detections/DetectionSearch.vue +++ b/src/views/detections/DetectionSearch.vue @@ -1,5 +1,5 @@