1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/components/listview/listview.scss

320 lines
5.3 KiB
SCSS
Raw Normal View History

2018-10-23 01:13:23 +03:00
.listItem {
background: transparent;
2018-10-23 01:13:23 +03:00
border: 0;
outline: none !important;
2018-10-23 01:13:23 +03:00
color: inherit;
vertical-align: middle;
font-family: inherit;
font-size: inherit;
margin: 0;
display: block;
2018-10-23 01:13:23 +03:00
align-items: center;
cursor: pointer;
overflow: hidden;
[dir="ltr"] & {
text-align: left;
padding: 0.25em 0.25em 0.25em 0.5em;
}
[dir="rtl"] & {
text-align: right;
padding: 0.25em 0.5em 0.25em 0.25em;
}
2018-10-23 01:13:23 +03:00
}
.listItem-withContentWrapper {
flex-direction: column;
align-items: flex-start;
2018-10-23 01:13:23 +03:00
}
.listItem[data-action=none] {
cursor: default;
2018-10-23 01:13:23 +03:00
}
.listItem-content {
display: flex;
align-items: center;
width: 100%;
2018-10-23 01:13:23 +03:00
}
.listItem-button {
width: 100%;
2018-10-23 01:13:23 +03:00
}
.listItem-indexnumberleft {
2020-01-14 19:45:57 +09:00
min-width: 2%;
text-align: center;
margin-right: 1em;
2018-10-23 01:13:23 +03:00
}
.listItem-border {
2019-09-06 22:33:15 -07:00
display: block;
margin: 0;
padding: 0;
border-width: 0 0 0.1em 0;
border-style: solid;
border-radius: 0;
}
.listItem-border.show-focus:focus {
2020-01-19 15:01:18 +01:00
transform: scale(1) !important;
2018-10-23 01:13:23 +03:00
}
2020-01-22 21:40:45 +01:00
.listItemImage,
2020-01-25 11:42:43 +01:00
.listItemIcon,
.listItemAside {
flex-shrink: 0;
}
2020-01-22 21:40:45 +01:00
.listItemBody,
2020-01-25 11:42:43 +01:00
.listItemImage,
.listItemIcon {
display: inline-block;
vertical-align: middle;
2018-10-23 01:13:23 +03:00
}
.listItemButton {
margin: 0;
display: inline-block;
vertical-align: middle;
2018-10-23 01:13:23 +03:00
flex-shrink: 0;
contain: layout style;
2018-10-23 01:13:23 +03:00
}
.listViewDragHandle {
touch-action: none;
2022-07-14 17:59:37 -04:00
[dir="ltr"] & {
margin-left: -0.25em !important;
}
[dir="rtl"] & {
margin-right: -0.25em !important;
}
2018-10-23 01:13:23 +03:00
}
.listItemBody {
flex-grow: 1;
2020-01-19 15:00:37 +01:00
padding: 0.85em 0.75em;
overflow: hidden;
text-overflow: ellipsis;
2018-10-23 01:13:23 +03:00
flex-direction: column;
vertical-align: middle;
justify-content: center;
2018-10-23 01:13:23 +03:00
}
2020-01-22 21:40:45 +01:00
.listItem,
2020-01-25 11:42:43 +01:00
.listItemBody,
.listItemMediaInfo {
2020-01-19 14:29:41 +01:00
display: flex;
contain: layout style;
}
2018-10-23 01:13:23 +03:00
.layout-tv .listItemBody {
2020-01-19 15:00:37 +01:00
padding: 0.35em 0.75em;
2018-10-23 01:13:23 +03:00
}
.listItemBody-noleftpadding {
padding-left: 0 !important;
2018-10-23 01:13:23 +03:00
}
.listItemBodyText {
margin: 0;
2020-01-19 15:00:37 +01:00
padding: 0.1em 0;
overflow: hidden;
text-overflow: ellipsis;
2018-10-23 01:13:23 +03:00
}
2020-01-25 20:39:03 +01:00
.layout-desktop .listItemBodyText {
margin: 0.25em 0 0 0;
}
2018-10-23 01:13:23 +03:00
.listItemBodyText-nowrap {
white-space: nowrap;
2018-10-23 01:13:23 +03:00
}
.listItemImage {
width: 4em;
height: 4em;
min-width: 2.78em;
min-height: 2.78em;
background-repeat: no-repeat;
background-size: cover;
2018-10-23 01:13:23 +03:00
flex-shrink: 0;
background-position: center center;
position: relative;
display: flex;
2018-10-23 01:13:23 +03:00
}
.listItemImage-large {
width: 19.5vw;
height: 13vw;
background-position: center center;
2020-01-19 15:00:37 +01:00
margin-right: 0.75em;
2018-10-23 01:13:23 +03:00
}
.listItemImageButton {
align-self: center;
justify-self: center;
margin: auto;
2020-01-08 23:18:00 +09:00
color: rgba(255, 255, 255, 0.6);
background: rgba(0, 0, 0, 0.4);
2018-10-23 01:13:23 +03:00
font-size: 1.6em;
2020-01-08 23:18:00 +09:00
transition: 200ms ease-out;
display: flex;
2018-10-23 01:13:23 +03:00
}
2019-01-10 15:41:25 +03:00
.listItemImageButton:hover {
2020-01-08 23:18:00 +09:00
color: #00a4dc;
background: rgba(0, 164, 220, 0.2);
2019-09-06 22:33:15 -07:00
transform: scale(1.2, 1.2);
2019-01-10 15:41:25 +03:00
}
2018-10-23 01:13:23 +03:00
.listItemImageButton-icon {
border-radius: 100em;
display: flex;
justify-content: center;
align-items: center;
2019-09-06 22:33:15 -07:00
padding: 0.2em;
2018-10-23 01:13:23 +03:00
}
.listItemImage .cardImageIcon {
font-size: 3em;
}
@media all and (max-width: 64em) {
2018-10-23 01:13:23 +03:00
.listItemImage-large {
2020-01-17 17:56:52 +03:00
width: 22vw;
height: 16vw;
margin-right: 0 !important;
2018-10-23 01:13:23 +03:00
}
2020-01-17 20:10:38 +03:00
.listItemIndicators,
2018-10-23 01:13:23 +03:00
.listItemImageButton {
2020-01-17 20:10:38 +03:00
font-size: 0.6em !important;
2018-10-23 01:13:23 +03:00
}
.listItemBody {
2020-01-19 15:00:37 +01:00
padding-left: 0.75em;
2018-10-23 01:13:23 +03:00
}
}
@media all and (max-width: 50em) {
2018-10-23 01:13:23 +03:00
.listItemBody {
2020-01-19 15:00:37 +01:00
padding-right: 0.5em;
2018-10-23 01:13:23 +03:00
}
.listItemMediaInfo {
display: none;
}
2018-10-23 01:13:23 +03:00
}
@media all and (max-width: 40em) {
[data-type='Movie'] .listItemImage,
[data-type='Series'] .listItemImage {
display: none;
}
}
2018-10-23 01:13:23 +03:00
.listItemImage-large-tv {
width: 30vw !important;
height: 20vw !important;
2018-10-23 01:13:23 +03:00
}
.listItemIcon {
width: 1em !important;
height: 1em !important;
font-size: 143%;
[dir="ltr"] & {
margin: 0 0.25em 0 0;
}
[dir="rtl"] & {
margin: 0 0 0 0.25em;
}
2018-10-23 01:13:23 +03:00
}
2019-01-10 15:41:25 +03:00
.listItemIcon:not(.listItemIcon-transparent) {
background-color: #00a4dc;
color: #fff;
2020-01-19 15:00:37 +01:00
padding: 0.5em;
2019-01-10 15:41:25 +03:00
border-radius: 100em;
[dir="ltr"] & {
margin: 0 0.2em 0 0.4em;
}
[dir="rtl"] & {
margin: 0 0.4em 0 0.2em;
}
2019-01-10 15:41:25 +03:00
}
2018-10-23 01:13:23 +03:00
.listItemProgressBar {
position: absolute;
bottom: 0;
left: 0;
right: 0;
2018-10-23 01:13:23 +03:00
}
.listItem:focus {
2020-01-19 15:00:37 +01:00
border-radius: 0.2em;
2018-10-23 01:13:23 +03:00
}
2019-01-10 15:41:25 +03:00
.listItem:focus .secondary {
color: inherit !important;
}
2018-10-23 01:13:23 +03:00
.listItem-focusscale {
2020-01-19 15:00:37 +01:00
transition: transform 0.2s ease-out;
2018-10-23 01:13:23 +03:00
}
2019-01-10 15:41:25 +03:00
.listItem-focusscale:focus {
transform: scale(1.025, 1.025);
}
2018-10-23 01:13:23 +03:00
.paperList {
2020-01-19 15:00:37 +01:00
margin: 0.5em auto;
2018-10-23 01:13:23 +03:00
}
.paperList-clear {
background-color: transparent !important;
2018-10-23 01:13:23 +03:00
}
.listGroupHeader-first {
margin-top: 0;
2018-10-23 01:13:23 +03:00
}
.listItemIndicators {
2020-01-19 15:00:37 +01:00
right: 0.324em;
top: 0.324em;
2018-10-23 01:13:23 +03:00
position: absolute;
display: flex;
align-items: center;
2018-10-23 01:13:23 +03:00
}
.listItem-bottomoverview {
font-size: 88%;
margin-bottom: 1em;
2020-01-19 15:00:37 +01:00
margin-top: 0.2em;
2018-10-23 01:13:23 +03:00
}
@media all and (max-width: 50em) {
2020-01-22 21:40:45 +01:00
.listItem .endsAt,
2020-01-25 11:42:43 +01:00
.listItem .criticRating,
.listItem-overview {
display: none !important;
2018-10-23 01:13:23 +03:00
}
}
@media all and (min-width: 50em) {
2018-10-23 01:13:23 +03:00
.listItem-bottomoverview {
display: none !important;
2018-10-23 01:13:23 +03:00
}
}
.listItemCheckboxContainer {
width: auto !important;
2020-01-08 23:18:00 +09:00
}