| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- @import '@/utils/common.scss';
- .slider-container {
- position: relative;
- width: 578px;
- height: 120px;
- background-color: #787878;
- border-radius: 60px;
- overflow: hidden;
- touch-action: none;
- box-sizing: border-box;
- }
- .slider-item-content{
- position: absolute;
- height: 120px;
- width: 578px;
- display: flex;
- flex-direction: row;
- left: 0;
- top: 0;
- align-items: center;
- }
- .slider-item-bg {
- // position: absolute;
- min-width: 112px;
- height: 112px;
- border-radius: 56px;
- margin-left: 6px;
- // left: 4px;
- // top: 6px;
- background-color: #ffffff;
- // overflow: hidden;
- position: relative;
- }
- .slider-item {
- position: absolute;
- left: 0px;
- top: 0px;
- min-width: 112px;
- height: 112px;
- border-radius: 56px;
- // width: 100%;
- // height: 100%;
- }
- /* #ifdef weapp */
- .slider-top {
- position: absolute;
- width: 100%;
- background-color: #000;
- transform: height 0.2s;
- }
- .slider-bar {
- position: absolute;
- width: 100%;
- background-color: transparent;
- bottom: 0;
- transition: height 0.2s;
- }
- .slider-tip-desc {
- margin-top: 12px;
- font-size: 20px;
- line-height: 24px;
- background: linear-gradient(90deg, $fastColor 0%, #fff 100%);
- -webkit-background-clip: text;
- background-clip: text;
- color: transparent;
- }
- .slider-tip-desc-post {
- margin-top: 12px;
- font-size: 20px;
- line-height: 24px;
- background: linear-gradient(90deg, #fff 0%, $foodColor 100%);
- -webkit-background-clip: text;
- background-clip: text;
- color: transparent;
- }
- .tooltip_title {
- font-size: 32px;
- line-height: 40px;
- letter-spacing: 0.05em;
- color: #fff;
- font-weight: bold;
- }
- .tooltip_desc {
- margin-top: 20px;
- font-size: 28px;
- line-height: 40px;
- letter-spacing: 0.05em;
- color: #fff;
- opacity: 0.6;
- }
- /* #endif */
- /* #ifdef rn */
- .slider-top {
- position: absolute;
- width: 100%;
- background-color: #000;
- }
- .slider-bar {
- position: absolute;
- width: 100%;
- background-color: transparent;
- bottom: 0;
- }
- .slider-tip-desc {
- margin-top: 12px;
- font-size: 20px;
- line-height: 24px;
- // background: linear-gradient(90deg, $fastColor 0%, #fff 100%);
- -webkit-background-clip: text;
- background-clip: text;
- color: transparent;
- }
- .slider-tip-desc-post {
- margin-top: 12px;
- font-size: 20px;
- line-height: 24px;
- // background: linear-gradient(90deg, #fff 0%, $foodColor 100%);
- -webkit-background-clip: text;
- background-clip: text;
- color: transparent;
- }
- .tooltip_title {
- font-size: 32px;
- line-height: 40px;
- // letter-spacing: 0.05em;
- color: #fff;
- font-weight: bold;
- }
- .tooltip_desc {
- margin-top: 20px;
- font-size: 28px;
- line-height: 40px;
- // letter-spacing: 0.05em;
- color: #fff;
- opacity: 0.6;
- }
- /* #endif */
- .slider-handle {
- position: absolute;
- bottom: 0;
- width: 100%;
- text-align: center;
- color: #fff;
- }
- .slider-text-bg {
- display: flex;
- position: absolute;
- left: 45px;
- top: 0;
- // width: 120px;
- height: 120px;
- align-items: center;
- justify-content: center;
- pointer-events: none;
- }
- .slider-arrow-bg {
- display: flex;
- position: absolute;
- left: 0;
- top: 0;
- width: 120px;
- height: 120px;
- align-items: center;
- justify-content: center;
- pointer-events: none;
- // background-color: red;
- // opacity: 0.5;
- }
- .slider-text {
- color: #000;
- font-size: 48px;
- font-weight: bold;
- }
- .slider-arrow {
- width: 56px;
- height: 56px;
- }
- .tooltip_bg {
- width: 578px;
- height: 400px;
- pointer-events: none;
- z-index: 1;
- position: absolute;
- left: 0;
- top: -410px;
- display: flex;
- flex-direction: column;
- }
- .tooltip_content {
- width: 578px;
- padding-left: 40px;
- padding-right: 40px;
- padding-top: 40px;
- padding-bottom: 40px;
- box-sizing: border-box;
- border-radius: 16px;
- background-color: $tipBgColor;
- display: flex;
- flex-direction: column;
- }
- .tooltip_arrow {
- width: 0;
- height: 0;
- margin-top: -2px;
- border-left: 25px solid transparent;
- border-right: 25px solid transparent;
- border-top: 20px solid $tipBgColor;
- }
- .slider-tip-bg {
- position: absolute;
- right: 0;
- height: 120px;
- top: 0;
- min-width: 180px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- // background-color: red;
- }
- .slider-tip-title {
- font-size: 32px;
- line-height: 32px;
- font-weight: bold;
- color: $fastColor;
- }
- .slider-tip-title-post {
- font-size: 32px;
- line-height: 32px;
- font-weight: bold;
- color: $foodColor;
- }
|