jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/card.css

636 lines
10 KiB
CSS
Raw Normal View History

2016-10-05 00:15:29 -07:00
button::-moz-focus-inner {
padding: 0;
2016-10-05 21:28:10 -07:00
border: 0;
}
button {
-webkit-border-fit: border !important;
2016-10-05 00:15:29 -07:00
}
2016-07-28 19:42:42 -07:00
.card {
2016-08-08 19:10:12 -07:00
border: 0;
font-size: inherit !important;
font-family: inherit !important;
2016-07-28 19:42:42 -07:00
text-transform: none;
background-color: transparent !important;
background: none !important;
margin: 0;
padding: 0;
display: block;
color: inherit !important;
outline: none !important;
cursor: pointer;
contain: style;
2016-07-29 08:54:43 -07:00
flex-shrink: 0;
2016-08-02 21:30:22 -07:00
font-weight: inherit !important;
2016-07-28 19:42:42 -07:00
}
2016-07-29 08:54:43 -07:00
.itemsContainer {
display: flex;
2016-07-28 19:42:42 -07:00
}
2016-07-29 22:25:07 -07:00
.vertical-list {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
}
.vertical-wrap {
2016-07-29 08:54:43 -07:00
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
2016-07-29 23:06:01 -07:00
.vertical-wrap.centered {
justify-content: center;
}
2016-08-23 23:13:15 -07:00
.vertical-wrap > .card {
2016-08-11 22:59:45 -07:00
contain: layout style;
2016-07-29 08:54:43 -07:00
}
2016-07-28 19:42:42 -07:00
.cardScalable {
position: relative;
}
2016-08-11 13:28:49 -07:00
.cardPadder-backdrop, .cardPadder-smallBackdrop, .cardPadder-overflowBackdrop {
2016-07-28 19:42:42 -07:00
padding-bottom: 56.25%;
}
2016-08-11 13:28:49 -07:00
.cardPadder-square, .cardPadder-overflowSquare {
2016-07-28 19:42:42 -07:00
padding-bottom: 100%;
}
2016-08-11 13:28:49 -07:00
.cardPadder-portrait, .cardPadder-overflowPortrait {
2016-07-28 19:42:42 -07:00
padding-bottom: 150%;
}
2016-08-11 13:28:49 -07:00
.cardPadder-banner {
2016-07-28 19:42:42 -07:00
padding-bottom: 18.5%;
}
2016-08-11 21:33:56 -07:00
.cardBox {
2016-07-28 19:42:42 -07:00
padding: 0 !important;
margin: 0;
2016-08-08 19:10:12 -07:00
transition: none;
2016-07-28 19:42:42 -07:00
border: 3px solid transparent;
2016-08-14 21:36:17 -07:00
/* Needed in case cardBox is a button */
background-color: transparent;
2016-07-28 19:42:42 -07:00
}
2016-08-11 22:59:45 -07:00
.cardBox-focustransform {
2016-07-29 21:21:03 -07:00
will-change: transform;
}
2016-08-30 10:39:15 -07:00
.cardBox-focustransform-transition {
will-change: transform;
transition: transform 200ms ease-out;
}
.card-focusscale:focus > .cardBox-focustransform {
2016-08-11 22:59:45 -07:00
transform: scale(1.16, 1.16);
2016-08-30 10:39:15 -07:00
}
2016-08-11 22:59:45 -07:00
2016-10-03 22:15:39 -07:00
.cardBox-mobile {
2016-10-14 09:22:04 -07:00
margin: 2px;
2016-08-01 22:55:52 -07:00
}
2016-07-28 19:42:42 -07:00
.card:focus {
position: relative !important;
z-index: 10 !important;
2016-08-02 21:30:22 -07:00
font-weight: inherit !important;
2016-07-28 19:42:42 -07:00
}
.card:focus .cardBox {
border-color: transparent;
}
2016-08-11 21:33:56 -07:00
.cardBox-bottompadded {
2016-07-29 12:51:58 -07:00
margin-bottom: 1em;
}
.btnCardOptions {
2016-09-05 13:07:36 -07:00
position: absolute;
bottom: 0;
right: 0;
2016-07-29 12:51:58 -07:00
margin: 0 !important;
2016-09-05 13:07:36 -07:00
z-index: 1;
2016-07-29 12:51:58 -07:00
}
2016-07-30 19:54:17 -07:00
.mediaSourceIndicator {
display: flex;
position: absolute;
align-items: center;
justify-content: center;
top: .3em;
left: .3em;
text-align: center;
vertical-align: middle;
width: 24px;
height: 24px;
border-radius: 50%;
color: #fff;
background: rgb(51, 136, 204);
}
2016-07-28 19:42:42 -07:00
.cardImageContainer {
background-size: contain;
background-repeat: no-repeat;
2016-07-29 12:51:58 -07:00
background-position: center center;
2016-07-28 19:42:42 -07:00
display: -ms-flex;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background-clip: content-box !important;
2016-08-08 11:13:52 -07:00
color: #fff;
2016-08-23 23:13:15 -07:00
/* This is only needed for scalable cards */
height: 100%;
2016-08-01 22:55:52 -07:00
}
2016-07-31 22:09:09 -07:00
.chapterCardImageContainer {
background-color: #000;
2016-08-01 22:55:52 -07:00
border-radius: 0;
2016-07-31 22:09:09 -07:00
}
2016-08-08 19:10:12 -07:00
.cardImageContainer-button {
2016-07-30 19:54:17 -07:00
border: 0;
padding: 0;
background-color: transparent;
box-sizing: content-box;
outline: none !important;
cursor: pointer;
}
/* Used by non-scalable cards */
.forceRelative {
position: relative;
}
2016-07-29 21:21:03 -07:00
.cardContent {
overflow: hidden;
2016-07-28 19:42:42 -07:00
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
2016-08-02 21:30:22 -07:00
/* Needed in case this is a button */
display: block;
2016-10-05 21:28:10 -07:00
/* Needed in safari */
height: 100%;
2016-07-29 21:21:03 -07:00
}
2016-08-19 23:58:35 -07:00
.cardImage {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-size: contain;
background-repeat: no-repeat;
background-position: center bottom;
}
2016-10-05 00:15:29 -07:00
.cardImage-img {
max-height: 100%;
max-width: 100%;
2016-10-05 21:28:10 -07:00
/* This is simply for lazy image purposes, to ensure the image is visible sooner when scrolling */
min-height: 70%;
min-width: 70%;
2016-10-05 00:15:29 -07:00
align-self: flex-end;
position: static;
}
.coveredImage-img {
max-height: none;
max-width: none;
height: 100%;
width: 100%;
}
2016-08-19 23:27:48 -07:00
.coveredImage {
2016-07-28 19:42:42 -07:00
background-size: 100% 100%;
background-position: center center;
}
2016-08-19 23:27:48 -07:00
.coveredImage-noScale {
2016-07-28 19:42:42 -07:00
background-size: cover;
}
.cardFooter {
2016-07-29 08:54:43 -07:00
padding: .5em .3em;
2016-09-05 13:07:36 -07:00
position: relative;
2016-07-29 08:54:43 -07:00
}
2016-08-23 23:13:15 -07:00
.visualCardBox-cardScalable, .visualCardBox-cardFooter {
2016-07-30 16:23:57 -07:00
background-color: #222326;
}
2016-08-23 10:07:50 -07:00
.visualCardBox-cardFooter {
2016-10-03 23:12:28 -07:00
border-bottom-left-radius: 1px;
border-bottom-right-radius: 1px;
2016-07-28 19:42:42 -07:00
}
.innerCardFooter {
background: rgba(0,0,0,.7);
position: absolute;
bottom: 0;
left: 0;
text-align: left;
z-index: 1;
overflow: hidden;
max-width: 100%;
2016-08-08 11:13:52 -07:00
color: #fff;
2016-07-28 19:42:42 -07:00
}
2016-08-01 22:55:52 -07:00
.innerCardFooterClear {
background-color: transparent;
}
2016-07-28 19:42:42 -07:00
.fullInnerCardFooter {
right: 0;
}
.cardText {
2016-10-02 20:49:52 -07:00
padding: .35em .5em;
2016-07-28 19:42:42 -07:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: inherit;
2016-10-07 08:08:13 -07:00
text-align: left;
2016-07-28 19:42:42 -07:00
}
.singleCardText {
padding: .5em;
}
2016-07-29 12:51:58 -07:00
.cardTextCentered {
text-align: center;
}
2016-08-08 19:10:12 -07:00
.cardText-secondary {
opacity: .6;
}
2016-09-05 13:07:36 -07:00
.cardText-rightmargin {
margin-right: 2em;
}
2016-10-11 14:33:38 -07:00
.cardDefaultText {
2016-07-28 19:42:42 -07:00
white-space: normal;
2016-10-11 14:33:38 -07:00
text-align: center;
2016-07-28 19:42:42 -07:00
}
2016-09-05 13:07:36 -07:00
.textActionButton {
border: 0 !important;
background: transparent;
border: 0 !important;
padding: 0 !important;
cursor: pointer;
outline: none !important;
color: inherit;
vertical-align: middle;
font-family: inherit;
font-size: inherit;
/*display: flex;
align-items: center;
justify-content: center;*/
}
.textActionButton:hover {
text-decoration: underline;
opacity: 1;
}
.cardFooterLogo {
margin-right: 1em;
}
2016-07-28 19:42:42 -07:00
.cardImageIcon {
width: 12vh;
height: 12vh;
font-size: 12vh;
color: #fff;
}
2016-08-08 11:13:52 -07:00
.cardIndicators {
2016-08-04 10:15:34 -07:00
right: 2.5%;
top: 2.5%;
2016-07-28 19:42:42 -07:00
position: absolute;
display: flex;
align-items: center;
}
2016-08-08 11:13:52 -07:00
.portraitCardIndicators {
2016-08-04 10:15:34 -07:00
right: 3%;
top: 2%;
}
2016-08-08 11:13:52 -07:00
.backdropCardIndicators {
2016-08-04 10:15:34 -07:00
right: 1.5%;
top: 2.8%;
}
2016-07-29 08:54:43 -07:00
.cardOverlayButton {
color: #fff !important;
2016-10-10 23:46:59 -07:00
background-color: rgba(0,0,0,.8) !important;
2016-07-29 08:54:43 -07:00
border-radius: 500px;
position: absolute;
bottom: 0;
right: 0;
2016-07-29 21:21:03 -07:00
margin: 0 .35em .5em 0;
2016-07-29 12:51:58 -07:00
z-index: 1;
2016-10-13 08:07:21 -07:00
padding: 6px;
2016-10-10 23:46:59 -07:00
/*opacity: 0;
2016-10-13 08:07:21 -07:00
transition: opacity 0.5s ease-in; */
2016-07-29 08:54:43 -07:00
}
2016-10-10 23:46:59 -07:00
/*.card:hover .cardOverlayButton {
opacity: 1;
}*/
2016-07-29 08:54:43 -07:00
.cardOverlayButton:hover {
background-color: rgba(0,0,0,.9) !important;
transition: background-color .5s ease-out;
}
2016-07-29 12:51:58 -07:00
.defaultCardColor1 {
background-color: #009688;
}
.defaultCardColor2 {
background-color: #D32F2F;
}
.defaultCardColor3 {
background-color: #0288D1;
}
.defaultCardColor4 {
background-color: #388E3C;
}
.defaultCardColor5 {
background-color: #F57F17;
}
2016-08-26 10:24:04 -07:00
.bannerCard-scalable {
2016-08-04 09:39:19 -07:00
width: 100%;
}
2016-08-26 10:24:04 -07:00
.backdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 100%;
}
2016-08-26 10:24:04 -07:00
.smallBackdropCard-scalable {
2016-07-29 23:23:56 -07:00
width: 50%;
}
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 50%;
}
2016-08-26 10:24:04 -07:00
.portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 33.333333333333333333333333333333%;
}
2016-08-26 10:24:04 -07:00
.overflowPortraitCard-scalable {
2016-10-14 09:22:04 -07:00
width: 42%;
2016-07-29 08:54:43 -07:00
max-width: 200px;
}
2016-08-26 10:24:04 -07:00
.overflowBackdropCard-scalable {
2016-10-14 09:22:04 -07:00
width: 72%;
2016-07-29 08:54:43 -07:00
max-width: 400px;
}
2016-08-26 10:24:04 -07:00
.overflowSquareCard-scalable {
2016-10-14 09:22:04 -07:00
width: 42%;
2016-10-13 11:43:47 -07:00
max-width: 200px;
2016-07-29 08:54:43 -07:00
}
2016-07-29 21:21:03 -07:00
@media all and (min-width: 420px) {
2016-07-29 08:54:43 -07:00
2016-08-26 10:24:04 -07:00
.backdropCard-scalable {
2016-07-29 21:21:03 -07:00
width: 50%;
2016-07-29 08:54:43 -07:00
}
}
@media all and (min-width: 500px) {
2016-08-26 10:24:04 -07:00
.smallBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 33.333333333333333333333333333333%;
}
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 33.333333333333333333333333333333%;
}
}
2016-10-13 11:43:47 -07:00
@media all and (min-width: 540px) {
2016-07-29 08:54:43 -07:00
2016-08-26 10:24:04 -07:00
.overflowPortraitCard-scalable {
2016-10-13 11:43:47 -07:00
width: 30%;
2016-07-29 08:54:43 -07:00
}
2016-08-26 10:24:04 -07:00
.overflowBackdropCard-scalable {
2016-10-13 11:43:47 -07:00
width: 64%;
2016-07-29 08:54:43 -07:00
}
2016-08-26 10:24:04 -07:00
.overflowSquareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 30%;
}
}
2016-10-13 11:43:47 -07:00
@media all and (min-width: 640px) {
.portraitCard-scalable {
width: 25%;
}
.overflowBackdropCard-scalable {
width: 56%;
}
}
2016-07-29 08:54:43 -07:00
@media all and (min-width: 700px) {
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 25%;
}
}
@media all and (min-width: 770px) {
2016-08-26 10:24:04 -07:00
.backdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 33.333333333333333333333333333333%;
}
}
@media all and (min-width: 800px) {
2016-08-26 10:24:04 -07:00
.bannerCard-scalable {
2016-07-29 08:54:43 -07:00
width: 50%;
}
2016-08-26 10:24:04 -07:00
.portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 20%;
}
2016-08-26 10:24:04 -07:00
.smallBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 25%;
}
}
@media all and (min-width: 900px) {
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 20%;
}
}
@media all and (min-width: 1000px) {
2016-08-26 10:24:04 -07:00
.smallBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 20%;
}
2016-08-26 10:24:04 -07:00
.overflowPortraitCard-scalable {
2016-10-13 11:43:47 -07:00
width: 22%;
2016-07-29 08:54:43 -07:00
}
2016-08-26 10:24:04 -07:00
.overflowBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 40%;
}
2016-08-26 10:24:04 -07:00
.overflowSquareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 22%;
}
}
@media all and (min-width: 1200px) {
2016-08-26 10:24:04 -07:00
.backdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 25%;
}
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 16.666666666666666666666666666667%;
}
2016-08-26 10:24:04 -07:00
.bannerCard-scalable {
2016-07-29 08:54:43 -07:00
width: 33.333333333333333333333333333333%;
}
2016-08-26 10:24:04 -07:00
.portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 16.666666666666666666666666666667%;
}
2016-08-26 10:24:04 -07:00
.smallBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 16.666666666666666666666666666667%;
}
}
@media all and (min-width: 1400px) {
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 14.285714285714285714285714285714%;
}
2016-08-26 10:24:04 -07:00
.portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 14.285714285714285714285714285714%;
}
2016-08-26 10:24:04 -07:00
.smallBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 14.285714285714285714285714285714%;
}
}
@media all and (min-width: 1600px) {
2016-08-26 10:24:04 -07:00
.portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 12.5%;
}
2016-08-26 10:24:04 -07:00
.smallBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 12.5%;
}
2016-09-29 23:50:06 -07:00
.backdropCard-scalable {
width: 20%;
}
2016-07-29 08:54:43 -07:00
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 12.5%;
}
2016-10-10 11:18:28 -07:00
}
@media all and (min-width: 1800px) {
2016-07-29 08:54:43 -07:00
2016-08-26 10:24:04 -07:00
.smallBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 10%;
}
}
2016-10-10 11:18:28 -07:00
@media all and (min-width: 1920px) {
2016-07-29 08:54:43 -07:00
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 11.111111111111111111111111111111%;
}
2016-10-10 11:18:28 -07:00
.smallBackdropCard-scalable {
width: 10%;
}
}
@media all and (min-width: 2100px) {
2016-08-26 10:24:04 -07:00
.backdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 20%;
}
2016-08-26 10:24:04 -07:00
.portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 11.111111111111111111111111111111%;
}
}
@media all and (min-width: 2200px) {
2016-08-26 10:24:04 -07:00
.bannerCard-scalable {
2016-07-29 08:54:43 -07:00
width: 25%;
}
2016-08-26 10:24:04 -07:00
.portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 10%;
}
}
@media all and (min-width: 2500px) {
2016-08-26 10:24:04 -07:00
.backdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 16.666666666666666666666666666667%;
}
}
2016-08-26 10:24:04 -07:00
.layout-tv .backdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 25%;
}
2016-08-26 10:24:04 -07:00
.layout-tv .squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 16.66666666666666667%;
}
2016-08-26 10:24:04 -07:00
.layout-tv .portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 16.66666666666666667%;
}
2016-07-31 10:58:06 -07:00
2016-09-29 23:50:06 -07:00
@media all and (min-width: 1600px) {
.layout-tv .backdropCard-scalable {
width: 25%;
}
}