jellyfin-web/dashboard-ui/css/card.css

565 lines
8.9 KiB
CSS
Raw Normal View History

2014-07-26 10:30:15 -07:00
.card {
display: inline-block;
text-align: left;
-webkit-transition: all 500ms ease;
-moz-transition: all 500ms ease;
-o-transition: all 500ms ease;
-ms-transition: all 500ms ease;
transition: all 500ms ease;
position: relative;
}
2014-08-01 19:34:45 -07:00
.card, .card a {
text-decoration: none;
font-weight: 400 !important;
}
.cardOverlayTarget {
position: absolute;
right: 0;
left: 0;
bottom: 0;
background-color: rgba(0, 0, 0, .85);
2015-02-19 17:34:05 -07:00
z-index: 998;
2014-08-01 19:34:45 -07:00
display: none;
}
.cardOverlayInner {
padding: 11px 12px 10px;
}
.cardOverlayInner button:last-child {
margin-right: 0 !important;
}
.cardOverlayInner p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.smallBackdropPosterItem .cardOverlayInner > div {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
2014-07-26 10:30:15 -07:00
.cardBox {
2015-04-16 20:31:09 -07:00
margin: 1px;
2014-08-01 19:34:45 -07:00
}
2015-04-18 17:05:36 -07:00
/*@media all and (max-width: 600px) {
.cardBox {
margin: 0;
}
}*/
2014-09-14 08:10:51 -07:00
.grayscale {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
filter: grayscale(100%);
}
.bottomPaddedCard .cardBox {
2015-04-16 20:31:09 -07:00
margin-bottom: 5px;
}
.visualFooterCard .outerCardFooter {
background: #111;
padding-bottom: 4px;
}
2014-07-26 10:30:15 -07:00
.visualCardBox {
padding: 5px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
-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);
background: #fff;
2015-01-25 14:23:48 -07:00
margin: 1px;
2014-07-26 10:30:15 -07:00
}
2015-01-22 23:15:15 -07:00
/*.visualCardBox .cardFooter {
padding: 0 2px;
}*/
2015-01-11 13:31:09 -07:00
.ui-page-theme-b .visualCardBox {
2015-04-11 18:38:38 -07:00
background: rgba(45,45,45,.85);
border: 1px solid #1f1f1f;
2014-11-10 20:41:19 -07:00
border-radius: 3px;
2014-11-04 05:41:12 -07:00
}
2014-07-26 10:30:15 -07:00
.cardScalable {
position: relative;
}
2014-08-01 19:34:45 -07:00
.backdropCard .cardPadder {
2014-07-26 10:30:15 -07:00
padding-bottom: 56.25%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard .cardPadder {
padding-bottom: 56.25%;
}
2014-08-01 19:34:45 -07:00
.squareCard .cardPadder {
2014-07-26 10:30:15 -07:00
padding-bottom: 100%;
}
2014-08-01 19:34:45 -07:00
.letterBoxCard .cardPadder {
2014-07-26 10:30:15 -07:00
padding-bottom: 75%;
}
2014-08-01 19:34:45 -07:00
.portraitCard .cardPadder {
padding-bottom: 150%;
}
.bannerCard .cardPadder {
padding-bottom: 18.5%;
2014-07-26 10:30:15 -07:00
}
.cardContent {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
2015-01-31 19:41:35 -07:00
.cardContent:not(.noHoverEffect):hover .cardImage {
2014-11-10 20:41:19 -07:00
opacity: .5;
}
2014-07-26 10:30:15 -07:00
2015-01-25 12:13:04 -07:00
/*.preview-overlay-container {
2014-07-26 10:30:15 -07:00
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
-moz-opacity: 0;
opacity: 0;
filter: alpha(opacity=0);
-webkit-transition: all .25s ease;
-moz-transition: all .25s ease;
-o-transition: all .25s ease;
transition: all .25s ease;
background: rgba(0,0,0,0.4);
cursor: pointer;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}*/
2015-01-25 12:13:04 -07:00
.cardContent .cardFooter {
position: absolute;
bottom: 0;
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.7))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.7) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.7) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.7) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.7) 100%); /* W3C */
left: 0;
right: 0;
color: #fff;
}
2014-07-26 10:30:15 -07:00
.cardText {
text-overflow: ellipsis;
overflow: hidden;
text-wrap: none;
white-space: nowrap;
2014-08-01 19:34:45 -07:00
padding: 5px 4px 2px;
2014-07-26 10:30:15 -07:00
text-shadow: none;
font-weight: 400;
2015-04-18 17:05:36 -07:00
line-height: initial;
2014-07-26 10:30:15 -07:00
}
2014-08-01 19:34:45 -07:00
.cardOverlayInner {
2015-01-16 13:54:37 -07:00
color: #fff;
2014-08-01 19:34:45 -07:00
}
.cardTextCentered {
text-align: center;
}
.cardDefaultText {
position: absolute;
top: 30%;
left: 0;
right: 0;
text-align: center;
}
2014-07-26 10:30:15 -07:00
.cardContent .cardText {
padding-left: 5px;
padding: 0 5px 4px;
}
.outerCardFooter .cardText + .cardText {
color: #ddd;
}
2014-07-26 10:30:15 -07:00
@media all and (max-width: 600px) {
.packageReviewText {
display: none;
}
}
.cardImage {
background-size: contain;
background-repeat: no-repeat;
background-position: center bottom;
width: 100%;
height: 100%;
}
2014-07-27 15:01:29 -07:00
.coveredCardImage {
background-size: cover;
}
2015-01-26 23:50:40 -07:00
.centeredCardImage {
background-position: center center;
}
2014-08-01 19:34:45 -07:00
.bannerCard {
width: 100%;
}
.squareCard {
2014-07-26 10:30:15 -07:00
width: 50%;
}
2014-08-01 19:34:45 -07:00
.backdropCard {
2014-07-26 10:30:15 -07:00
width: 50%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 50%;
}
2014-08-01 19:34:45 -07:00
.portraitCard {
width: 33.3%;
}
.cardProgress {
line-height: 7px;
}
.cardProgress .itemProgressBar {
2015-01-01 22:36:27 -07:00
height: 7px;
2014-08-01 19:34:45 -07:00
width: 100%;
opacity: .8;
}
@media all and (max-width: 1200px) {
.portraitCard .cardOverlayInner {
padding-left: 7px;
padding-right: 7px;
}
}
2014-07-26 10:30:15 -07:00
@media all and (min-width: 500px) {
2014-08-01 19:34:45 -07:00
.squareCard {
2014-07-26 10:30:15 -07:00
width: 33.3%;
}
}
@media all and (min-width: 540px) {
2014-08-01 19:34:45 -07:00
.portraitCard {
width: 25%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 33.3%;
}
2014-08-01 19:34:45 -07:00
}
@media all and (min-width: 640px) {
.backdropCard {
2014-07-26 10:30:15 -07:00
width: 33.3%;
}
2014-08-01 19:34:45 -07:00
.bannerCard {
width: 50%;
}
2014-07-26 10:30:15 -07:00
}
@media all and (min-width: 800px) {
2014-08-01 19:34:45 -07:00
.squareCard {
2014-07-26 10:30:15 -07:00
width: 25%;
}
2014-08-01 19:34:45 -07:00
.portraitCard {
width: 20%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 25%;
}
2014-07-26 10:30:15 -07:00
}
@media all and (min-width: 1000px) {
2014-08-01 19:34:45 -07:00
.squareCard {
2014-07-26 10:30:15 -07:00
width: 20%;
}
2014-08-01 19:34:45 -07:00
.backdropCard {
2014-07-26 10:30:15 -07:00
width: 25%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 20%;
}
2014-07-26 10:30:15 -07:00
}
@media all and (min-width: 1200px) {
2014-08-01 19:34:45 -07:00
.squareCard {
width: 16.666666666666666666666666666667%;
}
.bannerCard {
width: 33.3%;
}
.portraitCard {
2014-07-26 10:30:15 -07:00
width: 16.666666666666666666666666666667%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 16.666666666666666666666666666667%;
}
2014-07-26 10:30:15 -07:00
}
@media all and (min-width: 1400px) {
2014-08-01 19:34:45 -07:00
.squareCard {
2014-07-26 10:30:15 -07:00
width: 14.285714285714285714285714285714%;
}
2014-08-01 19:34:45 -07:00
.portraitCard {
width: 14.285714285714285714285714285714%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 14.285714285714285714285714285714%;
}
2014-07-26 10:30:15 -07:00
}
@media all and (min-width: 1600px) {
2014-08-01 19:34:45 -07:00
.portraitCard {
2015-01-31 13:28:18 -07:00
width: 12.5%;
2014-08-01 19:34:45 -07:00
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 12.5%;
}
2014-08-01 19:34:45 -07:00
}
@media all and (min-width: 1800px) {
.squareCard {
2015-04-11 18:38:38 -07:00
width: 12.5%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 10%;
}
}
2015-04-11 18:38:38 -07:00
@media all and (min-width: 1920px) {
.squareCard {
width: 11.111111111111111111111111111111%;
}
2015-04-14 20:41:29 -07:00
.backdropCard {
width: 20%;
}
.portraitCard {
width: 11.111111111111111111111111111111%;
}
2015-04-11 18:38:38 -07:00
}
2015-01-22 23:15:15 -07:00
@media all and (min-width: 2200px) {
2015-01-25 12:13:04 -07:00
.bannerCard {
width: 25%;
}
2015-04-14 20:41:29 -07:00
.portraitCard {
width: 10%;
}
}
@media all and (min-width: 2500px) {
.backdropCard {
width: 16.666666666666666666666666666667%;
}
2014-07-26 10:30:15 -07:00
}
2014-08-01 19:34:45 -07:00
/** detailPage169 */
.detailPage169Card .cardPadder {
padding-bottom: 56.25%;
}
2014-07-26 10:30:15 -07:00
.detailPage169Card {
width: 50%;
}
@media all and (min-width: 540px) {
.detailPage169Card {
width: 33.3%;
}
2014-08-01 19:34:45 -07:00
}
/** detailPagePortrait */
.detailPagePortraitCard .cardPadder {
padding-bottom: 150%;
}
.detailPagePortraitCard {
width: 33.3%;
}
@media all and (min-width: 540px) {
.detailPagePortraitCard {
width: 25%;
}
}
@media all and (min-width: 800px) {
.detailPagePortraitCard {
width: 20%;
}
}
/** detailPageSquare */
.detailPageSquareCard .cardPadder {
padding-bottom: 100%;
}
.detailPageSquareCard {
2014-09-14 08:10:51 -07:00
width: 33.33%;
2014-08-01 19:34:45 -07:00
}
@media all and (min-width: 540px) {
.detailPageSquareCard {
2014-08-15 09:35:41 -07:00
width: 25%;
2014-08-01 19:34:45 -07:00
}
}
2014-08-15 09:35:41 -07:00
@media all and (min-width: 600px) {
2014-08-01 19:34:45 -07:00
.detailPageSquareCard {
2014-08-15 09:35:41 -07:00
width: 20%;
2014-08-01 19:34:45 -07:00
}
}
/** homePageSmallBackdropCard */
.homePageSmallBackdropCard .cardPadder {
padding-bottom: 56.25%;
}
.homePageSmallBackdropCard {
width: 50%;
}
@media all and (min-width: 540px) {
.homePageSmallBackdropCard {
width: 33.3%;
}
}
@media all and (min-width: 600px) {
.homePageSmallBackdropCard {
width: 25%;
}
}
2015-04-15 08:41:42 -07:00
@media all and (min-width: 1400px) {
2014-08-01 19:34:45 -07:00
.homePageSmallBackdropCard {
2015-04-15 08:41:42 -07:00
width: 20%;
2014-08-01 19:34:45 -07:00
}
}
2014-12-14 22:16:23 -07:00
2015-04-14 20:41:29 -07:00
@media all and (min-width: 1920px) {
2014-12-14 22:16:23 -07:00
.homePageSmallBackdropCard {
2015-04-14 20:41:29 -07:00
width: 14.285714285714285714285714285714%;
2014-12-14 22:16:23 -07:00
}
}
2015-03-01 22:16:29 -07:00
/** horizontalBackdropCard */
.horizontalBackdropCard .cardPadder {
padding-bottom: 56.25%;
}
.horizontalBackdropCard {
width: 75%;
}
@media all and (min-width: 500px) {
.horizontalBackdropCard {
width: 50%;
}
}
@media all and (min-width: 800px) {
.horizontalBackdropCard {
width: 31%;
}
}
.horizontalBackdropCard .cardImage {
border-radius: 4px;
}
.horizontalBackdropCard .cardBox {
margin: 2px !important;
}