mirror of
https://github.com/strapi/strapi.git
synced 2025-09-02 21:32:43 +00:00
88 lines
1.8 KiB
JavaScript
88 lines
1.8 KiB
JavaScript
![]() |
/**
|
||
|
*
|
||
|
* List
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import styled from 'styled-components';
|
||
|
import colors from '../../styles/colors';
|
||
|
import sizes from '../../styles/sizes';
|
||
|
|
||
|
const List = styled.div`
|
||
|
width: 100%;
|
||
|
position: relative;
|
||
|
overflow-x: scroll;
|
||
|
border-radius: 3px;
|
||
|
box-shadow: 0 2px 4px #e3e9f3;
|
||
|
background: white;
|
||
|
i {
|
||
|
display: inline-block;
|
||
|
text-rendering: auto;
|
||
|
font-weight: 600;
|
||
|
color: ${colors.blueTxt};
|
||
|
font-style: initial;
|
||
|
font-size: 13px;
|
||
|
&.link-icon {
|
||
|
padding-left: 2.25rem;
|
||
|
font-weight: 100;
|
||
|
}
|
||
|
}
|
||
|
table {
|
||
|
border-collapse: collapse;
|
||
|
width: 100%;
|
||
|
min-width: 500px;
|
||
|
font-family: 'Lato';
|
||
|
}
|
||
|
thead {
|
||
|
tr {
|
||
|
height: 3rem;
|
||
|
line-height: 0.1rem;
|
||
|
font-weight: bold;
|
||
|
text-transform: capitalize;
|
||
|
td {
|
||
|
background-color: ${colors.greyHeader};
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
tbody {
|
||
|
color: ${colors.blueTxt};
|
||
|
tr {
|
||
|
height: 5.4rem;
|
||
|
&::before {
|
||
|
content: '-';
|
||
|
display: inline-block;
|
||
|
line-height: 1.1em;
|
||
|
color: transparent;
|
||
|
background-color: transparent;
|
||
|
position: absolute;
|
||
|
left: ${sizes.margin * 2}px;
|
||
|
width: calc(100% - ${sizes.margin * 4}px);
|
||
|
height: 1px;
|
||
|
margin-top: -${sizes.margin * 0.1}px;
|
||
|
}
|
||
|
&:not(:first-of-type)::before {
|
||
|
background-color: rgba(14, 22, 34, 0.04);
|
||
|
}
|
||
|
}
|
||
|
td {
|
||
|
padding: 0.75em;
|
||
|
vertical-align: middle;
|
||
|
font-size: 1.3rem;
|
||
|
line-height: 1.8rem;
|
||
|
&:first-of-type {
|
||
|
padding-left: calc(3rem + 0.75em);
|
||
|
padding-left: ${sizes.margin * 2.8}px;
|
||
|
}
|
||
|
&:last-of-type {
|
||
|
padding-right: calc(3rem + 0.75em);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
@media (min-width: ${sizes.tablet}) {
|
||
|
width: 100%;
|
||
|
overflow-x: auto;
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
export default List;
|