A platform for community discussion. Free, open, simple.
.workflows-data-tables-manager {
&__name-link {
background: none;
border: none;
padding: 0;
cursor: pointer;
color: var(--tertiary);
&:hover {
text-decoration: underline;
}
}
}
.workflows-data-table-viewer {
&__header {
display: flex;
align-items: center;
gap: var(--space-3);
margin-bottom: var(--space-4);
}
&__title,
&__title-input {
background: none;
border: none;
padding: 0;
margin: 0;
flex: 1;
font: inherit;
font-size: var(--font-up-3);
font-weight: 700;
color: inherit;
line-height: inherit;
box-sizing: content-box;
}
&__title {
cursor: text;
text-align: left;
}
&__title-input {
// stylelint-disable declaration-no-important
font: inherit !important;
font-size: var(--font-up-3) !important;
font-weight: 700 !important;
line-height: inherit !important;
outline: none !important;
border: none !important;
padding: 0 var(--space-1) !important;
margin: 0 !important;
box-sizing: content-box !important;
background: var(--primary-very-low) !important;
border-radius: var(--d-border-radius) !important;
flex: 0 1 auto !important;
// stylelint-enable declaration-no-important
}
&__actions {
display: flex;
gap: var(--space-2);
}
// Bounded height makes this the vertical scroller too, so the horizontal
// scrollbar stays on screen and the sticky header has something to stick to.
&__scroll {
overflow: auto;
max-height: max(50dvh, calc(100dvh - var(--top-offset) - var(--space-4)));
}
&__table {
border-collapse: collapse;
width: 100%;
min-width: max-content;
th,
td {
padding: 0;
border: 1px solid var(--primary-low);
text-align: left;
min-width: 150px;
}
th {
position: sticky;
top: 0;
z-index: 1;
padding: var(--space-2) var(--space-3);
background: var(--primary-very-low);
font-weight: 700;
white-space: nowrap;
// collapsed borders belong to the table and scroll away from sticky cells
box-shadow: inset 0 -1px 0 var(--primary-low);
}
th.--id,
td.--id {
min-width: 60px;
width: 60px;
}
th.--add-column,
td.--add-column {
min-width: 0;
width: 1px;
}
}
&__col-type {
font-size: var(--font-down-2);
color: var(--primary-medium);
margin-right: var(--space-1);
text-transform: uppercase;
}
&__col-name,
&__col-name-input {
background: none;
border: none;
padding: 0;
margin: 0;
font: inherit;
font-weight: 700;
color: inherit;
line-height: inherit;
box-sizing: content-box;
}
&__col-name {
cursor: text;
}
&__col-menu {
margin-left: var(--space-1);
}
&__col-name-input {
// stylelint-disable declaration-no-important
outline: none !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
line-height: inherit !important;
box-sizing: content-box !important;
width: calc(var(--col-name-length) * 1ch) !important;
// stylelint-enable declaration-no-important
}
&__cell {
&.--id,
&.--system {
padding: var(--space-2) var(--space-3);
}
&.--id,
&.--system {
color: var(--primary-medium);
font-size: var(--font-down-1);
white-space: nowrap;
}
&.--boolean {
padding: var(--space-2) var(--space-3);
}
}
&__cell-value {
display: block;
width: 100%;
min-height: 1.5em;
background: none;
border: none;
// stylelint-disable-next-line declaration-no-important
outline: none !important;
padding: var(--space-2) var(--space-3);
margin: 0;
cursor: pointer;
text-align: left;
font: inherit;
color: inherit;
&.is-null {
color: var(--primary-low-mid);
font-style: italic;
}
}
&__cell-input {
box-sizing: border-box;
width: 100%;
// stylelint-disable-next-line declaration-no-important
margin: 0 !important;
padding: var(--space-2) var(--space-3);
// stylelint-disable-next-line declaration-no-important
border: none !important;
border-radius: 0;
// stylelint-disable-next-line declaration-no-important
outline: none !important;
font: inherit;
}
&__checkbox {
cursor: pointer;
margin: 0;
}
&__add-row td {
border-bottom: 1px solid var(--primary-low);
}
}