UNPKG

ten-design-vue

Version:

ten-vue

171 lines (170 loc) 3.22 kB
/* dependencies icon */ /** * 文字部分 * 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 */ @-webkit-keyframes rotate { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes rotate { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-webkit-keyframes stretchdelay { 0%, 40%, 100% { transform: scaleY(0.33); -webkit-transform: scaleY(0.33); } 20% { transform: scaleY(1); -webkit-transform: scaleY(1); } } @keyframes stretchdelay { 0%, 40%, 100% { transform: scaleY(0.33); -webkit-transform: scaleY(0.33); } 20% { transform: scaleY(1); -webkit-transform: scaleY(1); } } .ten-loading { position: relative; height: 100%; } .ten-loading--block { width: 100%; position: absolute; left: 0; top: 0; } .ten-loading__wrapper { text-align: center; position: absolute; left: 0; right: 0; top: 50%; margin-top: -12px; z-index: 2; } .ten-loading__wrapper--hasText { margin-top: -24px; } .ten-loading__wrapper--closed { opacity: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; } .ten-loading__icon-default { height: 24px; } .ten-loading__icon-default > span { width: 8px; height: 100%; display: inline-block; background-color: #0052d9; -webkit-animation: stretchdelay 1.2s infinite ease-in-out; animation: stretchdelay 1.2s infinite ease-in-out; margin: 0 2px; border-radius: 0px; } .ten-loading__icon-default > span:nth-child(2) { -webkit-animation-delay: -1.1s; animation-delay: -1.1s; } .ten-loading__icon-default > span:nth-child(3) { -webkit-animation-delay: -1s; animation-delay: -1s; } .ten-loading__icon-default > span:nth-child(4) { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .ten-loading__text { font-size: 14px; color: #333; margin-top: 14px; } .ten-loading--blur { opacity: 0.6; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; } .ten-loading__indicator { display: flex; align-items: center; justify-content: center; -webkit-transform-origin: center; transform-origin: center; -webkit-animation: rotate 1.2s infinite ease-in-out; animation: rotate 1.2s infinite ease-in-out; } /** * 紧凑版变量覆写 * 如发现需要用到的变量没有定义,先在样式文件中抽出来在 vars.less 中添加该变量 * 变量命名方式 组件名-属性-修饰 如 button-fontsize-small */ /* input */ /* check */ /* select */ /* popup */ /* menu */ /* steps */ /* tabs */ /* modal */ /* table */ /* pagination */ /* upload */ /* form */