UNPKG

react-admin-component

Version:
562 lines (561 loc) 10.6 kB
/* * File: index.less * Desc: 提示框样式文件 * File Created: 2019-09-11 10:25:32 * Author: chenghao at <hao.cheng@karakal.com.cn> * ------ * Copyright 2019 - present, karakal */ .alert_overlay { position: fixed; background: rgba(0, 0, 0, 0.36); top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 10000; display: flex; justify-content: center; align-items: center; } .alert_overlay-show { opacity: 1; pointer-events: auto; } .alert_overlay-show .alert_modal { opacity: 1; pointer-events: auto; animation: showAlert 0.3s; } .alert_modal { width: 340px; display: inline-flex; flex-direction: column; align-items: center; border-radius: 4px; background-color: #ffffff; opacity: 0; z-index: 10001; transition: opacity 0.2s; pointer-events: none; box-sizing: border-box; padding: 36px 0 30px 0; position: relative; } .alert_header { font-size: 20px; font-weight: 400; } .alert_close { width: 17px; height: 17px; position: absolute; top: 18px; right: 18px; cursor: pointer; } .alert_title { margin-top: 24px; margin-bottom: 40px; line-height: 1; font-size: 18px; color: #262632; font-weight: bold; z-index: 2; padding: 0 25px; } .alert_text { margin-top: -40px; line-height: 1; font-size: 13px; color: #4c4c4c; z-index: 2; min-height: 60px; max-height: 200px; overflow: auto; padding: 14px; box-sizing: border-box; } .alert_icon { width: 80px; height: 80px; border-width: 4px; border-style: solid; border-radius: 50%; padding: 0; position: relative; box-sizing: content-box; } .alert_icon-success { border-color: #a5dc86; } .alert_icon-success::before, .alert_icon-success::after { content: ''; border-radius: 50%; position: absolute; width: 60px; height: 120px; background: #fff; transform: rotate(45deg); } .alert_icon-success::before { border-radius: 120px 0 0 120px; top: -7px; left: -33px; transform: rotate(-45deg); transform-origin: 60px 60px; } .alert_icon-success::after { border-radius: 0 120px 120px 0; top: -11px; left: 30px; transform: rotate(-45deg); transform-origin: 0 60px; animation: rotatePlaceholder 4.25s ease-in; } .alert_icon-success_line { height: 5px; background-color: #a5dc86; display: block; border-radius: 2px; position: absolute; z-index: 2; } .alert_icon-success_line-long { width: 47px; right: 8px; top: 38px; transform: rotate(-45deg); animation: animateSuccessLong 0.75s; } .alert_icon-success_line-tip { width: 25px; left: 14px; top: 46px; transform: rotate(45deg); animation: animateSuccessTip 0.75s; } .alert_icon-success_ring { width: 80px; height: 80px; border: 4px solid rgba(165, 220, 134, 0.2); border-radius: 50%; box-sizing: content-box; position: absolute; left: -4px; top: -4px; z-index: 2; } .alert_icon-success_hide-corners { width: 5px; height: 90px; background-color: #fff; padding: 1px; position: absolute; left: 28px; top: 8px; z-index: 1; transform: rotate(-45deg); } .alert_icon-warning { border-color: #f8bb86; animation: pulseWarning 0.75s infinite alternate; } .alert_icon-warning_body, .alert_icon-warning_dot { position: absolute; left: 50%; background-color: #f8bb86; } .alert_icon-warning_body { width: 5px; height: 47px; top: 10px; border-radius: 2px; margin-left: -2px; } .alert_icon-warning_dot { width: 7px; height: 7px; border-radius: 50%; margin-left: -4px; bottom: -11px; } .alert_icon-error { border-color: #f27474; animation: animateErrorIcon 0.5s; } .alert_icon-error_mark { position: relative; display: block; animation: animateXMark 0.5s; } .alert_icon-error_line { position: absolute; height: 5px; width: 47px; background-color: #f27474; display: block; top: 37px; border-radius: 2px; } .alert_icon-error_line-left { transform: rotate(45deg); left: 17px; } .alert_icon-error_line-right { transform: rotate(-45deg); right: 16px; } .alert_button_container { padding: 0 50px; display: flex; justify-content: center; width: 100%; } .alert_button { width: 112px; height: 32px; font-size: 13px; border: 1px solid #d0d0d0; display: flex; justify-content: center; align-items: center; cursor: pointer; } .alert_button-confirm { width: 112px; height: 32px; font-size: 13px; border: 1px solid #d0d0d0; display: flex; justify-content: center; align-items: center; cursor: pointer; width: 74px; } @keyframes rotatePlaceholder { 0% { transform: rotate(-45deg); } 5% { transform: rotate(-45deg); } 12% { transform: rotate(-405deg); } to { transform: rotate(-405deg); } } @keyframes showAlert { 0% { transform: scale(1); } 1% { transform: scale(0.5); } 45% { transform: scale(1.05); } 80% { transform: scale(0.95); } to { transform: scale(1); } } @keyframes animateSuccessLong { 0% { width: 0; right: 46px; top: 54px; } 65% { width: 0; right: 46px; top: 54px; } 84% { width: 55px; right: 0; top: 35px; } to { width: 47px; right: 8px; top: 38px; } } @keyframes animateSuccessTip { 0% { width: 0; left: 1px; top: 19px; } 54% { width: 0; left: 1px; top: 19px; } 70% { width: 50px; left: -8px; top: 37px; } 84% { width: 17px; left: 21px; top: 48px; } to { width: 25px; left: 14px; top: 45px; } } @keyframes pulseWarning { 0% { border-color: #f8d486; } to { border-color: #f8bb86; } } @keyframes animateErrorIcon { 0% { transform: rotateX(100deg); opacity: 0; } to { transform: rotateX(0deg); opacity: 1; } } @keyframes animateXMark { 0% { transform: scale(0.4); margin-top: 26px; opacity: 0; } 50% { transform: scale(0.4); margin-top: 26px; opacity: 0; } 80% { transform: scale(1.15); margin-top: -6px; } to { transform: scale(1); margin-top: 0; opacity: 1; } } /* * File: index.less * Desc: 可编辑组件样式 * File Created: 2019-10-08 17:34:26 * Author: chenghao at <hao.cheng@karakal.com.cn> * ------ * Copyright 2019 - present, karakal */ .rac_contenteditable:focus { outline: 0; } /* * File: index.less * Desc: 表单容器组件样式 * File Created: 2019-10-16 14:36:52 * Author: chenghao at <hao.cheng@karakal.com.cn> * ------ * Copyright 2019 - present, karakal */ .rac_fc { display: flex; flex-wrap: wrap; } /* * File: index.tsx * Desc: 表单输入搜索组件样式文件 * File Created: 2020-04-01 16:20:23 * Author: ztx * ------ * Copyright 2020 - present, karakal */ .inputsearch-table-container { position: absolute; width: 600px; z-index: 999; } .inputsearch-table-container .ant-table-row { background: #fff; } /* * File: index.less * Desc: 表单文本输入框提示 * File Created: 2019-12-10 * Author: ZTX * ------ * Copyright 2019 - present, karakal */ .rac_form_textarea-container { position: relative; } .rac_form_textarea_hint-container { position: absolute; right: 24px; bottom: 0; } .rac_form_upload .ant-upload-list.ant-upload-list-picture-card { display: inline-block; } .rac_form_upload .ant-upload-picture-card-wrapper { width: 100%; } .rac_form_upload .ant-upload.ant-upload-select { float: left; } .rac_form_upload .ant-upload-list { float: left; } .rac_form_upload .ant-upload-list-item + .ant-upload-list-item { margin-top: 8px; } .rac_form_upload_progress { margin-left: 12px; } /* * File: index.less * Desc: 样式文件 * File Created: 2019-09-12 16:12:18 * Author: chenghao at <hao.cheng@karakal.com.cn> * ------ * Copyright 2019 - present, karakal */ .op_icon { cursor: pointer; } .op_icon + .op_icon { margin-left: 22px; } /* * File: index.less * Desc: 样式文件 * File Created: 2019-09-12 16:46:26 * Author: chenghao at <hao.cheng@karakal.com.cn> * ------ * Copyright 2019 - present, karakal */ .imgps_root { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #1c1c1c; box-sizing: border-box; padding-top: 60px; padding-bottom: 60px; display: flex; justify-content: center; overflow: auto; z-index: 1008; } .imgps_img_ratio { width: auto; max-width: 100%; max-height: 100%; } .imgps_close { position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(112, 112, 112, 0.2); display: flex; justify-content: center; align-items: center; cursor: pointer; } .imgps_icon { background: url('./assets/close.svg') no-repeat; background-size: 100%; height: 20px; width: 20px; } /* * File: index.less * Desc: 当单选框按钮的样式 * File Created: 2019-12-06 10:15:58 * Author: chenghao at <hao.cheng@karakal.com.cn> * ------ * Copyright 2019 - present, karakal */ .rac-radio-separate .ant-radio-button-wrapper { border-radius: 4px; border-left: 1px solid #d9d9d9; } .rac-radio-separate .ant-radio-button-wrapper:first-child, .rac-radio-separate .ant-radio-button-wrapper:last-child { border-radius: 4px; } .rac-radio-separate .ant-radio-button-wrapper:last-child::before { width: 0; } .rac-radio-separate .ant-radio-button-wrapper:not(:first-child)::before { width: 0; } .rac-radio-separate .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) { box-shadow: none; } .rac-radio-separate .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover { box-shadow: none; } /* * File: index.less * Desc: tabbar样式 * File Created: 2019-10-28 16:44:17 * Author: chenghao at <hao.cheng@karakal.com.cn> * ------ * Copyright 2019 - present, karakal */ .rac_tab_bar { position: relative; display: inline-block; box-sizing: border-box; padding: 12px 13px; text-decoration: none; cursor: pointer; transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .rac_tab_bar-active { color: #3e89fa; } /* * File: index.less * Desc: 描述 * File Created: 2019-10-28 17:21:37 * Author: chenghao at <hao.cheng@karakal.com.cn> * ------ * Copyright 2019 - present, karakal */ .rac_tab_inkbar { height: 4px; width: 30px; border-radius: 100px; display: block; background-color: #3e89fa; position: absolute; bottom: 0; } .rac_tab_inkbar-animate { transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); }