| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- //text
- .del{
- text-decoration-line: line-through;
- }
- .flicker{
- font-size: 1em;
- color: red;
- animation: changeshadow 2s ease-in infinite;
- -webkit-animation: changeshadow 2s linear infinite;
- -moz-animation: changeshadow 2s linear infinite;
- -ms-animation: changeshadow 2s linear infinite;
- -o-animation: changeshadow 2s linear infinite;
- }
- @keyframes changeshadow {
- 0%{ text-shadow: 0 0 4px red}
- 50%{ text-shadow: 0 0 40px red}
- 100%{ text-shadow: 0 0 4px red}
- }
- /* 添加兼容性前缀 */
- @-webkit-keyframes changeshadow {
- 0%{ text-shadow: 0 0 4px red}
- 50%{ text-shadow: 0 0 40px red}
- 100%{ text-shadow: 0 0 4px red}
- }
- @-moz-keyframes changeshadow {
- 0%{ text-shadow: 0 0 4px red}
- 50%{ text-shadow: 0 0 40px red}
- 100%{ text-shadow: 0 0 4px red}
- }
- @-ms-keyframes changeshadow {
- 0%{ text-shadow: 0 0 4px red}
- 50%{ text-shadow: 0 0 40px red}
- 100%{ text-shadow: 0 0 4px red}
- }
- @-o-keyframes changeshadow {
- 0%{ text-shadow: 0 0 4px red}
- 50%{ text-shadow: 0 0 40px red}
- 100%{ text-shadow: 0 0 4px red}
- }
- .noselect {
- -webkit-touch-callout: none; /* iOS Safari */
- -webkit-user-select: none; /* Chrome/Safari/Opera */
- -khtml-user-select: none; /* Konqueror */
- -moz-user-select: none; /* Firefox */
- -ms-user-select: none; /* Internet Explorer/Edge */
- user-select: none;
- }
- .fa-sort{
- opacity: 0.3;
- }
- .text-letter{
- word-break: break-all
- }
- .cursor-pointer{
- color: dodgerblue;
- cursor: pointer;
- }
- //文本溢出隐藏展示...
- .text-overflow-replace{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- pointer-events: none;
- }
- .text-overflow-replace-100{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- pointer-events: none;
- max-width: 100px;
- }
- .text-overflow-replace-200{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- pointer-events: none;
- max-width: 200px;
- }
- //文本溢出换行展示
- .text-overflow-warp{
- white-space: normal;
- }
- .text-overflow-warp-100{
- max-width: 100px;
- white-space: normal;
- }
- .text-overflow-warp-200{
- max-width: 200px;
- white-space: normal;
- }
- //输入框font标签图
- .form-font{
- margin-bottom: 1.5px;
- padding-top: 0.3rem;
- text-align: center;
- border: 1px solid rgba(0,0,0,.2);
- border-radius: 0.3rem;
- margin-right: 0;
- }
- //圆角边框
- .fillet{
- border:2px solid cornflowerblue;
- border-radius: 30px;
- }
- //放大标记
- .sign{
- transform: scale(1.2);
- box-shadow: 0 0 9px 3px #999;
- }
- //放大标记-略小
- .sign-sm{
- transform: scale(1.05);
- box-shadow: 0 0 9px 3px #999;
- }
- //分隔线
- .hr-info{
- height:3px;
- border:none;
- border-top:3px solid #007bff;
- }
- //文本强制换行
- .text-wrap{
- white-space: normal;
- word-break:break-all
- }
- //文本强调阴影
- .text-shadow-stress{
- text-shadow: 3px 3px 3px yellow
- }
- //滚动条美化
- .scrollbar::-webkit-scrollbar {
- /*滚动条整体样式*/
- width : 10px; /*高宽分别对应横竖滚动条的尺寸*/
- height: 1px;
- }
- .scrollbar::-webkit-scrollbar-thumb {
- /*滚动条里面小方块*/
- border-radius: 10px;
- box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2);
- background : #535353;
- }
- .scrollbar::-webkit-scrollbar-track {
- /*滚动条里面轨道*/
- box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2);
- border-radius: 10px;
- background : #ededed;
- }
- //虚线边框-红色
- .border-dashed-red {
- border:2px dashed red;
- }
- //滑块
- .switch{
- outline: none;
- cursor: pointer;
- appearance: none;
- -webkit-appearance: none;
- -moz-appearance: none;
- position: relative;
- width: 40px;
- height: 20px;
- background: #ccc;
- border-radius: 10px;
- transition: border-color .3s, background-color .3s;
- }
- .switch::after {
- content: '';
- display: inline-block;
- width: 1rem;
- height:1rem;
- border-radius: 50%;
- background: #fff;
- box-shadow: 0 0 2px #999;
- transition:.4s;
- top: 2px;
- position: absolute;
- left: 2px;
- }
- .switch:checked {
- background: rgb(19, 206, 102);
- }
- .switch:checked::after {
- content: '';
- position: absolute;
- left: 55%;
- top: 2px;
- }
|