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

527 lines
8.3 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);
z-index: 999;
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-01-22 23:15:15 -07:00
margin: 2px;
2014-08-01 19:34:45 -07:00
}
2014-09-14 08:10:51 -07:00
.grayscale {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
filter: grayscale(100%);
}
2014-08-01 19:34:45 -07:00
@media all and (max-width: 600px) {
.cardBox {
margin: 1px;
}
2014-07-26 10:30:15 -07:00
}
.bottomPaddedCard .cardBox {
margin-bottom: 10px;
}
.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 {
background: rgb(51, 51, 51);
2014-11-10 20:41:19 -07:00
border: 1px solid rgb(31, 31, 31);
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;
}
2014-11-10 20:41:19 -07:00
.cardContent:hover .cardImage {
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;
}
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;
}
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
.backdropCard {
2014-07-26 10:30:15 -07:00
width: 20%;
}
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
.squareCard {
2014-07-26 10:30:15 -07:00
width: 12.5%;
}
2014-08-01 19:34:45 -07:00
.portraitCard {
width: 10%;
}
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 {
width: 10%;
}
2014-08-04 20:41:56 -07:00
.smallBackdropCard {
width: 10%;
}
}
2015-01-22 23:15:15 -07:00
@media all and (min-width: 2200px) {
.backdropCard {
width: 16.666666666666666666666666666667%;
2014-08-01 19:34:45 -07:00
}
2015-01-25 12:13:04 -07:00
.bannerCard {
width: 25%;
}
2014-07-26 10:30:15 -07:00
}
2014-08-01 19:34:45 -07:00
2014-11-11 21:51:40 -07:00
@media all and (min-width: 2300px) {
.squareCard {
width: 9.0909090909090909090909090909091%;
}
}
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%;
}
}
@media all and (min-width: 700px) {
.homePageSmallBackdropCard {
width: 20%;
}
}
@media all and (min-width: 1000px) {
.homePageSmallBackdropCard {
width: 16.666666666666666666666666666667%;
}
}
2014-12-14 22:16:23 -07:00
@media all and (min-width: 1600px) {
.homePageSmallBackdropCard {
width: 12.5%;
}
}