@nuxeo/nuxeo-ui-elements
Version:
Nuxeo UI Web Components.
73 lines (62 loc) • 2.05 kB
JavaScript
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
const template = html`
<custom-style>
<style>
html {
--iron-data-table: {
border: 1px solid var(--nuxeo-tag-background, rgba(0, 0, 0, 0.05));
box-shadow: var(
--nuxeo-app-header-box-shadow,
1px 0 0 rgba(0, 0, 0, 0.1) inset,
0 3px 5px rgba(0, 0, 0, 0.1)
);
background-color: #f7f8fa;
font-weight: 400;
line-height: 1.1;
font-family: var(--nuxeo-app-font, 'Open Sans', Arial, sans-serif);
color: var(--nuxeo-text-default, rgba(0, 0, 0, 0.87));
}
--iron-data-table-header: {
background-color: var(--nuxeo-table-header-background, #fafafa);
color: var(--secondary-text-color, #939caa);
font-weight: 600;
font-size: 1rem;
height: 50px;
border-bottom: 1px solid var(--nuxeo-border, #e3e3e3);
min-height: 50px;
padding-bottom: 0;
}
--iron-data-table-row: {
border-bottom: 1px solid var(--nuxeo-border, #e3e3e3);
}
--iron-data-table-row-hover: {
background-color: var(--nuxeo-container-hover, #eee);
}
--iron-data-table-row-selected: {
color: var(--default-primary-color, #03a9fa);
}
--iron-data-table-row-after: {
bottom: 0;
content: '';
height: 2px;
left: 0;
pointer-events: none;
position: absolute;
right: 0;
transition: all 0.16s ease-in-out;
-webkit-transform: scaleX(0);
transform: scaleX(0);
z-index: 1;
}
--iron-data-table-row-focused: {
background-color: var(--nuxeo-container-hover, #eee);
}
--iron-data-table-row-focused-after: {
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
}
</style>
</custom-style>
`;
document.head.appendChild(template.content);