UNPKG

linkmore-design

Version:

🌈 πŸš€lmη»„δ»ΆεΊ“γ€‚πŸš€

313 lines (287 loc) β€’ 7.86 kB
@import '../../style/themes/index.less'; @tour-prefix-cls: ~'@{ant-prefix}-tour'; .@{tour-prefix-cls} { box-sizing: border-box; margin: 0; padding: 0; color: @text-color-new; font-size: @font-size-base; line-height: @line-height-base; list-style: none; font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji; position: absolute; z-index: 1070; display: block; visibility: visible; width: 520px; --antd-arrow-background-color: #ffffff; &::before, &::after { box-sizing: border-box; } &-tour-pure { max-width: 100%; position: relative; } &-hidden { display: none; } &-content { position: relative; } &-inner { text-align: start; text-decoration: none; border-radius: @border-modal-radius-base; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .03), 0 1px 6px -1px rgba(0, 0, 0, .02), 0 2px 4px 0 rgba(0, 0, 0, .02); position: relative; background-color: @white; border: none; background-clip: padding-box; .@{tour-prefix-cls}-close { position: absolute; top: @padding-md; inset-inline-end: @padding-md; color: @text-color-secondary; outline: none; width: 22px; height: 22px; border-radius: @border-radius-base; transition: background-color .2s, color .2s; display: flex; align-items: center; justify-content: center; &:hover { color: @heading-color; background-color: @line-color; } } .@{tour-prefix-cls}-cover { text-align: center; padding: 46px @padding-md 0; img { width: 100%; } } .@{tour-prefix-cls}-header { padding: @padding-md @padding-md @padding-xs; &-title { line-height: @line-height-base; font-size: @font-size-base; font-weight: @select-item-selected-font-weight; } } .@{tour-prefix-cls}-description { padding: 0 @padding-md; line-height: @line-height-base; word-wrap: break-word; } .@{tour-prefix-cls}-footer { padding: @padding-xs @padding-md @padding-md; text-align: end; border-radius: 0 0 2px 2px; display: flex; justify-content: space-between; .@{tour-prefix-cls}-sliders { display: inline-block; .@{tour-prefix-cls}-slider { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: rgba(0, 0, 0, .15); margin-inline-end: 6px; &-active { background: @primary-color; } } } .@{tour-prefix-cls}-buttons { button { margin-inline-start: 8px; } } } } &-primary { --antd-arrow-background-color: @primary-color; .@{tour-prefix-cls}-inner { color: @white; text-align: start; text-decoration: none; background-color: @primary-color; border-radius: 6px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .03), 0 1px 6px -1px rgba(0, 0, 0, .02), 0 2px 4px 0 rgba(0, 0, 0, .02); .@{tour-prefix-cls}-close { color: @white; } .@{tour-prefix-cls}-sliders .@{tour-prefix-cls}-slider { background: rgba(255, 255, 255, .15); } .@{tour-prefix-cls}-sliders .@{tour-prefix-cls}-slider-active { background: @white; } .@{tour-prefix-cls}-prev-btn { color: @white; border-color: rgba(255, 255, 255, .15); background-color: @primary-color;; &:hover { background-color: rgba(255, 255, 255, .15); border-color: transparent; } .@{tour-prefix-cls}-next-btn { color: @primary-color;; border-color: transparent; background: @white; &:hover { background: @icon-color-hover; } } } } } &-arrow { position: absolute; z-index: 1; display: block; border-radius: 0 0 2px; pointer-events: none; width: 32px; height: 32px; overflow: hidden; &::after { content: ""; position: absolute; width: 12px; height: 12px; bottom: 0; inset-inline: 0; margin: auto; border-radius: 0 0 2px 0; transform: translateY(50%) rotate(-135deg); box-shadow: 3px 3px 7px rgba(0, 0, 0, .1); z-index: 0; background: 0 0; } &::before { position: absolute; bottom: 0; inset-inline-start: 0; width: 32px; height: 8px; background: var(--antd-arrow-background-color); clip-path: path('M 6.343145750507619 8 A 4 4 0 0 0 9.17157287525381 6.82842712474619 L 14.585786437626904 1.414213562373095 A 2 2 0 0 1 17.414213562373096 1.414213562373095 L 22.82842712474619 6.82842712474619 A 4 4 0 0 0 25.65685424949238 8 Z'); content: ""; } &:before { background: var(--antd-arrow-background-color) } } } .@{tour-prefix-cls}-mask { .@{tour-prefix-cls}-placeholder-animated { transition: all .3s; } } .@{tour-prefix-cls}-placement-left, .@{tour-prefix-cls}-placement-lefttop, .@{tour-prefix-cls}-placement-leftbottom, .@{tour-prefix-cls}-placement-right, .@{tour-prefix-cls}-placement-righttop, .@{tour-prefix-cls}-placement-rightbottom { .@{tour-prefix-cls}-inner { border-radius: 8px; } } .@{tour-prefix-cls}-placement-top, .@{tour-prefix-cls}-placement-topLeft, .@{tour-prefix-cls}-placement-topRight { padding-bottom: 12px; .@{tour-prefix-cls}-arrow { bottom: 0; transform: translateY(100%) rotate(180deg); } } .@{tour-prefix-cls}-placement-top { .@{tour-prefix-cls}-arrow { left: 50%; transform: translateX(-50%) translateY(100%) rotate(180deg); } } .@{tour-prefix-cls}-placement-topLeft { .@{tour-prefix-cls}-arrow { left: @tour-arrow-left; } } .@{tour-prefix-cls}-placement-topRight { .@{tour-prefix-cls}-arrow { right: @tour-arrow-left; } } .@{tour-prefix-cls}-placement-bottom, .@{tour-prefix-cls}-placement-bottomLeft, .@{tour-prefix-cls}-placement-bottomRight { padding-top: 12px; .@{tour-prefix-cls}-arrow { top: 0; transform: translateY(-100%); } } .@{tour-prefix-cls}-placement-bottom { .@{tour-prefix-cls}-arrow { left: 50%; transform: translateX(-50%) translateY(-100%); } } .@{tour-prefix-cls}-placement-bottomLeft { .@{tour-prefix-cls}-arrow { left: @tour-arrow-left; } } .@{tour-prefix-cls}-placement-bottomRight { .@{tour-prefix-cls}-arrow { right: @tour-arrow-left; } } .@{tour-prefix-cls}-placement-left, .@{tour-prefix-cls}-placement-leftTop, .@{tour-prefix-cls}-placement-leftBottom { padding-right: 12px; .@{tour-prefix-cls}-arrow { right: 0; transform: translateX(100%) rotate(90deg); } } .@{tour-prefix-cls}-placement-left { .@{tour-prefix-cls}-arrow { top: 50%; transform: translateY(-50%) translateX(100%) rotate(90deg); } } .@{tour-prefix-cls}-placement-leftTop { .@{tour-prefix-cls}-arrow { top: @tour-arrow-top; } } .@{tour-prefix-cls}-placement-leftBottom { .@{tour-prefix-cls}-arrow { bottom: @tour-arrow-top; } } .@{tour-prefix-cls}-placement-right, .@{tour-prefix-cls}-placement-rightTop, .@{tour-prefix-cls}-placement-rightBottom { padding-left: 12px; .@{tour-prefix-cls}-arrow { left: 0; transform: translateX(-100%) rotate(-90deg); } } .@{tour-prefix-cls}-placement-right { .@{tour-prefix-cls}-arrow { top: 50%; transform: translateY(-50%) translateX(-100%) rotate(-90deg); } } .@{tour-prefix-cls}-placement-rightTop { .@{tour-prefix-cls}-arrow { top: @tour-arrow-top; } } .@{tour-prefix-cls}-placement-rightBottom { .@{tour-prefix-cls}-arrow { bottom: @tour-arrow-top; } }