Skip to content
Snippets Groups Projects
card.css 4.82 KiB
Newer Older
@import "../../css/units.css";
@import "../../css/colors.css";
@import "../../css/z-index.css";

.card-container {
    position:absolute;
    z-index: $z-index-card;
    margin: 0.5rem 2rem;
}

.left-card, .right-card {
    height: 90%;
    position: absolute;
    top: 5%;
    background: $ui-white;
    border: 1px solid $ui-tertiary;
    width: .75rem;
    z-index: 10;
    opacity: 0.9;
    overflow: hidden;
}

.left-card {
    left: -.75rem;
    border-right: 0;
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.right-card {
    right: -.75rem;
    border-left: 0;
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.left-card::after, .right-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2.5rem;
    background: $extensions-primary;
}

.left-button, .right-button {
    position: absolute;
    top: 50%;
    margin-top: -15px;
    z-index: 20;
    user-select: none;
    cursor: pointer;
    background: $extensions-primary;
    box-shadow: 0 0 0 4px $extensions-transparent;
    height: 44px;
    width: 44px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease;
}

.left-button:hover, .right-button:hover {
    box-shadow: 0 0 0 6px $extensions-transparent;
    transform: scale(1.125);
}

.left-button img, .right-button img{
    width: 1.75rem;
}

.left-button {
    left: -27px;
}

.right-button {
    right: -27px;
}

.card {
    border: 1px solid $ui-tertiary;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    cursor: move;
    z-index: 20;
    overflow: hidden;
    box-shadow: 0px 5px 25px 5px $ui-black-transparent;
    align-items: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.header-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: $extensions-primary;
    border-bottom: 1px solid $extensions-tertiary;
    font-weight: bold;
}

.remove-button, .all-button {
    cursor: pointer;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
}

.remove-button:hover, .all-button:hover {
    background-color: $ui-black-transparent;
}

.step-title {
    font-size: 0.9rem;
    margin: 0.9rem;
    text-align: center;
    font-weight: bold;
    color: $text-primary;
}

.step-body {
    background: $ui-white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.step-video {
    height: 337px;
}

.step-image {
    max-width: 450px;
    background: #F9F9F9;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 0.5rem 0.5rem;
}

.decks {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.deck {
    display: flex;
    flex-direction: column;
    margin: 0 8px 8px;
    cursor: pointer;
    border: 1px solid $ui-black-transparent;
    border-radius: 0.25rem;
    overflow: hidden;
}

.deck-image {
    height: 100px;
    object-fit: cover;
}

.deck-name {
    color: $motion-primary;
    font-weight: bold;
    font-size: 0.85rem;
    margin: .625rem 0px;
    text-align: center;
    font-weight: bold;
    text-align: center;
    height: 1rem;
chrisgarrity's avatar
chrisgarrity committed
[dir="ltr"] .help-icon {
chrisgarrity's avatar
chrisgarrity committed
[dir="rtl"] .help-icon {
chrisgarrity's avatar
chrisgarrity committed
}

.close-icon {
chrisgarrity's avatar
chrisgarrity committed
[dir="ltr"] .close-icon {
    margin-left: 0.25rem;
}

[dir="rtl"] .close-icon {
    margin-right: 0.25rem;
}

.see-all {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
}

.see-all-button {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: $motion-primary;
    color: white;
    font-weight: bold;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    color: $ui-white;
    font-size: .75rem;
    line-height: 1rem;
chrisgarrity's avatar
chrisgarrity committed
[dir="ltr"] .see-all-button img {
chrisgarrity's avatar
chrisgarrity committed
[dir="rtl"] .see-all-button img {
    margin-right: 0.5rem;
}

.video-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.steps-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.active-step-pip, .inactiveStepPip {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.25rem;
    border-radius: 100%;
    background: $ui-white-transparent;
    background: $ui-white;
    box-shadow: 0px 0px 0px 2px $ui-black-transparent;