open-consul/ui-v2/app/styles/components/table.scss
John Cowen b279f23372
UI: External Source markers (#4640)
1. Addition of external source icons for services marked as such.
2. New %with-tooltip css component (wip)
3. New 'no healthcheck' icon as external sources might not have
healthchecks, also minus icon on node cards in the service detail view
4. If a service doesn't have healthchecks, we use the [Services] tabs as the
default instead of the [Health Checks] tab in the Service detail page. 
5. `css-var` helper. The idea here is that it will eventually be
replaced with pure css custom properties instead of having to use JS. It
would be nice to be able to build the css variables into the JS at build
time (you'd probably still want to specify in config which variables you
wanted available in JS), but that's possible future work.

Lastly there is probably a tiny bit more testing edits here than usual,
I noticed that there was an area where the dynamic mocking wasn't
happening, it was just using the mocks from consul-api-double, the mocks
I was 'dynamically' setting happened to be the same as the ones in
consul-api-double. I've fixed this here also but it wasn't effecting
anything until actually made certain values dynamic.
2018-09-12 20:23:39 +01:00

127 lines
1.7 KiB
SCSS

@import './icons/index';
td.folder {
@extend %with-folder;
}
td dt.passing {
@extend %with-passing;
}
td dt.warning {
@extend %with-warning;
}
td dt.critical {
@extend %with-critical;
}
td span.zero {
@extend %with-no-healthchecks;
display: block;
text-indent: 20px;
color: $ui-gray-400;
}
table:not(.sessions) tr {
cursor: pointer;
}
th,
td {
border-bottom: $decor-border-100;
}
td dt.passing,
td dt.passing + dd {
color: $ui-color-success;
}
td dt.warning,
td dt.warning + dd {
color: $ui-color-alert;
}
td dt.critical,
td dt.critical + dd {
color: $ui-color-failure;
}
th {
color: $ui-gray-400 !important;
}
th {
border-color: $keyline-dark;
}
td {
border-color: $keyline-mid;
}
table {
width: 100%;
}
td button {
position: relative;
top: -6px;
}
th.actions input {
display: none;
}
th.actions {
text-align: right;
}
td.actions .with-confirmation.confirming {
position: absolute;
right: 0;
}
table th {
padding-bottom: 0.6em;
}
table td,
table td a {
padding: 0.9em 0;
}
table th,
table td:not(.actions),
table td a {
padding-right: 0.9em;
}
table:not(.sessions) td:first-child {
padding: 0;
}
table td a {
display: block;
}
tbody {
overflow-x: visible !important;
}
th,
td:not(.actions),
td:not(.actions) a {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
// TODO: this isn't specific to table
td dl {
height: 100%;
}
td dl {
display: flex;
}
td dl > * {
display: block;
}
td dt.zero {
display: none;
}
td dd.zero {
visibility: hidden;
}
td dt {
text-indent: -9000px;
}
td dt.warning {
overflow: visible;
}
td dt.warning::before {
top: 7px;
}
td dt.warning::after {
left: -2px;
top: -1px;
}
td dd {
box-sizing: content-box;
margin-left: 22px;
padding-right: 10px;
}