UNPKG

acud

Version:

acg react 组件库

212 lines (211 loc) • 4.55 kB
/* color */ /* 默认颜色 */ /* 通用-icon */ /* 标签 */ /* 默认颜色 */ /* 其他颜色 */ /* 通用 */ /* 水平 */ /* 垂直 */ /* 序号水平 */ /* 序号垂直 */ .acud-carousel { margin: 0; padding: 0; position: relative; width: 1920px; height: 440px; background: #FFFFFF; overflow: hidden; cursor: pointer; } .acud-carousel:hover .acud-carousel-switch { display: block; } .acud-carousel-switch { display: none; position: absolute; z-index: 2; top: 50%; margin-top: -24px; width: 100%; height: 48px; pointer-events: none; } .acud-carousel-switch > span { cursor: pointer; pointer-events: visible; opacity: 1; } .acud-carousel-switch > span.disabled { cursor: not-allowed; opacity: 0.5; } .acud-carousel-switch > span > .acudicon { display: block; width: 48px; height: 48px; border-radius: 50%; display: inline-block; background: rgba(255, 255, 255, 0.85); box-shadow: 0px 2px 8px 0px rgba(7, 12, 20, 0.12); color: #84868C; font-size: 16px; position: relative; } .acud-carousel-switch > span > .acudicon svg { position: absolute; top: 50%; left: 50%; margin-top: -8px; margin-left: -8px; } .acud-carousel-switch-left { float: left; margin-left: 298px; } .acud-carousel-switch-right { float: right; margin-right: 298px; } .acud-carousel-indicator { position: absolute; z-index: 2; width: 100%; } .acud-carousel-indicator ul, .acud-carousel-indicator li { list-style: none !important; } .acud-carousel-indicator-bottom, .acud-carousel-indicator-top { line-height: 0; font-size: 0; } .acud-carousel-indicator-bottom ul, .acud-carousel-indicator-top ul { text-align: center; } .acud-carousel-indicator-bottom ul li, .acud-carousel-indicator-top ul li { display: inline-block; width: 40px; height: 4px; background-color: rgba(255, 255, 255, 0.5); margin-right: 12px; cursor: pointer; border-radius: 2px; } .acud-carousel-indicator-bottom ul li .fill, .acud-carousel-indicator-top ul li .fill { width: 0; height: 100%; background-color: #FFFFFF; border-radius: 2px; transition: none; } .acud-carousel-indicator-bottom ul li.active .fill, .acud-carousel-indicator-top ul li.active .fill { width: 40px; transition: width 5s linear; } .acud-carousel-indicator-bottom { bottom: 62px; } .acud-carousel-indicator-top { top: 62px; } .acud-carousel-indicator-left, .acud-carousel-indicator-right { top: 50%; transform: translateY(-50%); width: 4px; } .acud-carousel-indicator-left ul, .acud-carousel-indicator-right ul { text-align: center; } .acud-carousel-indicator-left ul li, .acud-carousel-indicator-right ul li { display: block; width: 4px; height: 40px; background-color: rgba(255, 255, 255, 0.5); margin-bottom: 12px; cursor: pointer; border-radius: 2px; } .acud-carousel-indicator-left ul li .fill, .acud-carousel-indicator-right ul li .fill { width: 100%; height: 0; background-color: #FFFFFF; border-radius: 2px; transition: none; } .acud-carousel-indicator-left ul li.active .fill, .acud-carousel-indicator-right ul li.active .fill { height: 40px; transition: height 5s linear; } .acud-carousel-indicator-left { left: 62px; } .acud-carousel-indicator-right { right: 62px; } .acud-carousel-indicator-number.acud-carousel-indicator-left { left: 12px; } .acud-carousel-indicator-number.acud-carousel-indicator-right { right: 60px; } .acud-carousel-indicator-number.acud-carousel-indicator-bottom { bottom: 12px; } .acud-carousel-indicator-number.acud-carousel-indicator-top { top: 12px; } .acud-carousel-indicator-number > div { margin: 0 auto; text-align: center; width: 48px; height: 24px; line-height: 24px; color: #FFFFFF; background-color: rgba(7, 12, 20, 0.5); font-size: 12px; } .acud-carousel-indicator-number > div .total { color: rgba(255, 255, 255, 0.5); } .acud-carousel-content { width: 100%; height: 100%; } .acud-carousel-content > ul { list-style: none !important; position: relative; font-size: 0; } .acud-carousel-content > ul > li { list-style: none !important; position: absolute; width: 1920px; height: 440px; background-size: contain; transition: left ease-in-out 1s; } .acud-carousel-content > ul > li * { font-size: 10px; } .acud-carousel.acud-carousel-multi .acud-carousel-switch-left { margin-left: 44px; } .acud-carousel.acud-carousel-multi .acud-carousel-switch-right { margin-right: 44px; } .acud-carousel.acud-carousel-multi .acud-carousel-content ul { height: 100%; overflow: hidden; }