Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
27fa67d7
Commit
27fa67d7
authored
Apr 17, 2020
by
Dave Pisek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add page specific scss file for hocus styling
parent
9b5c22da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
33 deletions
+27
-33
ee/app/assets/javascripts/security_dashboard/components/security_dashboard_table_row.vue
...ity_dashboard/components/security_dashboard_table_row.vue
+2
-33
ee/app/assets/stylesheets/pages/security_dashboard.scss
ee/app/assets/stylesheets/pages/security_dashboard.scss
+25
-0
No files found.
ee/app/assets/javascripts/security_dashboard/components/security_dashboard_table_row.vue
View file @
27fa67d7
...
...
@@ -30,11 +30,6 @@ export default {
default
:
false
,
},
},
data
()
{
return
{
shouldShowActionButtons
:
false
,
};
},
computed
:
{
...
mapState
([
'
dashboardType
'
]),
...
mapState
(
'
vulnerabilities
'
,
[
'
selectedVulnerabilities
'
]),
...
...
@@ -76,12 +71,6 @@ export default {
}
return
this
.
selectVulnerability
(
this
.
vulnerability
);
},
showActionButtons
()
{
this
.
shouldShowActionButtons
=
true
;
},
hideActionButtons
()
{
this
.
shouldShowActionButtons
=
false
;
},
},
};
</
script
>
...
...
@@ -90,10 +79,6 @@ export default {
<div
class=
"gl-responsive-table-row vulnerabilities-row p-2"
:class=
"
{ dismissed: isDismissed, 'gl-bg-blue-50': isSelected }"
@focusin="showActionButtons"
@focusout="hideActionButtons"
@mouseenter="showActionButtons"
@mouseleave="hideActionButtons"
>
<div
class=
"table-section"
>
<gl-form-checkbox
...
...
@@ -106,7 +91,7 @@ export default {
<div
class=
"table-section section-10"
>
<div
class=
"table-mobile-header"
role=
"rowheader"
>
{{
s__
(
'
Reports|Severity
'
)
}}
</div>
<div
class=
"table-mobile-content"
:style=
"[isDismissed &&
{ opacity: 0.5 }]"
>
<div
class=
"table-mobile-content"
>
<severity-badge
:severity=
"severity"
/>
</div>
</div>
...
...
@@ -115,7 +100,6 @@ export default {
<div
class=
"table-mobile-header"
role=
"rowheader"
>
{{
s__
(
'
Reports|Vulnerability
'
)
}}
</div>
<div
class=
"table-mobile-content gl-white-space-normal"
:style=
"[isDismissed &&
{ opacity: 0.5 }]"
data-qa-selector=
"vulnerability_info_content"
>
<gl-skeleton-loading
v-if=
"isLoading"
class=
"mt-2 js-skeleton-loader"
:lines=
"2"
/>
...
...
@@ -153,10 +137,7 @@ export default {
<div
class=
"table-section section-20"
>
<div
class=
"table-mobile-header"
role=
"rowheader"
>
{{ s__('Reports|Actions') }}
</div>
<div
class=
"table-mobile-content action-buttons d-flex justify-content-end"
:style=
"[shouldShowActionButtons ? { opacity: 1 } : { opacity: 0 }]"
>
<div
class=
"table-mobile-content action-buttons d-flex justify-content-end"
>
<vulnerability-action-buttons
v-if=
"!isLoading"
:vulnerability=
"vulnerability"
...
...
@@ -168,15 +149,3 @@ export default {
</div>
</div>
</template>
<
style
scoped
>
@media
(
min-width
:
768px
)
{
.vulnerabilities-row
:hover
,
.vulnerabilities-row
:focus
{
background
:
#f6fafd
;
border-bottom
:
1px
solid
#c1daf4
;
border-top
:
1px
solid
#c1daf4
;
margin-top
:
-1px
;
}
}
</
style
>
ee/app/assets/stylesheets/pages/security_dashboard.scss
0 → 100644
View file @
27fa67d7
.vulnerabilities-row
{
&
.dismissed
.table-mobile-content
:not
(
.action-buttons
)
{
opacity
:
0
.5
;
}
@include
media-breakpoint-up
(
md
)
{
.action-buttons
{
opacity
:
0
;
}
&
:hover
,
&
:focus
,
&
:focus-within
{
background
:
$blue-50
;
border-bottom
:
1px
solid
$blue-200
;
border-top
:
1px
solid
$blue-200
;
margin-top
:
-1px
;
.action-buttons
{
opacity
:
1
;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment