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

574 lines
9.5 KiB
CSS
Raw Normal View History

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-11 22:59:45 -07:00
/*transition: transform 200ms ease-out;*/
2016-07-29 21:21:03 -07:00
}
2016-08-11 22:59:45 -07:00
/*.card:focus > .cardBox-focustransform {
transition-delay: 50ms;
transform: scale(1.16, 1.16);
}*/
2016-08-01 22:55:52 -07:00
@media all and (min-width: 600px) {
2016-08-11 21:33:56 -07:00
.cardBox-mobile {
2016-08-01 22:55:52 -07:00
margin: 3px;
}
}
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 {
text-align: right;
float: right;
padding: 5px 0 2px;
margin: 0 !important;
}
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-08-12 08:54:37 -07:00
@media all and (min-width: 600px) {
.cardImageContainer {
2016-08-23 23:13:15 -07:00
/* Should be 0 with visualCardBox, but not really noticeable */
2016-08-12 08:54:37 -07:00
border-radius: 2px;
}
}
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-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-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-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-08-13 21:30:59 -07:00
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
2016-08-03 13:14:39 -07:00
-moz-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
-ms-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
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-08-01 22:55: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-07-29 12:51:58 -07:00
.cardTextCentered {
text-align: center;
}
2016-08-08 19:10:12 -07:00
.cardText-secondary {
opacity: .6;
}
2016-07-28 19:42:42 -07:00
.cardCenteredText {
white-space: normal;
}
.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;
background-color: rgba(0,0,0,.7) !important;
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-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-29 23:06:24 -07:00
.midBackdropCard-scalable {
2016-08-30 05:38:50 -07:00
width: 100%;
2016-08-29 23:06:24 -07:00
}
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-07-29 08:54:43 -07:00
width: 40%;
max-width: 200px;
}
2016-08-26 10:24:04 -07:00
.overflowBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 84%;
max-width: 400px;
}
2016-08-26 10:24:04 -07:00
.overflowSquareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 42%;
}
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
}
2016-08-29 23:06:24 -07:00
.midBackdropCard-scalable {
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%;
}
}
@media all and (min-width: 640px) {
2016-08-26 10:24:04 -07:00
.portraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 25%;
}
2016-08-26 10:24:04 -07:00
.overflowPortraitCard-scalable {
2016-07-29 08:54:43 -07:00
width: 36%;
}
2016-08-26 10:24:04 -07:00
.overflowBackdropCard-scalable {
2016-07-29 08:54:43 -07:00
width: 60%;
}
2016-08-26 10:24:04 -07:00
.overflowSquareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 30%;
}
2016-08-29 23:06:24 -07:00
.midBackdropCard-scalable {
width: 33.333333333333333333333333333333%;
}
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%;
}
2016-08-29 23:06:24 -07:00
.midBackdropCard-scalable {
width: 25%;
}
2016-07-29 08:54:43 -07:00
}
@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-07-29 08:54:43 -07:00
width: 23%;
}
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%;
}
2016-08-29 23:06:24 -07:00
.midBackdropCard-scalable {
width: 20%;
}
2016-07-29 08:54:43 -07:00
}
@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%;
}
}
@media all and (min-width: 1800px) {
2016-08-26 10:24:04 -07:00
.squareCard-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: 10%;
}
}
@media all and (min-width: 2100px) {
2016-08-26 10:24:04 -07:00
.squareCard-scalable {
2016-07-29 08:54:43 -07:00
width: 11.111111111111111111111111111111%;
}
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-08-26 10:24:04 -07:00
.layout-tv .personCard-scalable {
2016-07-31 10:58:06 -07:00
width: 14.285714285714285714285714285714%;
}