UNPKG

winbox-ui-next

Version:

We Design Vue 2.0: A Vue.js 3 UI Library

438 lines (437 loc) 9.94 kB
/******** borderSize *******/ /******** borderStyle *******/ /******** radius *******/ /******** shadow distance *******/ /******** size *******/ /******** spacing *******/ /******** shadow *******/ /******** opacity *******/ /******** fontSize *******/ /******** fontWeight ********/ /******** radius *******/ /******** Primary *******/ /******** success *******/ /******** warning *******/ /******** danger *******/ /******** link *******/ /******** radius *******/ /********* icon hover *********/ @keyframes w-carousel-slide-x-in { from { transform: translateX(100%); } to { transform: translateX(0); } } @keyframes w-carousel-slide-x-out { from { transform: translateX(0); } to { transform: translateX(-100%); } } @keyframes w-carousel-slide-x-in-reverse { from { transform: translateX(-100%); } to { transform: translateX(0); } } @keyframes w-carousel-slide-x-out-reverse { from { transform: translateX(0); } to { transform: translateX(100%); } } @keyframes w-carousel-slide-y-in { from { transform: translateY(100%); } to { transform: translateY(0); } } @keyframes w-carousel-slide-y-out { from { transform: translateY(0); } to { transform: translateY(-100%); } } @keyframes w-carousel-slide-y-in-reverse { from { transform: translateY(-100%); } to { transform: translateY(0); } } @keyframes w-carousel-slide-y-out-reverse { from { transform: translateY(0); } to { transform: translateY(100%); } } @keyframes w-carousel-card-bottom-to-middle { from { transform: translateX(0%) translateZ(-400px); opacity: 0; } to { transform: translateX(0%) translateZ(-200px); opacity: 0.4; } } @keyframes w-carousel-card-middle-to-bottom { from { transform: translateX(-100%) translateZ(-200px); opacity: 0.4; } to { transform: translateX(-100%) translateZ(-400px); opacity: 0; } } @keyframes w-carousel-card-top-to-middle { from { transform: translateX(-50%) translateZ(0); opacity: 1; } to { transform: translateX(-100%) translateZ(-200px); opacity: 0.4; } } @keyframes w-carousel-card-middle-to-top { from { transform: translateX(0) translateZ(-200px); opacity: 0.4; } to { transform: translateX(-50%) translateZ(0); opacity: 1; } } @keyframes w-carousel-card-bottom-to-middle-reverse { from { transform: translateX(-100%) translateZ(-400px); opacity: 0; } to { transform: translateX(-100%) translateZ(-200px); opacity: 0.4; } } @keyframes w-carousel-card-middle-to-bottom-reverse { from { transform: translateX(0%) translateZ(-200px); opacity: 0.4; } to { transform: translateX(0%) translateZ(-400px); opacity: 0; } } @keyframes w-carousel-card-top-to-middle-reverse { from { transform: translateX(-50%) translateZ(0); opacity: 1; } to { transform: translateX(0%) translateZ(-200px); opacity: 0.4; } } @keyframes w-carousel-card-middle-to-top-reverse { from { transform: translateX(-100%) translateZ(-200px); opacity: 0.4; } to { transform: translateX(-50%) translateZ(0); opacity: 1; } } .w-carousel { position: relative; } .w-carousel-indicator-position-outer { margin-bottom: 30px; } .w-carousel-slide, .w-carousel-card, .w-carousel-fade { position: relative; width: 100%; height: 100%; overflow: hidden; } .w-carousel-slide > *, .w-carousel-card > *, .w-carousel-fade > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; } .w-carousel-item-current { z-index: 1; } .w-carousel-slide > *:not(.w-carousel-item-current) { display: none; } .w-carousel-slide.w-carousel-horizontal .w-carousel-item-slide-out { display: block; animation: w-carousel-slide-x-out; } .w-carousel-slide.w-carousel-horizontal .w-carousel-item-slide-in { display: block; animation: w-carousel-slide-x-in; } .w-carousel-slide.w-carousel-horizontal.w-carousel-negative .w-carousel-item-slide-out { animation: w-carousel-slide-x-out-reverse; } .w-carousel-slide.w-carousel-horizontal.w-carousel-negative .w-carousel-item-slide-in { animation: w-carousel-slide-x-in-reverse; } .w-carousel-slide.w-carousel-vertical .w-carousel-item-slide-out { display: block; animation: w-carousel-slide-y-out; } .w-carousel-slide.w-carousel-vertical .w-carousel-item-slide-in { display: block; animation: w-carousel-slide-y-in; } .w-carousel-slide.w-carousel-vertical.w-carousel-negative .w-carousel-item-slide-out { animation: w-carousel-slide-y-out-reverse; } .w-carousel-slide.w-carousel-vertical.w-carousel-negative .w-carousel-item-slide-in { animation: w-carousel-slide-y-in-reverse; } .w-carousel-card { perspective: 800px; } .w-carousel-card > * { left: 50%; transform: translateX(-50%) translateZ(-400px); opacity: 0; animation: w-carousel-card-middle-to-bottom; } .w-carousel-card .w-carousel-item-prev { transform: translateX(-100%) translateZ(-200px); opacity: 0.4; animation: w-carousel-card-top-to-middle; } .w-carousel-card .w-carousel-item-next { transform: translateX(0%) translateZ(-200px); opacity: 0.4; animation: w-carousel-card-bottom-to-middle; } .w-carousel-card .w-carousel-item-current { transform: translateX(-50%) translateZ(0); opacity: 1; animation: w-carousel-card-middle-to-top; } .w-carousel-card.w-carousel-negative > * { animation: w-carousel-card-middle-to-bottom-reverse; } .w-carousel-card.w-carousel-negative .w-carousel-item-prev { animation: w-carousel-card-bottom-to-middle-reverse; } .w-carousel-card.w-carousel-negative .w-carousel-item-next { animation: w-carousel-card-top-to-middle-reverse; } .w-carousel-card.w-carousel-negative .w-carousel-item-current { animation: w-carousel-card-middle-to-top-reverse; } .w-carousel-fade > * { left: 50%; transform: translateX(-50%); opacity: 0; } .w-carousel-fade .w-carousel-item-current { opacity: 1; } .w-carousel-indicator { position: absolute; display: flex; margin: 0; padding: 0; } .w-carousel-indicator-wrapper { position: absolute; z-index: 2; } .w-carousel-indicator-wrapper-top { top: 0; right: 0; left: 0; height: 48px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 87%); } .w-carousel-indicator-wrapper-bottom { right: 0; bottom: 0; left: 0; height: 48px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 13%, rgba(0, 0, 0, 0.15) 100%); } .w-carousel-indicator-wrapper-left { top: 0; left: 0; width: 48px; height: 100%; background: linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 87%); } .w-carousel-indicator-wrapper-right { top: 0; right: 0; width: 48px; height: 100%; background: linear-gradient(90deg, rgba(0, 0, 0, 0) 13%, rgba(0, 0, 0, 0.15) 100%); } .w-carousel-indicator-wrapper-outer { right: 0; left: 0; background: none; } .w-carousel-indicator-bottom { bottom: 12px; left: 50%; transform: translateX(-50%); } .w-carousel-indicator-top { top: 12px; left: 50%; transform: translateX(-50%); } .w-carousel-indicator-left { top: 50%; left: 12px; transform: translate(-50%, -50%) rotate(90deg); } .w-carousel-indicator-right { top: 50%; right: 12px; transform: translate(50%, -50%) rotate(90deg); } .w-carousel-indicator-outer { left: 50%; padding: 4px; background-color: transparent; border-radius: 20px; transform: translateX(-50%); } .w-carousel-indicator-outer.w-carousel-indicator-dot { bottom: -22px; } .w-carousel-indicator-outer.w-carousel-indicator-line { bottom: -20px; } .w-carousel-indicator-outer.w-carousel-indicator-slider { bottom: -16px; padding: 0; background-color: rgba(var(--gray-4), 0.5); } .w-carousel-indicator-outer .w-carousel-indicator-item { background-color: rgba(var(--gray-4), 0.5); } .w-carousel-indicator-outer .w-carousel-indicator-item:hover, .w-carousel-indicator-outer .w-carousel-indicator-item-active { background-color: var(--color-fill-4); } .w-carousel-indicator-item { display: inline-block; background-color: rgba(255, 255, 255, 0.3); border-radius: var(--border-radius-medium); cursor: pointer; } .w-carousel-indicator-item:hover, .w-carousel-indicator-item-active { background-color: var(--color-white); } .w-carousel-indicator-dot .w-carousel-indicator-item { width: 6px; height: 6px; border-radius: 50%; } .w-carousel-indicator-dot .w-carousel-indicator-item:not(:last-child) { margin-right: 8px; } .w-carousel-indicator-line .w-carousel-indicator-item { width: 12px; height: 4px; } .w-carousel-indicator-line .w-carousel-indicator-item:not(:last-child) { margin-right: 8px; } .w-carousel-indicator-slider { width: 48px; height: 4px; background-color: rgba(255, 255, 255, 0.3); border-radius: var(--border-radius-medium); cursor: pointer; } .w-carousel-indicator-slider .w-carousel-indicator-item { position: absolute; top: 0; height: 100%; transition: left 0.3s; } .w-carousel-arrow > div { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--color-white); background-color: rgba(255, 255, 255, 0.3); border-radius: 50%; cursor: pointer; } .w-carousel-arrow > div > svg { color: var(--color-white); font-size: 14px; } .w-carousel-arrow > div:hover { background-color: rgba(255, 255, 255, 0.5); } .w-carousel-arrow-left { top: 50%; left: 12px; transform: translateY(-50%); } .w-carousel-arrow-right { top: 50%; right: 12px; transform: translateY(-50%); } .w-carousel-arrow-top { top: 12px; left: 50%; transform: translateX(-50%); } .w-carousel-arrow-bottom { bottom: 12px; left: 50%; transform: translateX(-50%); } .w-carousel-arrow-hover div { opacity: 0; transition: all 0.3s; } .w-carousel:hover .w-carousel-arrow-hover div { opacity: 1; }