reset.css 4.1 KB

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