reset.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /*
  2. * @Date: 2019-11-18 16:41:12
  3. * @LastEditTime : 2020-01-11 15:25:32
  4. * @开 发: lancer
  5. * @版 本: 1.00
  6. * @页面描述: 重置样式表
  7. */
  8. /****************************** 自定义公共类 ***********************************/
  9. /* 清除浮动 */
  10. .r_clearfix::before,
  11. .r_clearfix::after {
  12. content: '';
  13. display: table;
  14. clear: both;
  15. }
  16. /* 怪异盒模型 */
  17. .r_moxing {
  18. box-sizing: border-box;
  19. }
  20. /* 块元素 */
  21. .r_block {
  22. display: block;
  23. }
  24. /* 盒模型布局一 */
  25. .r_flex {
  26. display: flex;
  27. }
  28. /* 盒模型布局一 以列排序 */
  29. .r_flex_wrap {
  30. display: flex;
  31. flex-direction: column;
  32. align-items: center;
  33. }
  34. /* 盒模型布局一(左右居中对齐) */
  35. .r_flex_center {
  36. display: flex;
  37. align-items: center !important;
  38. align-content: center !important;
  39. justify-content: center !important;
  40. }
  41. /* 盒模型布局二(左右对齐) */
  42. .r_flex_space {
  43. display: flex;
  44. align-items: center;
  45. align-content: center;
  46. justify-content: space-between;
  47. }
  48. /* 盒模型布局三(左右对齐) */
  49. .r_flex_column {
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. align-content: center;
  54. justify-content: center;
  55. }
  56. /* 盒模型布局 仅上下对其 */
  57. .r_flex_align {
  58. display: flex;
  59. align-items: center;
  60. }
  61. /* 绝对定位上下左右居中 */
  62. .r_absolute {
  63. position: absolute;
  64. top: 0px;
  65. left: 0px;
  66. right: 0px;
  67. bottom: 0px;
  68. margin: auto;
  69. }
  70. /* 块元素左右居中 */
  71. .r_margin {
  72. display: block;
  73. margin: 0 auto;
  74. }
  75. /* 块元素百分百 */
  76. .r_center {
  77. width: 100%;
  78. height: 100%;
  79. }
  80. /* 动画延迟 */
  81. .r_transform {
  82. transition: all 0.4s;
  83. }
  84. .r_transform5 {
  85. transition: all 0.7s;
  86. }
  87. .r_transform4 {
  88. transition: all 0.5s;
  89. }
  90. .r_transform3 {
  91. transition: all 0.3s;
  92. }
  93. .r_transform2 {
  94. transition: all 0.2s;
  95. }
  96. .r_transform1 {
  97. transition: all 0.1s;
  98. }
  99. /* ios滚动不流畅 */
  100. .r_iosscroll {
  101. overflow-y: auto;
  102. -webkit-overflow-scrolling: touch;
  103. }
  104. .r_text {
  105. /**
  106. 思路:
  107. 1.设置inline-block属相
  108. 2.强制不换行
  109. 3.固定高度
  110. 4.隐藏超出部分
  111. 5.显示“……”
  112. */
  113. display: block;
  114. white-space: nowrap;
  115. width: 100%;
  116. overflow: hidden;
  117. text-overflow: ellipsis;
  118. }
  119. .r_filter {
  120. filter: grayscale(100%);
  121. -moz-filter: grayscale(100%);
  122. -o-filter: grayscale(100%);
  123. -webkit-filter: grayscale(1);
  124. }
  125. /* 基本间距、边距 */
  126. .r_margin_10 {
  127. display: block;
  128. margin: 0 10px;
  129. }
  130. .r_margin_14 {
  131. display: block;
  132. margin: 0 14px;
  133. }
  134. .r_margin_18 {
  135. display: block;
  136. margin: 0 18px;
  137. }
  138. .r_margin_20 {
  139. display: block;
  140. margin: 0 20px;
  141. }
  142. .r_margin_22 {
  143. display: block;
  144. margin: 0 22px;
  145. }
  146. .r_margin_24 {
  147. display: block;
  148. margin: 0 24px;
  149. }
  150. /* 字体大小 */
  151. .r_size_12 {
  152. font-size: 12px;
  153. line-height: 12px;
  154. }
  155. .r_size_14 {
  156. font-size: 14px;
  157. line-height: 14px;
  158. }
  159. .r_size_16 {
  160. font-size: 16px;
  161. line-height: 16px;
  162. }
  163. .r_size_18 {
  164. font-size: 18px;
  165. line-height: 18px;
  166. }
  167. .r_size_20 {
  168. font-size: 20px;
  169. line-height: 20px;
  170. }
  171. .r_size_22 {
  172. font-size: 22px;
  173. line-height: 22px;
  174. }
  175. .r_size_24 {
  176. font-size: 24px;
  177. line-height: 24px;
  178. }
  179. .r_size_26 {
  180. font-size: 26px;
  181. line-height: 26px;
  182. }
  183. .r_size_28 {
  184. font-size: 28px;
  185. line-height: 28px;
  186. }
  187. .r_size_30 {
  188. font-size: 30px;
  189. line-height: 30px;
  190. }
  191. .r_size_32 {
  192. font-size: 32px;
  193. line-height: 32px;
  194. }
  195. .r_size_34 {
  196. font-size: 34px;
  197. line-height: 34px;
  198. }
  199. .r_size_36 {
  200. font-size: 36px;
  201. line-height: 36px;
  202. }
  203. .r_size_38 {
  204. font-size: 38px;
  205. line-height: 38px;
  206. }
  207. .r_size_40 {
  208. font-size: 40px;
  209. line-height: 40px;
  210. }
  211. /* 字体颜色 */
  212. .r_red {
  213. color: #fc2828;
  214. }
  215. .r_hui {
  216. color: #808080;
  217. }
  218. .hot,
  219. .icon-red {
  220. color: #ff0000;
  221. }
  222. .len {
  223. color: #12cbec;
  224. }
  225. /* 无法选择文字 */
  226. .r_text_none {
  227. user-select: none;
  228. }
  229. /****************************** 组件样式设置 ***********************************/