| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 | @import './var.less';@import '../style/mixins/hairline';:root {  --van-share-sheet-header-padding: @share-sheet-header-padding;  --van-share-sheet-title-color: @share-sheet-title-color;  --van-share-sheet-title-font-size: @share-sheet-title-font-size;  --van-share-sheet-title-line-height: @share-sheet-title-line-height;  --van-share-sheet-description-color: @share-sheet-description-color;  --van-share-sheet-description-font-size: @share-sheet-description-font-size;  --van-share-sheet-description-line-height: @share-sheet-description-line-height;  --van-share-sheet-icon-size: @share-sheet-icon-size;  --van-share-sheet-option-name-color: @share-sheet-option-name-color;  --van-share-sheet-option-name-font-size: @share-sheet-option-name-font-size;  --van-share-sheet-option-description-color: @share-sheet-option-description-color;  --van-share-sheet-option-description-font-size: @share-sheet-option-description-font-size;  --van-share-sheet-cancel-button-font-size: @share-sheet-cancel-button-font-size;  --van-share-sheet-cancel-button-height: @share-sheet-cancel-button-height;  --van-share-sheet-cancel-button-background: @share-sheet-cancel-button-background;}.van-share-sheet {  &__header {    padding: var(--van-share-sheet-header-padding);    text-align: center;  }  &__title {    margin-top: var(--van-padding-xs);    color: var(--van-share-sheet-title-color);    font-weight: normal;    font-size: var(--van-share-sheet-title-font-size);    line-height: var(--van-share-sheet-title-line-height);  }  &__description {    display: block;    margin-top: var(--van-padding-xs);    color: var(--van-share-sheet-description-color);    font-size: var(--van-share-sheet-description-font-size);    line-height: var(--van-share-sheet-description-line-height);  }  &__options {    position: relative;    display: flex;    padding: var(--van-padding-md) 0 var(--van-padding-md) var(--van-padding-xs);    overflow-x: auto;    overflow-y: visible;    -webkit-overflow-scrolling: touch;    &--border::before {      .hairline-top(var(--van-border-color), var(--van-padding-md));    }    &::-webkit-scrollbar {      height: 0;    }  }  &__option {    display: flex;    flex-direction: column;    align-items: center;    user-select: none;  }  &__icon,  &__image-icon {    width: var(--van-share-sheet-icon-size);    height: var(--van-share-sheet-icon-size);    margin: 0 var(--van-padding-md);  }  &__icon {    display: flex;    align-items: center;    justify-content: center;    color: var(--van-gray-7);    border-radius: 100%;    background-color: var(--van-gray-2);    &--link,    &--poster,    &--qrcode {      font-size: 26px;    }    &--weapp-qrcode {      font-size: 28px;    }    &--qq,    &--weibo,    &--wechat,    &--wechat-moments {      font-size: 30px;      color: var(--van-white);    }    &--qq {      background-color: #38b9fa;    }    &--wechat {      background-color: #0bc15f;    }    &--weibo {      background-color: #ee575e;    }    &--wechat-moments {      background-color: #7bc845;    }  }  &__name {    margin-top: var(--van-padding-xs);    padding: 0 var(--van-padding-base);    color: var(--van-share-sheet-option-name-color);    font-size: var(--van-share-sheet-option-name-font-size);  }  &__option-description {    padding: 0 var(--van-padding-base);    color: var(--van-share-sheet-option-description-color);    font-size: var(--van-share-sheet-option-description-font-size);  }  &__cancel {    display: block;    width: 100%;    padding: 0;    font-size: var(--van-share-sheet-cancel-button-font-size);    line-height: var(--van-share-sheet-cancel-button-height);    text-align: center;    background: var(--van-share-sheet-cancel-button-background);    border: none;    cursor: pointer;    &::before {      display: block;      height: var(--van-padding-xs);      background-color: var(--van-background-color);      content: ' ';    }    &:active {      background-color: var(--van-active-color);    }  }}
 |