You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Styles/components/_list.scss

132 lines
2.4 KiB

2 years ago
.list {
margin: 0;
padding: 0;
position: relative;
list-style: none;
&.list-padding {
padding-top: 8px;
padding-bottom: 8px;
}
}
.list-item {
width: 100%;
display: flex;
position: relative;
box-sizing: border-box;
text-align: start;
align-items: center;
padding-top: 8px;
padding-bottom: 8px;
justify-content: flex-start;
text-decoration: none;
&.list-item-dense {
padding-top: 4px;
padding-bottom: 4px;
}
&.list-item-disabled {
color: var(--palette-action-disabled) !important;
cursor: default !important;
pointer-events: none !important;
.list-item-icon {
color: var(--palette-action-disabled) !important;
}
}
}
.list-item-clickable {
color: inherit;
border: 0;
cursor: pointer;
margin: 0;
outline: 0;
user-select: none;
border-radius: 0;
vertical-align: middle;
background-color: transparent;
-webkit-appearance: none;
-webkit-tap-highlight-color: transparent;
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
&:hover {
background-color: var(--palette-action-default-hover);
}
&:focus:not(.selected-item) {
background-color: var(--palette-action-default-hover);
}
}
.list-item-gutters {
padding-left: 16px;
padding-right: 16px;
}
.list-item-text {
flex: 1 1 auto;
min-width: 0;
margin-top: 4px;
margin-bottom: 4px;
}
.list-item-text-inset {
padding-left: 56px;
padding-inline-start: 56px;
padding-inline-end: unset;
}
.list-item-icon {
color: var(--palette-action-default);
display: inline-flex;
min-width: 56px;
flex-shrink: 0;
}
.list-subheader {
color: var(--palette-action-default);
font-size: 0.875rem;
box-sizing: border-box;
list-style: none;
font-weight: 500;
padding-top: 8px;
padding-bottom: 20px;
}
.list-subheader-gutters {
padding-left: 16px;
padding-right: 16px;
}
.list-subheader-inset {
padding-left: 72px;
padding-inline-start: 72px;
padding-inline-end: unset;
}
.list-subheader-sticky {
top: 0;
z-index: 1;
position: sticky;
background-color: inherit;
}
.list-item-avatar {
min-width: 56px;
flex-shrink: 0;
}
.nested-list {
& > .list-item {
padding-left: 32px;
padding-inline-start: 32px;
padding-inline-end: unset;
}
}