UNPKG

ten-design-vue

Version:

ten-vue

142 lines (141 loc) 2.37 kB
/* dependencies button */ /** * 文字部分 * size 大小,line 行高, color 颜色 */ /* button */ /* input */ /* transfer */ /* alert */ /* menu */ /* message */ /* modal */ /* badge */ /* tag */ /* progress */ /* popup */ /* tooltip */ /* loading */ /* tabs */ /* check */ /* mention */ /* popup */ /* steps */ /* tabs */ /* modal */ /* form */ /* table */ /* pagination */ /* upload */ /* collapse */ /* anchor */ /* list */ .ten-modal { width: 50%; background: #ffffff; margin: 0 auto; position: relative; top: 20vh; border-radius: 0px; box-shadow: 3px 3px 8px 2px rgba(0, 0, 0, 0.06); } .ten-modal--center { top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .ten-modal__wrapper { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 10001; overflow: auto; } .ten-modal__mask { background: rgba(0, 0, 0, 0.5); position: fixed; left: 0; top: 0; right: 0; bottom: 0; } .ten-modal__header { position: relative; display: flex; padding: 20px 24px; } .ten-modal__header-title { font-size: 16px; color: #333; font-weight: bold; } .ten-modal__header-close { position: absolute; top: 19px; right: 20px; font-size: 14px; padding: 5px; color: #999; cursor: pointer; } .ten-modal__header-icon { font-size: 24px; margin-right: 14px; } .ten-modal__header-icon--error { color: #ff3e00; } .ten-modal__header-icon--warning { color: #ffa700; } .ten-modal__header-icon--success { color: #3ecc36; } .ten-modal__header-icon--info { color: #c7ddf3; } .ten-modal__content { padding: 18px 24px 30px; position: relative; color: #666; } .ten-modal__footer { position: relative; padding: 15px 24px; text-align: right; } .ten-modal__footer::before { content: ''; width: 100%; height: 1px; position: absolute; left: 0; right: 0; top: 0; background: #F0F0F0; } .ten-modal__footer-btn { min-width: auto; } .ten-modal__footer .ten-button + .ten-button { margin-left: 8px; } /** * 紧凑版变量覆写 * 如发现需要用到的变量没有定义,先在样式文件中抽出来在 vars.less 中添加该变量 * 变量命名方式 组件名-属性-修饰 如 button-fontsize-small */ /* input */ /* check */ /* select */ /* popup */ /* menu */ /* steps */ /* tabs */ /* modal */ /* table */ /* pagination */ /* upload */ /* form */