Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 45: | Line 45: | ||
#dct-tabulator.tabulator .tabulator-cell { border-right: 0 none; border-bottom: 1px solid var(--links-blue); padding: .5em 0; } | #dct-tabulator.tabulator .tabulator-cell { border-right: 0 none; border-bottom: 1px solid var(--links-blue); padding: .5em 0; } | ||
.data-source-img { width: 2em; height: 2em; } | .data-source-img { width: 2em; height: 2em; } | ||
.data-source-img.unselected { | |||
filter: grayscale(1); | |||
opacity: .5; | |||
} | |||
</style> | </style> | ||
Line 129: | Line 133: | ||
document.querySelectorAll('.data-source-cell .data-source-img').forEach(img => { | document.querySelectorAll('.data-source-cell .data-source-img').forEach(img => { | ||
if (selectedSources.includes(img.dataset.value)) { img.classList.remove(' | if (selectedSources.includes(img.dataset.value)) { img.classList.remove('unselected') } | ||
else { img.classList.add(' | else { img.classList.add('unselected'); } | ||
}); | }); | ||
Revision as of 16:14, 8 June 2022
Development verstion of the DCT List.
Not ready for production!