Newer
Older
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Claro styles for Tables.
*/
table {
width: 100%;

Cristina Chumillas
committed
margin-block: var(--space-l);
border-collapse: collapse;
}
.sticky-header {
min-width: 0;
}
caption {

Cristina Chumillas
committed
text-align: start;
}
th {
position: relative;
box-sizing: border-box;
height: var(--space-xl);
padding: var(--space-xs) var(--space-m);

Cristina Chumillas
committed
text-align: start;
color: var(--color-text);
background: var(--color-gray-050);
line-height: 1.25rem; /* 20px */
}

Cristina Chumillas
committed
/* The actual sort link. */
.sortable-heading {
padding: 0 var(--space-m);
}
.sortable-heading > a {
display: block;

Cristina Chumillas
committed
padding-block: var(--space-xs);
padding-inline: 0 1.5rem;
-webkit-text-decoration: none;
text-decoration: none;
color: inherit;
}

Cristina Chumillas
committed
.sortable-heading > a:focus,
.sortable-heading > a:hover {
-webkit-text-decoration: none;
text-decoration: none;
}
.sortable-heading > a:focus::before,
.sortable-heading > a:hover::before {
border-color: inherit;
}
.sortable-heading > a:focus::after,
.sortable-heading > a:hover::after {
opacity: 1;
}
.sortable-heading > a::before {
position: absolute;
z-index: 0;

Cristina Chumillas
committed
inset-block-start: 0;
inset-inline-end: 1rem;
inset-block-end: 0;
inset-inline-start: 1rem;
display: block;
content: "";
border-bottom: 0.125rem solid transparent;
}
.sortable-heading > a::after {
position: absolute;

Cristina Chumillas
committed
inset-block-start: 50%;
inset-inline-end: 1rem;
width: 0.875rem;
height: 1rem;

Cristina Chumillas
committed
margin-block-start: -0.5rem;
content: "";
opacity: 0.5;

Cristina Chumillas
committed
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;
background-size: contain;
}

Théodore Biadala
committed
[dir="rtl"] :is(.sortable-heading > a::after) {
/* Horizontally flip the element. */
transform: scaleX(-1);
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e");
}
@media (forced-colors: active) {

Théodore Biadala
committed
[dir="rtl"] :is(.sortable-heading > a::after) {

Cristina Chumillas
committed
-webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;
mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;

Lauri Timmanee
committed
}
@media (forced-colors: active) {

Théodore Biadala
committed
.sortable-heading > a::after {
opacity: 1;
background: linktext;
-webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;
mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;

Lauri Timmanee
committed
}
.sortable-heading.is-active > a {
color: var(--color-absolutezero);
}
.sortable-heading.is-active > a::before {
border-bottom: 0.1875rem solid var(--color-absolutezero);
}
.sortable-heading.is-active > a::after {
content: none;
}
tr {
border-bottom: 0.0625rem solid var(--color-gray-200);
}
tr:hover,
tr:focus {
color: var(--color-text);
background: var(--color-bgblue-hover);
}
tr.color-warning:hover,
tr.color-warning:focus {
color: var(--color-text);
background: #fdf8ed;
}
tr.color-error:hover,
tr.color-error:focus {
color: var(--color-text);
background: #fcf4f2;
}

Cristina Chumillas
committed
tr,
.draggable-table.tabledrag-disabled tr {
color: var(--color-text);
background: var(--color-white);
}
thead tr {
border: 0;
}
td {
box-sizing: border-box;
height: 4rem;
padding: var(--space-xs) var(--space-m);

Cristina Chumillas
committed
text-align: start;
}
td .item-list ul {
margin: 0;
}
td.is-active {
background: none;
}
/**
* Target every .form-element input that parent is a form-item of a table cell.
* This ignores the filter format select of the textarea editor.
*/
td > .form-item > .form-element,

Lauri Timmanee
committed
td > .ajax-new-content > .form-item > .form-element,
td > .form-item > .claro-autocomplete,
td > .form-item > .claro-autocomplete > .form-element,
td > .ajax-new-content > .form-item > .claro-autocomplete,
td > .ajax-new-content > .form-item > .claro-autocomplete > .form-element {
width: 100%;
}
td > .form-item > .form-element--type-select,
td > .ajax-new-content > .form-item > .form-element--type-select {
width: max-content;
min-width: 100%;
}
/* Win over table-file-multiple-widget. */
th.is-disabled.is-disabled {
color: var(--input--disabled-fg-color);
}
/* Force browsers to calculate the width of a 'select all' <th> element. */
th.select-all {
width: 1px;
}
/**
* Captions.
*/
.caption {

Cristina Chumillas
committed
margin-block-end: 1.25rem; /* 20px */
}
tfoot {
font-weight: bold;
}
tfoot tr:last-child {
border-bottom: 0;
}
tfoot tr:first-child td {
border-top: 0.0625rem solid var(--color-gray-500);
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
}
/**
* Responsive table cells.
*/
th.priority-low,
th.priority-medium,
td.priority-low,
td.priority-medium {
display: none;
}
@media screen and (min-width: 38em) {
th.priority-medium,
td.priority-medium {
display: table-cell;
}
}
@media screen and (min-width: 60em) {
th.priority-low,
td.priority-low {
display: table-cell;
}
}
.tabledrag-toggle-weight-wrapper {

Cristina Chumillas
committed
margin-block-start: var(--space-l);

Lauri Timmanee
committed
line-height: calc(28rem / 16);
}
.tabledrag-toggle-weight-wrapper + table,
.tabledrag-toggle-weight-wrapper + .tableresponsive-toggle-columns + table {

Cristina Chumillas
committed
margin-block-start: 0;