-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcard.css
82 lines (69 loc) · 2.81 KB
/
card.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
:root {
--list-item-image-large-border-radius: 10px;
--list-item-wrapper-padding: 0.5em
}
/* Change the border radius of media cards */
.cardBox:not(.visualCardBox) .cardImageContainer.cardContent,
.cardBox:not(.visualCardBox) .cardPadder,
.card-hoverable:hover .cardOverlayContainer,
.card-hoverable .cardOverlayContainer,
.card-hoverable .blurhash-canvas {
border-radius: 10px;
}
/* Change the border radius of device, user or library cards in settings */
.cardBox.visualCardBox {
border-radius: 10px;
}
/* Fix the border radius when the card contains an upper and a bottom part (like an image and a text) */
.cardBox.visualCardBox .cardContent {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
/* Make the progress bar (when a film was started) float in the card */
.itemProgressBar:not(.activeSession .itemProgressBar) {
height: 6px;
margin: .5em .8em;
}
/* Put the progress bar at the top of the card */
.fullInnerCardFooter:not(.activeSession .fullInnerCardFooter) {
top: 0;
}
/* Change the border radius of the progress bar */
.itemProgressBarForeground:not(.activeSession .itemProgressBarForeground),
.itemProgressBar:not(.activeSession .itemProgressBar) {
border-radius: 10px;
}
/*****************************************************************************/
/* TV show season detail page specific settings (like Breaking Bad Season 2) */
/*****************************************************************************/
/* Add a border radius to the episode images */
.listItemImage.listItemImage-large {
border-radius: var(--list-item-image-large-border-radius);
}
/* Add a border radius to the episode list container */
.listItem.listItem-largeImage.listItem-withContentWrapper {
padding: var(--list-item-wrapper-padding);
border-radius: calc(var(--list-item-image-large-border-radius) + var(--list-item-wrapper-padding)) !important;
}
/* Set a max height for the episode overviews */
.listItemImage-large + .listItemBody {
max-height: 13vw;
box-sizing: border-box;
}
/* Change color on hover for the episode titles */
.listItem.listItem-largeImage.listItem-withContentWrapper:hover .listItemBodyText:first-child {
color: rgba(255, 255, 255, 1);
}
/* Change color on hover for the episode descriptions */
.listItem.listItem-largeImage.listItem-withContentWrapper:hover .listItemBodyText.listItem-overview {
color: rgba(255, 255, 255, 0.75);
}
/* Crop the text when episode description is bigger than 8 lines */
.listItem.listItem-largeImage.listItem-withContentWrapper .listItemBodyText.listItem-overview {
display: -webkit-box;
-webkit-line-clamp: 8;
-webkit-box-orient: vertical;
text-align: justify;
}