093c353c4b
* Fix clickFirstAnchor bug * Create Proxy Info Tab for Instance Detail Page * Create tests for ProxyInfo and update other scenarios with Proxy data * ui: Refactors our app-view/%app-view component (#7752) Co-authored-by: John Cowen <johncowen@users.noreply.github.com>
115 lines
2.9 KiB
SCSS
115 lines
2.9 KiB
SCSS
@import '../base/components/table/index';
|
|
@import '../base/components/popover-menu/index';
|
|
%main-content table {
|
|
@extend %table;
|
|
}
|
|
%table-actions > [type='checkbox'] {
|
|
@extend %more-popover-menu;
|
|
}
|
|
%more-popover-menu-panel [type='checkbox']:checked ~ * {
|
|
/* this needs to autocalculate */
|
|
min-height: 143px;
|
|
max-height: 143px;
|
|
}
|
|
%more-popover-menu-panel [id$='logout']:checked ~ * {
|
|
/* this needs to autocalculate */
|
|
min-height: 183px;
|
|
max-height: 183px;
|
|
}
|
|
%more-popover-menu-panel [id$='delete']:checked ~ ul label[for$='delete'] + [role='menu'],
|
|
%more-popover-menu-panel [id$='logout']:checked ~ ul label[for$='logout'] + [role='menu'],
|
|
%more-popover-menu-panel [id$='use']:checked ~ ul label[for$='use'] + [role='menu'] {
|
|
display: block;
|
|
}
|
|
%table-actions .confirmation-alert {
|
|
@extend %confirmation-alert;
|
|
}
|
|
%table-actions > [type='checkbox'] + label {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 15px;
|
|
}
|
|
|
|
/*TODO: Rename this to %app-view-brand-icon or similar */
|
|
%with-external-source-icon {
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
width: 18px;
|
|
height: 18px;
|
|
|
|
--kubernetes-icon: #{$kubernetes-logo-color-svg};
|
|
--terraform-icon: #{$terraform-logo-color-svg};
|
|
--nomad-icon: #{$nomad-logo-color-svg};
|
|
--consul-icon: #{$consul-logo-color-svg};
|
|
--aws-icon: #{$aws-logo-color-svg};
|
|
}
|
|
html.template-node.template-show #services td:first-child a span {
|
|
@extend %with-external-source-icon;
|
|
float: left;
|
|
margin-right: 10px;
|
|
margin-top: 2px;
|
|
}
|
|
/* This nudges the th in for the external source icons */
|
|
html.template-node.template-show #services th:first-child {
|
|
text-indent: 28px;
|
|
}
|
|
|
|
td.folder::before {
|
|
@extend %with-folder-outline-mask, %as-pseudo;
|
|
background-color: $gray-300;
|
|
margin-top: 1px;
|
|
margin-right: 5px;
|
|
}
|
|
table:not(.sessions) tbody tr {
|
|
cursor: pointer;
|
|
}
|
|
table:not(.sessions) td:first-child {
|
|
padding: 0;
|
|
}
|
|
|
|
table:not(.sessions) tbody tr:hover {
|
|
box-shadow: $decor-elevation-300;
|
|
}
|
|
/* Header Tooltips/Icon*/
|
|
th {
|
|
overflow: visible;
|
|
}
|
|
th span::after {
|
|
@extend %with-info-circle-outline-icon, %as-pseudo;
|
|
opacity: 0.6;
|
|
}
|
|
th span {
|
|
@extend %with-tooltip;
|
|
margin-left: 2px;
|
|
}
|
|
th span em {
|
|
width: 250px;
|
|
font-style: normal;
|
|
white-space: normal !important;
|
|
}
|
|
/**/
|
|
|
|
/* ideally these would be in route css files, but left here as they */
|
|
/* accomplish the same thing (hide non-essential columns for tables) */
|
|
@media #{$--lt-medium-table} {
|
|
/* Policy > Datacenters */
|
|
html.template-policy.template-list tr > :nth-child(2) {
|
|
display: none;
|
|
}
|
|
}
|
|
@media #{$--lt-wide-table} {
|
|
/* hide actions on narrow screens, you can always click in do everything from there */
|
|
tr > .actions {
|
|
display: none;
|
|
}
|
|
html.template-node.template-show #services tr > :last-child {
|
|
display: none;
|
|
}
|
|
html.template-node.template-show #lock-sessions tr > :not(:first-child):not(:last-child) {
|
|
display: none;
|
|
}
|
|
html.template-node.template-show #lock-sessions td:last-child {
|
|
padding: 0;
|
|
}
|
|
}
|