123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- @import url('./font/index.less');
- :root:root {
- --k-primary: #1CACF1; // 主题色
- --k-font-primary: #1CACF1; // 字体色
- --van-pull-refresh-head-height: 55px;
- --van-skeleton-paragraph-background: #ECEEF3;
- --van-skeleton-avatar-background: #ECEEF3;
- --van-dialog-message-font-size: 16px;
- }
- img {
- /* -webkit-touch-callout: none; */
- -moz-user-select: none;
- /* 火狐浏览器 */
- -webkit-user-drag: none;
- /* 谷歌、Safari和Opera浏览器 */
- -webkit-user-select: none;
- /* 谷歌、Safari和Opera浏览器 */
- -ms-user-select: none;
- /* IE10+浏览器 */
- user-select: none;
- /* 通用 */
- -webkit-touch-callout: none;
- }
- body {
- user-select: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- }
- // 默认输入框光标颜色
- input,
- textarea {
- caret-color: var(--k-font-primary) !important;
- }
- .van-skeleton {
- padding: 0;
- }
- * {
- padding: 0;
- margin: 0;
- border: 0;
- box-sizing: border-box;
- }
- #app {
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- color: #333;
- min-height: 100vh;
- }
- body {
- background-color: #f8f9fc;
- user-select: none;
- }
- // tab 选项卡样式
- .van-picker .van-picker-column__item--selected {
- color: var(--k-font-primary);
- }
- // 下拉框样式重置
- .van-dropdown-menu__bar {
- box-shadow: none;
- --van-dropdown-menu-title-font-size: 14px;
- --van-button-normal-font-size: 16px;
- --van-dropdown-menu-height: 44px;
- }
- .van-dropdown-item {
- // 在某些浏览器上面会显示一条线
- margin-top: -1px;
- }
- .van-dropdown-item__content {
- border-radius: 0px 0px 12px 12px;
- .van-dropdown-item__option {
- margin: 0 13px;
- height: 44px;
- border-radius: 8px;
- width: auto;
- ;
- &:first-child {
- margin-top: 12px;
- }
- &:last-child {
- margin-bottom: 12px;
- }
- &:after {
- border: none;
- }
- .van-cell__title {
- white-space: nowrap;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 16px;
- color: var(--k-gray-4);
- text-align: center;
- }
- .van-cell__value {
- display: none;
- }
- }
- .van-dropdown-item__option--active {
- background: #F6F6F6;
- .van-cell__title {
- font-weight: 600;
- color: var(--k-font-primary);
- }
- }
- }
- // 固定底部按钮样式
- .btnGroupFixed {
- padding: 0 25px;
- padding-bottom: calc(20px + constant(safe-area-inset-bottom));
- padding-bottom: calc(20px + env(safe-area-inset-bottom));
- }
- // 搜索公用样式
- .popupBottomSearch {
- --van-picker-toolbar-height: 44px !important;
- .van-picker__toolbar {
- position: relative;
- &::after {
- position: absolute;
- box-sizing: border-box;
- content: ' ';
- pointer-events: none;
- right: var(--van-padding-md);
- bottom: 0;
- left: var(--van-padding-md);
- border-bottom: 1px solid var(--van-cell-border-color);
- transform: scaleY(0.5);
- }
- }
- .van-picker__columns {
- padding: 0 24px;
- }
- .van-picker-column {
- position: relative;
- z-index: 1;
- }
- .van-picker__frame {
- z-index: 0;
- &::after {
- background: #f6f6f6;
- border-radius: 8px;
- }
- }
- }
- .btnGroupPopup {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 18px 13px;
- .van-button {
- font-weight: 400;
- width: 48%;
- font-size: 16px;
- }
- }
- .myClassM2 {
- .amap-marker-label {
- background: #FF5A56;
- }
- }
- // 地图样式
- .amap-marker-label {
- // border: 0;
- background: #00B2A7;
- border: 0;
- color: #fff;
- line-height: 18px;
- font-size: 12px;
- padding: 2px 4px;
- border-radius: 4px;
- }
- // 自定义动画基类
- .popup-custom {
- transition: all 0.25s;
- background: transparent;
- overflow: initial;
- }
- .popup-custom.van-scale {
- transform-origin: center -25%;
- }
- /* 缩放动画 */
- .van-scale-enter-from,
- .van-scale-leave-to {
- opacity: 0;
- transform: scale(0.3);
- }
- .van-scale-enter-active,
- .van-scale-leave-active {
- transition: all 0.25s;
- }
- .mb12 {
- margin-bottom: 12px !important;
- }
- .btnGroup {
- padding: 0 25px;
- padding-bottom: calc(20px + env(safe-area-inset-bottom));
- .van-button {
- font-size: 18px !important;
- font-weight: 500;
- }
- }
- .btnMore {
- padding-left: 13px;
- padding-right: 13px;
- display: flex !important;
- justify-content: center !important;
- // :global {
- .van-button {
- width: 100% !important;
- }
- .van-button+.van-button {
- margin-left: 15px;
- }
- }
- .van-overlay {
- transition: all 0.25s;
- }
- .popup-custom {
- transition: all 0.25s;
- background: transparent;
- overflow: initial;
- max-width: 100%;
- }
- .popup-custom.van-scale {
- transform-origin: center -25%;
- }
- /* 缩放动画 */
- .van-scale-enter-from,
- .van-scale-leave-to {
- opacity: 0;
- transform: scale(0.3);
- }
- .van-scale-enter-active,
- .van-scale-leave-active {
- transition: all 0.25s;
- }
- .van-toast {
- z-index: 99999 !important;
- }
- .fontBlod {
- font-weight: bold;
- }
- .transferStaff {
- .van-popover__content {
- padding: 5px 0;
- }
- .van-popover__action {
- border-radius: 4px;
- height: auto;
- margin: 3px 8px;
- padding: 6px 7px;
- --van-border-width: 0;
- text-align: left;
- &.fontBlod {
- background: #EEF8FF;
- }
- }
- }
- .transferStaffSection {
- --van-popover-action-width: 142px;
- .van-popover__action-text {
- white-space: nowrap;
- overflow: hidden;
- display: block;
- text-overflow: ellipsis;
- }
- }
- /** 处理富文本编辑器样式 重置 **/
- .only-child-select {
- div, span, applet, object, iframe,
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
- a, abbr, acronym, address, big, cite, code,
- del, dfn, em, img, ins, kbd, q, s, samp,
- small, strike, strong, sub, sup, tt, var,
- b, u, i, center,
- dl, dt, dd, ol, ul, li,
- fieldset, form, label, legend,
- table, caption, tbody, tfoot, thead, tr, th, td,
- article, aside, canvas, details, embed,
- figure, figcaption, footer, header, hgroup,
- menu, nav, output, ruby, section, summary,
- time, mark, audio, video {
- all: revert;
- }
- hr {
- border-top: 1px solid #D2D2D2;
- }
- }
|