1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/card.css
2018-10-23 01:13:23 +03:00

885 lines
No EOL
15 KiB
CSS

.card,
.card:focus {
font-weight: inherit !important
}
.card,
.cardBox,
.cardContent,
.textActionButton {
-webkit-tap-highlight-color: transparent;
outline: 0 !important
}
button::-moz-focus-inner {
padding: 0;
border: 0
}
button {
-webkit-border-fit: border !important
}
.card {
border: 0;
font-size: inherit !important;
font-family: inherit !important;
text-transform: none;
background: 0 0 !important;
margin: 0;
padding: 0;
display: block;
color: inherit !important;
cursor: pointer;
contain: layout style;
-webkit-flex-shrink: 0;
flex-shrink: 0
}
.cardContent-button,
.textActionButton {
cursor: pointer;
vertical-align: middle;
font-family: inherit
}
.card-nofocustransform {
contain: layout style paint
}
.itemsContainer {
display: -webkit-box;
display: -webkit-flex;
display: flex
}
.vertical-list,
.vertical-wrap {
display: -webkit-box;
display: -webkit-flex;
-webkit-box-direction: normal
}
.vertical-list {
display: flex;
-webkit-box-orient: vertical;
-webkit-flex-direction: column;
flex-direction: column;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap
}
.vertical-wrap {
display: flex;
-webkit-box-orient: horizontal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
flex-wrap: wrap
}
.cardImageContainer,
.mediaSourceIndicator {
display: -webkit-box;
-webkit-box-align: center
}
.vertical-wrap.centered {
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center
}
.cardScalable {
position: relative;
contain: layout style
}
.cardPadder-backdrop,
.cardPadder-mixedBackdrop,
.cardPadder-overflowBackdrop,
.cardPadder-overflowSmallBackdrop,
.cardPadder-smallBackdrop {
padding-bottom: 56.25%;
contain: strict
}
.cardPadder-mixedSquare,
.cardPadder-overflowSquare,
.cardPadder-square,
.overflowSquareCard-textCardPadder {
padding-bottom: 100%;
contain: strict
}
.cardPadder-mixedPortrait,
.cardPadder-overflowPortrait,
.cardPadder-portrait,
.overflowPortraitCard-textCardPadder {
padding-bottom: 150%;
contain: strict
}
.cardPadder-banner {
padding-bottom: 18.5%;
contain: strict
}
.cardBox {
padding: 0 !important;
margin: .42em;
-webkit-transition: none;
-o-transition: none;
transition: none;
border: 0 solid transparent;
contain: layout style
}
@media (min-width:50em) {
.cardBox {
margin: .9em
}
}
.cardBox-withfocuscontent-large {
margin: .4em
}
.card-focuscontent-large {
border: .5em solid transparent
}
.cardBox-focustransform {
will-change: transform;
-webkit-transition: -webkit-transform .2s ease-out;
-o-transition: transform .2s ease-out;
transition: transform .2s ease-out
}
.card:focus>.cardBox-focustransform {
-webkit-transform: scale(1.18, 1.18);
transform: scale(1.18, 1.18)
}
.cardBox-bottompadded {
margin-bottom: 1.8em !important
}
@media (max-width:50em) {
.cardBox-bottompadded {
margin-bottom: 1.2em !important
}
}
.card:focus {
position: relative !important;
z-index: 10 !important
}
.btnCardOptions {
position: absolute;
bottom: .25em;
right: 0;
margin: 0 !important;
z-index: 1
}
.mediaSourceIndicator {
display: -webkit-flex;
display: flex;
position: absolute;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
top: .3em;
left: .3em;
text-align: center;
vertical-align: middle;
width: 1.6em;
height: 1.6em;
-webkit-border-radius: 50%;
border-radius: 50%;
color: #fff;
background: #38c
}
.cardText,
.innerCardFooter {
overflow: hidden;
text-align: left
}
.cardImageContainer {
-webkit-background-size: contain;
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
position: relative;
-webkit-background-clip: content-box !important;
background-clip: content-box !important;
color: inherit;
height: 100%;
contain: strict
}
.cardContent,
.cardImage {
position: absolute;
right: 0;
top: 0;
left: 0;
bottom: 0
}
.chapterCardImageContainer {
background-color: #000;
-webkit-border-radius: 0;
border-radius: 0
}
.textCardImageContainer {
background-color: #333
}
.cardContent {
overflow: hidden;
display: block;
margin: 0 !important;
height: 100%;
contain: strict
}
.cardContent-button {
border: 0 !important;
padding: 0 !important;
color: inherit;
width: 100%;
font-size: inherit
}
.cardContent-button:not(.defaultCardBackground) {
background-color: transparent
}
.visualCardBox .cardContent {
-webkit-border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0
}
.cardContent-shadow {
-webkit-box-shadow: 0 .0725em .29em 0 rgba(0, 0, 0, .37);
box-shadow: 0 .0725em .29em 0 rgba(0, 0, 0, .37)
}
.cardImageContainer {
display: -webkit-box;
display: -webkit-flex;
display: flex
}
.cardImage {
-webkit-background-size: contain;
background-size: contain;
background-repeat: no-repeat;
background-position: center bottom
}
.cardImage-img {
max-height: 100%;
max-width: 100%;
min-height: 70%;
min-width: 70%;
margin: auto
}
.coveredImage-img {
width: 100%;
height: 100%
}
.coveredImage-noscale-img {
max-height: none;
max-width: none
}
.coveredImage {
-webkit-background-size: 100% 100%;
background-size: 100% 100%;
background-position: center center
}
.coveredImage-noScale {
-webkit-background-size: cover;
background-size: cover
}
.cardFooter {
padding: .3em .3em .5em;
position: relative
}
.visualCardBox {
-webkit-box-shadow: 0 .0725em .29em 0 rgba(0, 0, 0, .37);
box-shadow: 0 .0725em .29em 0 rgba(0, 0, 0, .37);
-webkit-border-radius: .145em;
border-radius: .145em
}
.innerCardFooter {
background: rgba(0, 0, 0, .7);
position: absolute;
bottom: 0;
left: 0;
z-index: 1;
max-width: 100%;
color: #fff
}
.innerCardFooterClear {
background-color: transparent
}
.fullInnerCardFooter {
right: 0
}
.cardText {
padding: .06em .5em;
white-space: nowrap;
-o-text-overflow: ellipsis;
text-overflow: ellipsis
}
.cardDefaultText,
.cardTextCentered {
text-align: center
}
.cardText-secondary {
font-size: 86%
}
.cardText-first {
padding-top: .24em
}
.innerCardFooter>.cardText {
padding: .3em .5em
}
.cardFooter-withlogo {
padding-left: 4em;
position: relative
}
.cardFooterLogo {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 4.5em;
-webkit-background-size: 70% auto;
background-size: 70% auto;
background-repeat: no-repeat;
background-position: center center
}
.cardText-rightmargin {
margin-right: 2em
}
.cardDefaultText {
white-space: normal
}
.textActionButton {
background: 0 0;
border: 0 !important;
padding: 0 !important;
color: inherit;
font-size: inherit
}
.textActionButton:hover {
text-decoration: underline
}
.cardImageIcon {
font-size: 5em;
color: inherit
}
.cardImageIcon-small {
font-size: 3em;
margin-bottom: .1em
}
.cardIndicators {
right: .225em;
top: .225em;
position: absolute;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
contain: layout style
}
.cardProgramAttributeIndicators {
top: 0;
left: 0;
position: absolute;
display: -webkit-box;
display: -webkit-flex;
display: flex;
text-transform: uppercase;
font-size: 92%
}
.programAttributeIndicator {
padding: .18em .5em;
color: #fff;
font-weight: 500
}
.cardOverlayButton {
color: rgba(255, 255, 255, .76) !important;
margin: 0;
z-index: 1;
padding: .75em;
font-size: 88%
}
.cardOverlayButton-br {
position: absolute;
bottom: 0;
right: 0
}
.cardOverlayButtonIcon {
background-color: rgba(0, 0, 0, .7) !important;
-webkit-border-radius: 100em;
border-radius: 100em;
width: 1.5em !important;
height: 1.5em !important;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
display: -webkit-box;
display: -webkit-flex;
display: flex;
font-size: 1.66956521739130434em !important
}
.cardOverlayButton-centered {
bottom: initial;
right: initial;
position: static;
position: absolute;
display: -webkit-box;
display: -webkit-flex;
display: flex;
font-size: 112%;
margin: -1.3em 0 0 -1.3em;
width: 2.6em;
height: 2.6em;
top: 50%;
left: 50%;
background-color: rgba(0, 0, 0, .5) !important;
border: .06em solid rgba(255, 255, 255, .6);
padding: .38em !important;
color: rgba(255, 255, 255, .76);
-webkit-transition: -webkit-transform .2s ease-out;
-o-transition: transform .2s ease-out;
transition: transform .2s ease-out
}
.cardOverlayButton-centered:hover {
-webkit-transform: scale(1.2, 1.2);
transform: scale(1.2, 1.2)
}
.backdropCard,
.bannerCard {
width: 100%
}
.smallBackdropCard,
.squareCard {
width: 50%
}
.portraitCard {
width: 33.333333333333333333333333333333%
}
.mixedPortraitCard {
width: 12em
}
.mixedSquareCard {
width: 18em
}
.mixedBackdropCard {
width: 32em
}
@media (min-width:25em) {
.backdropCard {
width: 50%
}
}
@media (min-width:31.25em) {
.portraitCard,
.smallBackdropCard,
.squareCard {
width: 33.333333333333333333333333333333%
}
}
@media (min-width:43.75em) {
.portraitCard,
.squareCard {
width: 25%
}
}
@media (min-width:48.125em) {
.backdropCard {
width: 33.333333333333333333333333333333%
}
}
@media (min-width:50em) {
.bannerCard {
width: 50%
}
.portraitCard,
.squareCard {
width: 20%
}
.smallBackdropCard {
width: 25%
}
}
@media (min-width:62.5em) {
.smallBackdropCard {
width: 20%
}
}
@media (min-width:75em) {
.backdropCard {
width: 25%
}
.portraitCard,
.squareCard {
width: 16.666666666666666666666666666667%
}
.bannerCard {
width: 33.333333333333333333333333333333%
}
.smallBackdropCard {
width: 16.666666666666666666666666666667%
}
}
@media (min-width:87.5em) {
.portraitCard,
.smallBackdropCard,
.squareCard {
width: 14.285714285714285714285714285714%
}
}
@media (min-width:100em) {
.smallBackdropCard {
width: 12.5%
}
.backdropCard {
width: 20%
}
.portraitCard,
.squareCard {
width: 12.5%
}
}
@media (min-width:120em) {
.portraitCard,
.squareCard {
width: 11.111111111111111111111111111111%
}
}
@media (min-width:131.25em) {
.bannerCard {
width: 25%
}
.portraitCard,
.squareCard {
width: 10%
}
}
@media (min-width:156.25em) {
.backdropCard {
width: 16.666666666666666666666666666667%
}
}
.itemsContainer-tv>.backdropCard {
width: 25%
}
.itemsContainer-tv>.portraitCard,
.itemsContainer-tv>.squareCard {
width: 16.666666666666666666666666666667%
}
.overflowBackdropCard,
.overflowSmallBackdropCard {
width: 72vw
}
.overflowPortraitCard,
.overflowSquareCard {
width: 40vw
}
@media (min-width:25em) {
.overflowPortraitCard {
width: 31.2vw
}
}
@media (min-width:35em) {
.overflowSquareCard {
width: 31.2vw
}
.overflowBackdropCard {
width: 45.5vw
}
.overflowSmallBackdropCard {
width: 30vw
}
}
@media (min-width:43.75em) {
.overflowPortraitCard,
.overflowSquareCard {
width: 23.3vw
}
}
@media (min-width:48.125em) {
.overflowBackdropCard,
.overflowSmallBackdropCard {
width: 30vw
}
}
@media (orientation:landscape) {
.overflowBackdropCard,
.overflowSmallBackdropCard {
width: 30vw
}
.overflowPortraitCard,
.overflowSquareCard {
width: 23.3vw
}
}
@media (orientation:landscape) and (min-width:48.125em) {
.overflowBackdropCard,
.overflowSmallBackdropCard {
width: 23.3vw
}
}
@media (orientation:landscape) and (min-width:50em) {
.overflowSmallBackdropCard {
width: 15.5vw
}
}
@media (min-width:50em) {
.overflowPortraitCard,
.overflowSquareCard {
width: 18.4vw
}
}
@media (min-width:75em) {
.overflowBackdropCard,
.overflowSmallBackdropCard {
width: 23.3vw
}
.overflowPortraitCard,
.overflowSquareCard {
width: 15.5vw
}
}
@media (min-width:87.5em) {
.overflowPortraitCard,
.overflowSquareCard {
width: 13.3vw
}
}
@media (min-width:100em) {
.overflowBackdropCard,
.overflowSmallBackdropCard {
width: 18.7vw
}
.overflowPortraitCard,
.overflowSquareCard {
width: 11.6vw
}
}
@media (min-width:120em) {
.overflowPortraitCard,
.overflowSquareCard {
width: 10.3vw
}
}
@media (min-width:131.25em) {
.overflowPortraitCard,
.overflowSquareCard {
width: 9.3vw
}
}
@media (min-width:156.25em) {
.overflowBackdropCard,
.overflowSmallBackdropCard {
width: 15.6vw
}
}
.itemsContainer-tv>.overflowBackdropCard {
width: 23.5vw
}
.overflowBackdropCard-textCard {
width: 15.5vw !important
}
.overflowBackdropCard-textCardPadder {
padding-bottom: 87.75%
}
.itemsContainer-tv>.overflowPortraitCard,
.itemsContainer-tv>.overflowSquareCard {
width: 15.6vw
}
.itemsContainer-tv>.overflowSmallBackdropCard {
width: 18.8vw
}
.cardOverlayContainer {
background: -webkit-radial-gradient(50% 50%, farthest-corner, rgba(30, 30, 30, .5) 50%, #2c2c2c 100%);
background: -o-radial-gradient(50% 50%, farthest-corner, rgba(30, 30, 30, .5) 50%, #2c2c2c 100%);
background: radial-gradient(farthest-corner at 50% 50%, rgba(30, 30, 30, .5) 50%, #2c2c2c 100%);
opacity: 0;
-webkit-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
.card-hoverable :hover .cardOverlayContainer {
opacity: 1
}
.cardOverlayButton-hover {
opacity: 0;
-webkit-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
background: 0 0;
color: #fff !important;
padding: .5em
}
.cardOverlayButtonIcon-hover {
background: 0 0 !important
}
.card-hoverable:hover .cardOverlayButton-hover {
opacity: 1
}
.cardOverlayFab-primary {
font-size: 130%;
padding: 0;
width: 3em;
height: 3em;
margin-top: -1.5em;
margin-left: -1.5em;
position: absolute;
top: 50%;
left: 50%
}
.cardOverlayFab-primary i {
border: .07em solid rgba(255, 255, 255, .9);
color: #fff
}