basic.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. .testbg(){
  2. background: plum;
  3. }
  4. .cl(){
  5. color:#101010;
  6. }
  7. .active-cl(){
  8. color:rgb(299,28,35);
  9. // color:#186ea7;
  10. }
  11. .bgcl(){
  12. background: #f8f8f8;
  13. }
  14. .center(){
  15. display:-webkit-flex;
  16. display:flex;
  17. flex-wrap:nowrap;
  18. align-items: center;
  19. justify-content: center;
  20. }
  21. .textRow(){
  22. white-space: nowrap;
  23. overflow: hidden;
  24. text-overflow: ellipsis;
  25. }
  26. .border(){
  27. border-bottom:1px solid rgba(0,0,0,.1);
  28. }
  29. .title(){
  30. font-size:16px;
  31. }
  32. .subTitle(){
  33. font-size:15px;
  34. }
  35. .content(){
  36. font-size:14px;
  37. }
  38. .title-bg(){
  39. background: #fafafa;
  40. // background: #FF7043;
  41. }
  42. .FC3D{
  43. color:dodgerblue;
  44. }
  45. .SSQ{
  46. color:red;
  47. }
  48. .PL3{
  49. color:darkgreen;
  50. }
  51. .QT{
  52. color:deepskyblue;
  53. }
  54. .redBall{
  55. background: #E84542;
  56. }
  57. .blueBall{
  58. background: #52A8E1;
  59. }
  60. @media (-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5){
  61. .border-1px-bottom{
  62. &:after{
  63. -webkit-transform: scaleY(0.7);
  64. transform: scaleY(0.7);
  65. }
  66. }
  67. .border-1px{
  68. &:after{
  69. -webkit-transform: scale(0.7);
  70. transform: scale(0.7);
  71. }
  72. }
  73. }
  74. @media (-webkit-min-device-pixel-ratio: 2),(min-device-pixel-ratio: 2){
  75. .border-1px-bottom{
  76. &:after{
  77. -webkit-transform: scaleY(0.5);
  78. transform: scaleY(0.5);
  79. }
  80. }
  81. .border-1px{
  82. &:after{
  83. -webkit-transform: scale(0.5);
  84. transform: scale(0.5);
  85. }
  86. }
  87. }
  88. .border-1px-bottom(){
  89. position: relative;
  90. &:after{
  91. display: block;
  92. position: absolute;
  93. left: 0;
  94. bottom: 0;
  95. width: 100%;
  96. border-top: 1px solid rgba(0,0,0,.1);
  97. content: ' ';
  98. }
  99. }
  100. .border-1px(){
  101. position: relative;
  102. margin-bottom: 20px;
  103. border:none;
  104. &:after{
  105. content: '';
  106. position: absolute;
  107. top: 0;
  108. left: 0;
  109. border: 1px solid rgba(0,0,0,.1);
  110. -webkit-box-sizing: border-box;
  111. box-sizing: border-box;
  112. width: 200%;
  113. height: 200%;
  114. -webkit-transform-origin: left top;
  115. transform-origin: left top;
  116. }
  117. }
  118. .border-none(){
  119. &:after{
  120. display: none;
  121. }
  122. }
  123. .flex-empty(){
  124. height:0 !important;;
  125. margin-top: 0 !important;;
  126. margin-bottom: 0 !important;
  127. padding-top: 0;
  128. padding-bottom: 0;
  129. border-image:none;
  130. border:none;
  131. &:after{
  132. display: none;
  133. }
  134. }