styles.less 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065
  1. ///------------------------------------- ├ 布局 ┆ └------------------------------------/
  2. // 盒子宽高
  3. .size(@w, @h) { width: @w; height: @h; }
  4. // 最小尺寸, 兼容IE6
  5. .min-width(@min-w) { min-width: @min-w; _width: @min-w; }
  6. .min-height(@min-h) { min-height: @min-h; _height: @min-h; }
  7. // 内联块级元素, 兼容IE6
  8. .dib() { display: inline-block; *display: inline; *zoom: 1; }
  9. // 固定定位, 兼容IE6
  10. .fixed() { position: fixed; _position: absolute; *zoom: 1; }
  11. //绝对定位
  12. .position(@position;@top;@right;@bottom;@left){
  13. position: @position;top: @top;right: @right;bottom:@bottom;left:@left;
  14. }
  15. // 统一盒模型
  16. .border-box() {
  17. *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
  18. }
  19. // 文字图片居中
  20. .center(text-x) { text-align: center; }
  21. .center(text-y) { display: table-cell; vertical-align: middle; }
  22. // 块级元素水平居中
  23. .center(auto-x) { display: block; margin-left: auto; margin-right: auto; }
  24. // 居中, 不确定尺寸, 不兼容 IE6
  25. .center(unknown) { position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; }
  26. .center(unknown-x) { position: absolute; left: 0; right: 0; margin-left: auto; margin-right: auto; }
  27. .center(unknown-y) { position: absolute; top: 0; bottom: 0; margin-top: auto; margin-bottom: auto; }
  28. // 居中, 确定尺寸, 兼容 IE6
  29. .center(known, @w, @h) {
  30. .size(@w, @h);
  31. position: absolute; top: 50%; left: 50%; margin-top: -(@w / 2); margin-left: -(@h / 2);
  32. }
  33. .center(known-x, @w) {
  34. width: @w;
  35. position: absolute; left: 50%; margin-left: -(@h / 2);
  36. }
  37. .center(known-y, @h) {
  38. height: @h;
  39. position: absolute; top: 50%; margin-top: -(@w / 2);
  40. }
  41. // 居中, CSS3 平移方式, 兼容性不行
  42. .center(translate) { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  43. // 居中, Flex 方式, 兼容性不行
  44. .center(flex) { display: flex; align-items: center; justify-content: center; }
  45. // 多个子项布局
  46. .list(float, @w: 25%) { float: left; width: @w; }
  47. .list(inline, @w: 25%) { .dib(); width: @w; }
  48. .list(flex) { flex: 1; }
  49. //圆角(1个参数)
  50. .radius(@width){
  51. .radius-t-l(@width);.radius-t-r(@width);.radius-b-l(@width);.radius-b-r(@width);
  52. }
  53. //圆角(四个参数)
  54. .radius(@a,@b,@c,@d){
  55. .radius-t-l(@a);.radius-t-r(@b);.radius-b-l(@c);.radius-b-r(@d);
  56. }
  57. //圆角左上
  58. .radius-t-l(@width){
  59. border-top-left-radius: @width;
  60. }
  61. //圆角右上
  62. .radius-t-r(@width){
  63. border-top-right-radius: @width;
  64. }
  65. //圆角左下
  66. .radius-b-l(@width){
  67. border-bottom-left-radius: @width;
  68. }
  69. //圆角右下
  70. .radius-b-r(@width){
  71. border-bottom-right-radius: @width;
  72. }
  73. //隐藏
  74. .hide(){
  75. display: none !important;
  76. }
  77. //显示
  78. .show(@status){
  79. display:@status !important;
  80. }
  81. // 遮罩层, 全屏遮罩、区域遮罩
  82. .over-screen(fixed) { .fixed(); top: 0; left: 0; right: 0; bottom: 0; }
  83. .over-screen(absolute) { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
  84. // 容器宽高比固定
  85. // 100* 1/1 = 100%
  86. // 100* 3/4 = 75%
  87. .fixed-ratio(@padding-top: 100%) {
  88. position: relative; width: 100%; height: 0; padding-top: @padding-top;
  89. img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  90. }
  91. // 扩展点击区域
  92. .extend-click() {
  93. position: relative;
  94. &:before { content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; }
  95. }
  96. // 定宽居中页面布局
  97. .layout-page(@width: 1200px) { width: @width; margin-left: auto; margin-right: auto; }
  98. // 侧边栏
  99. // 主要区域:overflow: hidden; margin-left: xx; margin-right: xx;
  100. .sidebar(left, @width) { position: absolute; top: 0; left: 0; width: @width; }
  101. .sidebar(right, @width) { position: absolute; top: 0; right: 0; width: @width; }
  102. ///------------------------------------- ├ 字体 ┆ └------------------------------------/
  103. // 字体大小
  104. .fz(@fz) { font-size: @fz; }
  105. // 字体大小与行高
  106. .fz(@fz, @lh) { font-size: @fz; line-height: @lh; }
  107. // 字体大小、行高、高度
  108. .fz(@fz, @h, @lh: @h) { font-size: @fz; height: @h; line-height: @lh; }
  109. // 宽
  110. .w(@w) {width: @w; }
  111. // 高
  112. .h(@h) {height: @h; }
  113. // 行高
  114. .lh(@lh) {line-height: @lh; }
  115. // 行高与高度
  116. .lh(@h, @lh: @h) { height: @h; line-height: @lh; }
  117. // 背景颜色
  118. .bgcolor(@color) {background-color: @color;}
  119. // 字体颜色, 包括链接与非链接
  120. .color(@color) { color: @color;}
  121. // 字体颜色 + 自身 Hover
  122. .color(@color, @hovercolor) {
  123. color: @color;
  124. &:hover { color: @hovercolor; }
  125. }
  126. // 字体颜色 + 链接 Hover
  127. .color(@color, @acolor, @hovercolor) {
  128. color: @color;
  129. a {
  130. color: @acolor;
  131. &:hover { color: @hovercolor; }
  132. }
  133. }
  134. // 正常字体样式
  135. .normal-font() { font-weight: normal; font-style: normal; }
  136. // 辅助性文字(灰色)
  137. .assist-font(@color: #b0b0b0, @fz: 14px) { color: @color; font-size: @fz; }
  138. // 禁止换行, 文本溢出省略号显示 (一行)
  139. .ellipsis() {
  140. white-space: normal; word-wrap: break-word; word-break: break-all;
  141. -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis; text-overflow:ellipsis; overflow:hidden;
  142. }
  143. // 文本溢出省略号显示 (多行)
  144. // 只支持 webkit 浏览器, 解决方案:高度 = 行高*行数
  145. // height: 90px; line-height: 30px; -webkit-line-clamp: 3;
  146. .ellipsis-mult(@n: 3) {
  147. display: -webkit-box; -webkit-box-orient: vertical;-webkit-line-clamp: @n; word-break: break-all;
  148. -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis; text-overflow:ellipsis; overflow: hidden;
  149. }
  150. // 书写模式:牌匾从右至左水平单行排版效果、文笺从右至左、从上至下排版效果
  151. .retext(x) { direction: rtl; unicode-bidi: bidi-override; }
  152. .retext(y) { writing-mode: tb-rl; writing-mode: vertical-rl; }
  153. // 文字透明
  154. .transparent-text() { font: 0/0 serif; text-shadow: none; color: transparent; }
  155. // 文字隐藏(常用于SEO优化)
  156. //
  157. .hidden-text() { text-indent : -9999px; overflow: hidden; text-align: left; }
  158. // 文字外发光效果
  159. .glow-text(@r: 10px, @color: gold) { text-shadow: 0 0 @r @color; }
  160. ///------------------------------------- ├ 图像 ┆ └------------------------------------/
  161. // 用 max-width 来防止图片撑破容器
  162. .max-img() { display: block; max-width: 100%; height: auto; }
  163. // 2x 3x 背景图片
  164. .bg-image(@url) {
  165. background-image: url("@url + '@2x.png'");
  166. @media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  167. background-image: url("@url + '@3x.png'");
  168. }
  169. }
  170. // 全屏大图背景
  171. .fullscreen-bg(@url) {
  172. width: 100vw;
  173. height: 100vh;
  174. background: url(@url) no-repeat 50% 50%;
  175. background-size: cover;
  176. }
  177. // 滤镜: 将彩色照片显示为黑白照片
  178. .grayscale() {
  179. filter: grayscale(100%);
  180. -webkit-filter: grayscale(100%);
  181. -moz-filter: grayscale(100%);
  182. -ms-filter: grayscale(100%);
  183. -o-filter: grayscale(100%);
  184. }
  185. ///------------------------------------- ├ 动效 ┆ └------------------------------------/
  186. // 链接默认无下划线,hover后有下划线的样式
  187. .hover-link() {
  188. text-decoration: none;
  189. &:hover { text-decoration: underline; }
  190. }
  191. // 将链接变成默认的文字样式
  192. .unstyled-link() {
  193. color: inherit;
  194. cursor: inherit;
  195. text-decoration: inherit;
  196. &:active, &:focus { outline: none; }
  197. }
  198. // 盒子阴影
  199. // box-shadow: 水平阴影的位置, 垂直阴影的位置, 模糊距离, 阴影的大小, 阴影的颜色, 阴影开始方向(默认是从里往外,设置inset就是从外往里);
  200. // box-shadow: h-shadow v-shadow blur spread color inset;
  201. .box-shadow(@h;@v;@blur;@spread;@color;@inset) {
  202. -webkit-box-shadow: @h @v @blur @spread @color @inset;
  203. -moz-box-shadow: @h @v @blur @spread @color @inset;
  204. -ms-box-shadow: @h @v @blur @spread @color @inset;
  205. box-shadow: @h @v @blur @spread @color @inset;
  206. }
  207. // 盒子 Hover
  208. .box-hover() {
  209. // box-shadow: 0px 1px 2px 0px rgba(84, 107, 107, .4);
  210. transition: all .2s linear;
  211. &:hover {
  212. box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
  213. transform: translate3d(0, -2px, 0);
  214. }
  215. }
  216. .box-hover2() {
  217. transition: transform .5s ease;
  218. &:hover {
  219. transform: translateX(10px);
  220. }
  221. }
  222. // 三维闪动 bug 处理
  223. .transform-fix() { -webkit-backface-visibility: hidden; -webkit-transform-style: preserve-3d; }
  224. // Animation
  225. .ani(@name, @time: 1s, @ease: ease-in-out, @fillmode: forwards) {
  226. animation-name: @name;
  227. animation-duration: @time;
  228. animation-timing-function: @ease;
  229. animation-fill-mode: @fillmode;
  230. }
  231. ///------------------------------------- ├ 功能 ┆ └------------------------------------/
  232. // 浮动, 兼容 IE6
  233. .fl() { float: left; *display: inline; _display:inline; }
  234. .fr() { float: right; *display: inline; _display:inline; }
  235. // 清除浮动
  236. .clearfix() {
  237. *zoom: 1;
  238. &:after { display: block; clear: both; content: ''; visibility: hidden; height: 0; }
  239. }
  240. .clearfix(table) {
  241. *zoom: 1;
  242. &:before, &:after { content: " "; display: table; clear: both; }
  243. }
  244. // 禁止文本被选择
  245. .user-select() { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
  246. // 隐藏鼠标手势
  247. .hide-cursor() { cursor: none !important; }
  248. // 鼠标禁用样式,但仍然可以触发事件
  249. //
  250. .disabled() { cursor: not-allowed; }
  251. // 禁用元素事件
  252. // 1. 阻止任何点击动作的执行
  253. // 2. 使链接显示为默认光标(cursor:default)
  254. // 3. 阻止触发hover和active状态
  255. // 4. 阻止JavaScript点击事件的触发
  256. .pointer-events() { pointer-events: none; }
  257. // 模糊
  258. .blur(@blur: 10px) {
  259. filter: blur(@blur);
  260. -webkit-filter: blur(@blur);
  261. -moz-filter: blur(@blur);
  262. -o-filter: blur(@blur);
  263. -ms-filter: blur(@blur);
  264. filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='@{blur}');
  265. *zoom: 1;
  266. }
  267. // 透明度, 兼容 IE8
  268. .opacity(@opacity: 20) { opacity: @opacity / 100; filter: alpha(opacity=@opacity); }
  269. // 用伪类来显示打印时 a 标签的链接
  270. .print-link() {
  271. @media print {
  272. a[href]:after { content: " (" attr(href) ") "; }
  273. }
  274. }
  275. // 隔行换色
  276. .zebra-lists(odd, @color) {
  277. &.odd {
  278. >li:nth-child(odd) { background-color: @color; }
  279. }
  280. }
  281. .zebra-lists(even, @color) {
  282. &.even {
  283. >li:nth-child(even) { background: green; }
  284. }
  285. }
  286. // 首字下沉
  287. .first-letter(@font-size: 6em) {
  288. &::first-letter{
  289. float: left;
  290. line-height: 1;
  291. font-size: @font-size;
  292. }
  293. }
  294. // 特殊标记段落第一行
  295. .first-line() {
  296. &::first-line{
  297. color: red
  298. }
  299. }
  300. // 美化选中文本
  301. .beauty-select() {
  302. &::selection{
  303. color: #fff;
  304. background-color: #6bc30d;
  305. text-shadow: none;
  306. }
  307. }
  308. // 美化占位符 placeholder 样式
  309. .beauty-placeholder(@fz, @color: #999, @align: left) {
  310. &:-moz-placeholder { font-size: @fz; color: @color; text-align: @align; }
  311. &:-ms-input-placeholder { font-size: @fz; color: @color; text-align: @align; }
  312. &::-webkit-input-placeholder { font-size: @fz; color: @color; text-align: @align; }
  313. }
  314. // 美化占位符 placeholder 样式(自定义属性和值)
  315. .beauty-placeholder(custom, @property, @value) {
  316. &:-moz-placeholder { @{property}: @value; }
  317. &:-ms-input-placeholder { @{property}: @value; }
  318. &::-webkit-input-placeholder { @{property}: @value; }
  319. }
  320. ///------------------------------------- ├ 图形 ┆ └------------------------------------/
  321. // 三角形
  322. .triangle(@width: 4px,@color: #000) {
  323. display: inline-block;
  324. width: 0;
  325. height: 0;
  326. vertical-align: middle;
  327. border-top: @width solid @color;
  328. border-left: @width solid transparent;
  329. border-right: @width solid transparent;
  330. }
  331. // 三角形箭头气泡效果, IE6-7 无表现
  332. .arrow(top, @w: 10px, @color, @x: 50%) {
  333. position: relative;
  334. &:before { position: absolute; bottom: 100%; left: @x; content: " "; height: 0; width: 0; pointer-events: none; border-style: solid; border-color: transparent; border-bottom-color: @color; border-width: unit(@w, px); @margin: -@w; margin-left: unit(@margin, px); }
  335. }
  336. .arrow(right, @w: 10px, @color, @y: 50%) {
  337. position: relative;
  338. &:before { position: absolute; left: 100%; top: @y; content: " "; height: 0; width: 0; pointer-events: none; border-style: solid; border-color: transparent; border-left-color: @color; border-width: unit(@w, px); @margin: -@w; margin-top: unit(@margin, px); }
  339. }
  340. .arrow(bottom, @w: 10px, @color, @x: 50%) {
  341. position: relative;
  342. &:before { position: absolute; top: 100%; left: @x; content: " "; height: 0; width: 0; pointer-events: none; border-style: solid; border-color: transparent; border-top-color: @color; border-width: unit(@w, px); @margin: -@w; margin-left: unit(@margin, px); }
  343. }
  344. .arrow(left, @w: 10px, @color, @y: 50%) {
  345. position: relative;
  346. &:before { position: absolute; right: 100%; top: @y; content: " "; height: 0; width: 0; pointer-events: none; border-style: solid; border-color: transparent; border-right-color: @color; border-width: unit(@w, px); @margin: -@w; margin-top: unit(@margin, px); }
  347. }
  348. // 三角形箭头气泡效果, 带边框
  349. .arrow-with-border(top, @w: 10px, @color, @border-w: 1px, @border-color, @x: 50%) {
  350. position: relative;
  351. &:before, &:after { bottom: 100%; left: @x; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-style: solid; border-color: transparent; }
  352. &:after { border-bottom-color: @color; border-width: unit(@w, px); @margin: -@w; margin-left: unit(@margin, px); }
  353. &:before { border-bottom-color: @border-color; @arrbo: @w+@border-w; border-width: unit(@arrbo, px); @margin-bo: -@arrbo; margin-left: unit(@margin-bo, px); }
  354. }
  355. .arrow-with-border(bottom, @w: 10px, @color, @border-w: 1px, @border-color, @x: 50%) {
  356. position: relative;
  357. &:before, &:after { top: 100%; left: @x; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-style: solid; border-color: transparent; }
  358. &:after { border-top-color: @color; border-width: unit(@w, px); @margin: -@w; margin-left: unit(@margin, px); }
  359. &:before { border-top-color: @border-color; @arrbo: @w+@border-w; border-width: unit(@arrbo, px); @margin-bo: -@arrbo; margin-left: unit(@margin-bo, px); }
  360. }
  361. .arrow-with-border(left, @w: 10px, @color, @border-w: 1px, @border-color, @y: 50%) {
  362. position: relative;
  363. &:before, &:after { top: @y; right: 100%; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-style: solid; border-color: transparent; }
  364. &:after { border-right-color: @color; border-width: unit(@w, px); @margin: -@w; margin-top: unit(@margin, px); }
  365. &:before { border-right-color: @border-color; @arrbo: @w+@border-w; border-width: unit(@arrbo, px); @margin-bo: -@arrbo; margin-top: unit(@margin-bo, px); }
  366. }
  367. .arrow-with-border(right, @w: 10px, @color, @border-w: 1px, @border-color, @y: 50%) {
  368. position: relative;
  369. &:before, &:after { top: @y; left: 100%; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-style: solid; border-color: transparent; }
  370. &:after { border-left-color: @color; border-width: unit(@w, px); @margin: -@w; margin-top: unit(@margin, px); }
  371. &:before { border-left-color: @border-color; @arrbo: @w+@border-w; border-width: unit(@arrbo, px); @margin-bo: -@arrbo; margin-top: unit(@margin-bo, px); }
  372. }
  373. ///------------------------------------- ├ 组件 ┆ └------------------------------------/
  374. // 吸顶导航
  375. .fix-header(@h: 70px) {
  376. .fixed();
  377. top: 0;
  378. left: 0;
  379. width: 100%;
  380. height: @h;
  381. z-index: 1000;
  382. // background-color: rgba(256, 256, 256, .92);
  383. // border-bottom: 1px solid rgba(7, 17, 27, 0.1);
  384. // box-shadow: 0px 0px 20px rgba(0,0,0,0.2);
  385. }
  386. // 吸底导航
  387. .fix-header(@h: 70px) {
  388. .fixed();
  389. left: 0;
  390. bottom: 0;
  391. width: 100%;
  392. height: @h;
  393. z-index: 1000;
  394. }
  395. // 输入框
  396. .input-text() {
  397. display: block;
  398. width: 100%;
  399. padding: 4px 8px;
  400. font-size: 14px;
  401. line-height: 1.42858;
  402. color: #333;
  403. border: 1px solid #ddd;
  404. background-color: #fff;
  405. border-radius: 3px;
  406. }
  407. // 分割线
  408. // |/-
  409. .separator() {
  410. margin: 0 10px;
  411. color: #999;
  412. font-size: 14px;
  413. }
  414. // 分割线 / (面包屑导航)
  415. .separator2() {
  416. &:before {
  417. padding: 0 5px;
  418. color: #ccc;
  419. content: "/\00a0";
  420. }
  421. }
  422. //
  423. // 支付宝:我也是有底线的
  424. .hr() {
  425. height: 1px;
  426. margin: 10px 0;
  427. border: 0;
  428. clear: both;
  429. background-color: #e2e2e2;
  430. }
  431. // 改装的 fieldset
  432. //
  433. //返璞归真
  434. .fieldset() {
  435. border-color: #d2d2d2;
  436. border-width: 1px 0 0;
  437. border-style: solid;
  438. legend {
  439. padding: 0 20px;
  440. text-align: center;
  441. font-size: 20px;
  442. font-weight: 300;
  443. }
  444. }
  445. // 引用区块(模仿 Layui)
  446. //
  447. //Lorem ipsum dolor sit amet.
  448. .blockquote() {
  449. margin-bottom: 10px;
  450. padding: 15px;
  451. line-height: 22px;
  452. border-left: 5px solid #009688;
  453. border-radius: 0 2px 2px 0;
  454. background-color: #f2f2f2;
  455. }
  456. // 徽章 (椭圆、小圆点)
  457. // 10
  458. .badge(...) {
  459. position: relative;
  460. display: inline-block;
  461. font-size: 12px;
  462. color: #fff;
  463. background-color: #FF5722;
  464. }
  465. .badge(ellipse) {
  466. min-width: 8px;
  467. height: 18px;
  468. padding: 2px 6px;
  469. text-align: center;
  470. line-height: 18px;
  471. border-radius: 9px;
  472. }
  473. .badge(dot) {
  474. width: 8px;
  475. height: 8px;
  476. border-radius: 50%;
  477. }
  478. // 关闭按钮
  479. // ×
  480. .close() {
  481. position: relative;
  482. -webkit-appearance: none;
  483. padding: 0;
  484. cursor: pointer;
  485. background: 0 0;
  486. border: 0;
  487. font-size: 20px;
  488. font-weight: 700;
  489. line-height: 1;
  490. color: #000;
  491. text-shadow: 0 1px 0 #fff;
  492. filter: alpha(opacity=20);
  493. opacity: .2;
  494. &:hover {
  495. color: #000;
  496. text-decoration: none;
  497. cursor: pointer;
  498. filter: alpha(opacity=50);
  499. opacity: .5;
  500. }
  501. &:before {
  502. content: '';
  503. position: absolute;
  504. top: -10px;
  505. left: -10px;
  506. right: -10px;
  507. bottom: -10px;
  508. }
  509. }
  510. // 1 像素边框问题
  511. .onepx(...) {
  512. position: relative;
  513. &:after {
  514. content: '';
  515. display: block;
  516. position: absolute;
  517. left: 0;
  518. width: 100%;
  519. border-top: 1px solid rgba(7, 17, 27, 0.1);
  520. transform: scaleY(0.5);
  521. }
  522. }
  523. .border-l(@width){
  524. border-left:@width;
  525. }
  526. .border-l(@width;@style;@color){
  527. border-left:@width @style @color;
  528. }
  529. .border-r(@width){
  530. border-right:@width;
  531. }
  532. .border-r(@width;@style;@color){
  533. border-right:@width @style @color;
  534. }
  535. .border-t(@width){
  536. border-top:@width;
  537. }
  538. .border-t(@width;@style;@color){
  539. border-top:@width @style @color;
  540. }
  541. .border-b(@width){
  542. border-bottom:@width;
  543. }
  544. .border-b(@width;@style;@color){
  545. border-bottom:@width @style @color;
  546. }
  547. //边框
  548. .border(@width) {
  549. border: @width;
  550. }
  551. .border(@width;@style;@color) {
  552. border: @width @style @color;
  553. }
  554. .p-t(@width){
  555. padding-top:@width;
  556. }
  557. .p-r(@width){
  558. padding-right:@width;
  559. }
  560. .p-b(@width){
  561. padding-bottom:@width;
  562. }
  563. .p-l(@width){
  564. padding-left:@width;
  565. }
  566. .pd(@width){
  567. .p-t(@width);.p-r(@width);.p-b(@width);.p-l(@width);
  568. }
  569. .pd(@top;@right;@bottom;@left){
  570. .p-t(@top);.p-r(@right);.p-b(@bottom);.p-l(@left);
  571. }
  572. .m-t(@width){
  573. margin-top: @width;
  574. }
  575. .m-r(@width){
  576. margin-right: @width;
  577. }
  578. .m-b(@width){
  579. margin-bottom: @width;
  580. }
  581. .m-l(@width){
  582. margin-left: @width;
  583. }
  584. .mg(@width){
  585. .m-t(@width);.m-r(@width);.m-b(@width);.m-l(@width);
  586. }
  587. .mg(@top;@right;@bottom;@left){
  588. .m-t(@top);.m-r(@right);.m-b(@bottom);.m-l(@left);
  589. }
  590. .onepx(top) { &:after { top: 0; } }
  591. .onepx(bottom) { &:after { bottom: 0; } }
  592. .onepx-easy(top, @color: #ccc) { box-shadow: inset 0px -1px 1px -1px @color; }
  593. .onepx-easy(bottom, @color: #ccc) { box-shadow: inset 0px 1px 1px -1px @color; }
  594. //页面css开始
  595. body{.fz(15px);.bgcolor(#fff);}
  596. .mui-content{.bgcolor(#fff);}
  597. ul{list-style: none;.pd(0);.mg(0);}
  598. #cnzz_stat_icon_1260421959{display:none;}
  599. .my-slider-indicator{.pd(0,10px,0,10px);}
  600. .my-slider-indicator .mui-indicator{.bgcolor(#fff);.box-shadow(0,0,1px,1px,rgba(0,0,0,.1),outset);.w(10px);.radius(4px);}
  601. .chanpin-box.mui-grid-9{.bgcolor(#fff);.mg(10px);.w(auto);.border(0);.radius(3px);overflow: hidden;}
  602. .chanpin-box.mui-grid-9 .mui-table-view-cell {
  603. .pd(0);vertical-align: middle;.border-r(0);.border-b(0);
  604. }
  605. .my-table-view-order{
  606. &>li{position: relative;.p-b(0);}
  607. & .mui-col-xs-6{.fz(15px);}
  608. &>li:after{content: '';.position(absolute;auto;14px;0;14px);.h(1px);.bgcolor(#ccc);-webkit-transform: scaleY(.5);}
  609. }
  610. #pro-menu{
  611. top: 0;.border(0);.border-b(1px;solid;rgba(0,0,0,.1));.radius(0);.pd(0);
  612. .mui-control-item{
  613. span.iconfont{position: absolute;left: 50%;top: 5px;-webkit-transform: translateX(-50%);font-size: 20px;}
  614. .color(#999);
  615. .border-l(0);
  616. position: relative;
  617. vertical-align: bottom;
  618. .lh(64px;34px);
  619. .fz(14px);
  620. &:after{content:'';.position(absolute;auto;auto;0;50%);.m-l(-14px);.w(28px);.h(1px);.bgcolor(transparent);.h(2px);};
  621. &:first-child{.border-l(0)}
  622. &.mui-active{.bgcolor(#fff);&:after{.bgcolor(#5882f7)}.color(#5882f7);};
  623. }
  624. }
  625. .steps{
  626. &>li{
  627. float: left;position: relative;.bgcolor(#999);.size(55px;55px);.lh(55px);.center(text-x);.radius(55px);.color(#fff);.mg(0,5px,0,5px);
  628. }
  629. &>li.active{.bgcolor(#5882f7);}
  630. }
  631. .pro-cp-list{
  632. position: relative;.p-l(3.5em);
  633. &:before{content: '采购产品:';.position(absolute,0,auto,auto,0);.fz(2px);.color(#999);}
  634. &>li{.fz(12px);.color(#999);}
  635. }
  636. .pro-bz-list{
  637. position: relative;.p-l(3.5em);
  638. &:before{content: '提货备注:';.position(absolute,0,auto,auto,0);.fz(2px);.color(#999);}
  639. &>li{.fz(12px);.color(#999);}
  640. }
  641. .express{.color(#ed6a5e);}
  642. .my-confirm-btn{
  643. min-width: 100px;
  644. .radius(20px);.border(1px,solid,#63ccde);.color(#63ccde);.pd(6px,14px,6px,14px);
  645. &:active{.bgcolor(#63ccde);.color(#fff);}
  646. }
  647. .pro-li-tit{.m-b(5px);}
  648. .top-center{vertical-align:top !important;}
  649. .middle-center{vertical-align:middle !important;}
  650. .dalog-center{.w(320px);.h(240px);.position(absolute,50%,auto,auto,50%);.m-l(-160px);.m-t(-120px);.bgcolor(#fff);.center(text-x);.pd(15px,0,0,0);.radius(10px);
  651. & .title{font-size: 18px;}
  652. & .mui-table-view-cell.mui-active{.bgcolor(#fff);}
  653. }
  654. .dalog-btn{.border(1px,solid,#5882f7);.w(80px);.h(80px);.lh(80px,80px);display: inline-block;.radius(50%);.mg(35px,0,10px,0);
  655. & .iconfont{font-size: 35px;}
  656. }
  657. .my-view-no:after,.my-view-no:before{display: none;}
  658. .my-table-view-order{
  659. &>li .my-view-no{.pd(10px,10px,10px,0);}
  660. &>li .my-view-no:after,&>li .my-view-no:before{display: none;}
  661. }
  662. #pullrefresh_list{top: 125px;}
  663. .search-text{margin-bottom: 0 !important;font-size: 14px;border: 1px solid rgba(0,0,0,.1) !important;border-radius: 7px !important;}
  664. .search-text::-webkit-input-placeholder {color:#ddd;}
  665. .my-sousuo{position: absolute;right:0;top: 10px;padding: 10px 15px;color: #666;font-size: 22px;}
  666. .my-sousuo.active{color: #5882f7;}
  667. .no-after:after{display: none;}
  668. .mui-pull-caption{.fz(12px);}
  669. .cl-green{.color(#62c755);}
  670. .cl-blue{.color(#5882f7);}
  671. .my-table-view-order .cl-green,.my-table-view-order .cl-red{font-size: 12px;}
  672. .my-table-view-order h5{color: #333;margin: 7px 0;}
  673. .order-content{margin: 10px 0;}
  674. .add-btn{
  675. .color(#5882f7);.hide();.border(0);.bgcolor(#dee6fd);.w(60px);.center(text-x);.lh(60px,1.2);.pd(12px;10px;10px;10px);.radius(60px);.position(fixed,auto,12px,30px,auto);z-index: 3;
  676. &.active{.show(block);};
  677. }
  678. .chanpin-text{text-align: left;.pd(0,10px,0,10px);}
  679. .chanpin-box{
  680. &.mui-grid-9 .mui-table-view-cell>a:not(.mui-btn){.pd(0);}
  681. & .mui-col-xs-6{display: inline-block;}
  682. & .bg-blue{.bgcolor(#a8ebf7);line-height: 0;}
  683. }
  684. .add-dalog{.position(fixed,0,0,0,0);.w(100%);.h(100%);.bgcolor(rgba(0,0,0,.5));z-index: 5;.hide();
  685. &.active{.show(block);}
  686. }
  687. .my-btn-red{width: 90px;padding:5px 10px;line-height: 1.42 !important;background: #e4004d;color: #fff;border: 0;border-radius: 5px;}
  688. .prev{position: absolute;left:0;top: 50%;margin-top: -20px; width: 40px;height: 40px;line-height: 30px; padding:5px 0;text-align: left;font-size:30px;color: #ccc;}
  689. .next{position: absolute;right:0;top: 50%;margin-top: -20px; width: 40px;height: 40px;line-height: 30px; padding:5px 0;text-align: right;font-size:30px;color: #f64e78;}
  690. .my-table-view {background-color:transparent;padding: 0 10px 0 0 !important;}
  691. .my-table-view .mui-table-view-cell{padding: 5px 0 0 14px !important;}
  692. .my-table-view:before{height: 0;}
  693. .my-table-view:after{height: 0;}
  694. .my-content-padded{overflow: hidden;}
  695. .my-content-padded img{width: 100%;border-radius: 5px;}
  696. .iconfont .mui-badge {font-size: 10px;line-height: 1.3;position: absolute;top:-3px;right: 28%;padding: 1px 5px;color: #fff;background: red;}
  697. .mui-bar-tab~.mui-content{padding-bottom: 50px !important;}
  698. #footer-bar{background-color: #fff;-webkit-box-shadow: 0 0 1px rgba(0,0,0,.45);box-shadow: 0 0 1px rgba(0,0,0,0.45)}
  699. #footer-bar .mui-tab-label{font-size: 12px;}
  700. #footer-bar .mui-tab-item{vertical-align: bottom;color:#a6c8ce;}
  701. #footer-bar .mui-tab-item.mui-active{color: #24cae9;}
  702. #footer-bar .mui-tab-item.mui-active .icon-home:before{content: "\e668";}
  703. #footer-bar .mui-tab-item.mui-active .icon-gouwuche:before{content: "\e66a";}
  704. #footer-bar .mui-tab-item.mui-active .icon-dingdan:before{content: "\e664";}
  705. #footer-bar .mui-tab-item.mui-active .icon-vip:before{content: "\e669";}
  706. .loading-bg{width: 100%;min-width:100%;height: 100%;min-height:100%; background-color:#F0F0F0;position: fixed;left: 0;top: 0;z-index: 999;}
  707. .loading-bg .mui-loading{margin-top: 50%;text-align: center;color: #aaa;}
  708. .go-index{float: left;width: 35%;margin-right:1%;}
  709. .go-index img{width: 85%;padding-top: 5px;margin-left: 12px;max-height: 42px;max-width: 135px;}
  710. .header{padding: 7px 0;height: 55px;}
  711. .marquee-show{position: fixed;top: 0;left: 0;background: rgba(255,255,255,.7);z-index: 99;white-space: nowrap;height: 40px;line-height: 40px;padding: 0 10px;color: #ba405b;width:100%;}
  712. .marquee-show div{position: fixed;top: 0;left: 0;;height: 40px;line-height: 40px;width:100%;background: url(http://static.iamberry.com/watero/images/shop/marquee.png) center center /100% auto no-repeat;}
  713. .marquee_cart{padding: 8px 10px;
  714. background: #fff;
  715. color: #ba405b;
  716. border-top: 1px solid rgba(0,0,0,.1);}
  717. .search-box .mui-input-row:first-child{display: inline-block;width: 58%;}
  718. .search-box .mui-input-row:last-child{display: inline-block;width:37%;}
  719. .search-box .mui-input-row:last-child input{height: 39px !important;}
  720. .search-box .mui-input-row input{margin-bottom: 0;}
  721. .my-search{width: 50%;display: inline-block;padding-top: 3px;}
  722. .my-search.mui-active{color: #55c0dc;}
  723. .mui-bar .my-search input[type=search]{margin:2px 0;padding:16px 25px;border-radius: 25px !important;background-color: #d8edf4;color: #000;}
  724. .my-search .mui-placeholder .mui-icon-search{margin-left:0;margin-right:0;color: #55c0dc;}
  725. .my-search .mui-placeholder{text-align: right;}
  726. .box-list-card{display: inline-block;width: 14%;float: right;padding:10px 0;color: #55c0dc;text-align: center;}
  727. .mui-bar-nav~.mui-content {padding-top: 55px;}
  728. .wh-100{width:100px !important;max-width:100px !important; height:100px !important;line-height:100px;margin-top: 0;overflow: hidden;}
  729. .wh-80{width: 80px !important;max-width: 80px !important; height: 80px !important;margin:5px 5px 0 5px;overflow: hidden;display: inline-block;text-align: center;}
  730. .wh-80 img{height:80px;}
  731. .wh-50 {width: 50px !important;max-width: 50px !important;height: 50px !important;line-height: 50px;border-radius: 50%;margin: 0;}
  732. .icon-r-c{color:#aaa;position:absolute;right:8px;top:50%;-webkit-transform: translateY(-50%);}
  733. .mui-icon-forward{color:#aaa;}
  734. .gwc-tit {color: #333;font-size: 15px;}
  735. .wt-space {white-space: pre-wrap !important;}
  736. .gwc-pp {color: #999;}
  737. .ft-12 {font-size: 12px;}
  738. .ft-13 {font-size: 12px;}
  739. .price-sp {color: #e4004d;font-size:16px;margin-right: 15px;}
  740. .shop-price{padding:0;text-align: left;}
  741. .shop-price s{font-size: 12px;color: #d0d0d0;}
  742. .tab-with-chanpin-list {background: #fff;border: 0;margin-top: 55px;z-index: 10;}
  743. .tab-with-chanpin-list .mui-control-item {
  744. line-height: 1;
  745. height: 50px;
  746. vertical-align: bottom;
  747. border: 0;
  748. border-bottom: 2px solid transparent;
  749. color: #bfbfbf;
  750. background-color: transparent !important;
  751. padding-bottom: 3px;
  752. position: relative;
  753. }
  754. .tab-with-chanpin-list .iconfont{
  755. min-width: 25px;
  756. min-height: 25px;
  757. position: absolute;
  758. top: 2px;
  759. left: 50%;
  760. -webkit-transform: translateX(-50%);
  761. transform: translateX(-50%);
  762. }
  763. .tab-with-chanpin-list .mui-control-item.mui-active {
  764. background-color: transparent !important;
  765. border-bottom: 2px solid #55c0dc !important;
  766. color: #55c0dc;
  767. }
  768. #pullrefresh_chanpin_list{padding-top: 106px;}
  769. #pullrefresh_chanpin_list .mui-table-view-cell{border-bottom: 10px solid #f5f7f9;margin-right: 0;}
  770. #pullrefresh_chanpin_list .mui-table-view-chevron .mui-table-view-cell:last-child{border-bottom: 0;}
  771. #pullrefresh_chanpin_list .mui-table-view-cell:after{display: none;}
  772. #pullrefresh_chanpin_list .mui-grid-view{padding: 0;}
  773. #pullrefresh_chanpin_list .mui-grid-view .mui-table-view-cell>a{background: #fff;}
  774. #pullrefresh_chanpin_list .mui-grid-view .mui-table-view-cell:nth-of-type(odd){border-right: 5px solid #f5f7f9;}
  775. #pullrefresh_chanpin_list .mui-grid-view .mui-table-view-cell:nth-of-type(even){border-left: 5px solid #f5f7f9;}
  776. #pullrefresh_chanpin_list .mui-grid-view .mui-table-view-cell:nth-of-type(odd):last-child{border-bottom: 0;}
  777. #pullrefresh_chanpin_list .mui-table-view-chevron .wh-100{padding: 8px 0;}
  778. .btn-box{display: inline-block;position: absolute;right:0;bottom:12px;width:100%;text-align: left;padding-left:120px;}
  779. #pullrefresh_chanpin_list .mui-grid-view .btn-box{position: relative;bottom: auto;right: auto; padding-left: 0;}
  780. .my-btn-orange{background: #fff;border: 1px solid #55c0dc;border-radius:4px;color: #55c0dc;}
  781. .my-btn-orange:active{background:#ffa13d !important;}
  782. #pullrefresh_chanpin_list .my-btn-danger{width: 55%;}
  783. .my-btn-danger{background: #55c0dc;border: 1px solid transparent;border-radius: 4px;color: #fff;padding: 6px 18px;margin-right: 8px;}
  784. #pullrefresh_chanpin_list .mui-grid-view .my-btn-danger{margin-right: 0;width: 70%;margin-bottom: 15px;}
  785. .my-btn-danger:active{background: #236d89 !important;}
  786. .my-btn-joincart{border:1px solid #55c0dc;color: #55c0dc;padding-left: 5px;padding-right:4px;font-size: 22px;}
  787. #pullrefresh_chanpin_list .mui-grid-view .my-btn-joincart{float: right;margin-right: 4%;}
  788. .mui-table-view-cell:after{left: 0;}
  789. .mui-content>.mui-table-view:first-child{margin-top: 0;}
  790. .food-tt {color: #333;padding: .5em 0;background: #fff;}
  791. .food-tt>div:first-child {float:left;width: 78%;padding: 0 .8em;}
  792. .food-tt>div:last-child {display: inline-block;width: 20%;text-align: center;position: relative;padding-top: 5px;max-width: 80px;font-size: 16px;}
  793. .del-s {font-size: 12px;color: #ccc;position: absolute;right: 5px;}
  794. .bg-f{background: #fff;}
  795. .cl-baoyou{color: #e4004d; margin-left: 10px;font-size:24px;}
  796. .food-tt>div:last-child:after {content: '';position: absolute;left: 0;top: 10%;width: 1px;height: 80%;background-color: rgba(0,0,0,.15);}
  797. #detail-slider{border-bottom: 1px solid rgba(228,0,77,.5);}
  798. #tabbar-chanpin-details{background: #fff;border: 0;height: 50px;}
  799. #tabbar-chanpin-details .mui-control-item{color:#444;font-weight: 500;border-left: 0;border-bottom: 2px solid transparent;line-height: 50px;font-size: 18px;}
  800. #tabbar-chanpin-details .mui-control-item.mui-active{color: #55c0dc;border-bottom: 2px solid #55c0dc;background-color: #fff;}
  801. .go-video{background: #fff3cb;padding: 10px;position: relative;}
  802. .go-video .icon-guanbi{color: #ffb72c;}
  803. .see-2wm{background: #fef6df;padding: 10px;position: relative;color: #e4004d;}
  804. .btn-see-2wm{position: absolute;right: 10px;top: 14px;color: #444;font-size: 14px;}
  805. .see-2wm .icon-guanbi{color: #e4004d;}
  806. .video-right{position: absolute;right:0;top:0;width: 52px;padding: 13px 10px 10px 30px;}
  807. .video-right img{width: 100%;}
  808. .chanpin-ditails-dic{padding: 10px;background: #fff;margin: 10px 0 65px 0;color: #444;}
  809. .chanpin-ditails-dic ul li{padding: 3px 0;}
  810. .buy-footer {position: fixed;bottom: 0;left: 0;height: 55px;background-color: #f0f0f0;width: 100%;padding: 0;display: table;text-align: center;}
  811. .buy-footer>div:first-child {display: table-cell;width: 40%;border-top: 1px solid #55c0dc;vertical-align: middle;}
  812. .buy-footer>div:first-child img{width: 80%;padding-top: 3px;}
  813. .buy-footer>div:nth-of-type(2) {display: table-cell;width: 30%;background: #a6c8ce;font-size: 18px;color: #fff;vertical-align: middle;}
  814. .buy-footer>div:last-child {display: table-cell;width: 30%;background: #55c0dc;font-size: 18px;color: #fff;vertical-align: middle;}
  815. #gwc_list .mui-table-view-cell {padding: 15px 10px;}
  816. .gwc_null {padding: 12% 0 8% 0;text-align: center;display: none;}
  817. .shoping-tt {padding: 0 12px 60px 12px;position: relative;}
  818. .shoping-tt .left img,.shoping-tt .right img{width: 100%;}
  819. .shoping-tt .left{position: absolute;left: 0;top: 0;font-size: 0;}
  820. .shoping-tt .right{position: absolute;right: 0;top: 0;font-size: 0;}
  821. .tt-yf {position: relative;padding: .8em 12px;}
  822. .tt-yf .my-btn-danger{position: absolute;right: 12px; top:6px;}
  823. .del {position: absolute;right: 8px;bottom:16px;}
  824. .price_sp {color: #e4004d;font-size: 18px;margin-right: 10px;}
  825. .ft-24 {font-size: 28px;}
  826. .mt-7 {margin-top: .7em;}
  827. .jifen {position: absolute;left: 0;top: 0;width: 50px;height: 50px;}
  828. .jifen img {width: 100%;}
  829. .buy-footer1 {position: fixed;bottom: 0;left: 0;height: 50px;background-color: #f0f0f0;width: 100%;padding: 0;}
  830. .price{padding: 4px 0;}
  831. .price small{color: #666;}
  832. .buy-footer1:after {position: absolute;top: 0;left: 0;content: '';height: 1px;width: 100%;background-color: #55c0dc;-webkit-transform: scaleY(.5);transform: scaleY(.5);}
  833. .tb-clearing {width: 100%;}
  834. .tb-clearing tr td:first-child {width: 18%;text-align: center;min-width: 2.5em;}
  835. .quanxuan {position: relative;}
  836. .tb-clearing tr td:nth-of-type(2) {min-width: 2.5em;}
  837. .t-r {text-align: right !important;}
  838. .tb-clearing tr td:nth-of-type(3) {min-width: 6em;max-width: 10em;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
  839. .count_price_box {color: #e4004d;text-align: center;padding-top: 5px;}
  840. .tb-clearing tr:first-child td:last-child {text-align: center;}
  841. .ft-14 {font-size: 14px;}
  842. .quanxuan:after {content: '';position: absolute;width: 1px;height: 70%;background-color: #ababab;right: 0;top: 15%;-webkit-transform: scaleX(.5);transform: scaleX(.5);}
  843. .mt-mr-che {margin:2.5em .3em 0 0;}
  844. .add_gwc{padding: 18px 25px;border-radius: 0;background-color: #55c0dc !important;color: #fff;border: 0;}
  845. .add_gwc1 {padding: 18px 25px;border-radius: 0;background-color: #ababab;color: #fff;border: 0;}
  846. .add_gwc:active{color: #fff;background-color:#ff1b68;}
  847. #pullrefresh_chanpin_list .mui-table-view-chevron .mui-table-view-cell>a:not(.mui-btn) {margin-right: -115px;}
  848. #pullrefresh_chanpin_list .mui-table-view .mui-media-object.mui-pull-left {margin-right: 5px;}
  849. #pullrefresh_chanpin_list .shop-price {padding:0;text-align: left;}
  850. #pullrefresh_chanpin_list .mui-grid-view .shop-price {padding:0;text-align:center;}
  851. .bd-all-1{border: 1px solid rgba(0,0,0,.1);}
  852. .gwc_null h3 {color: #c3c3c3;padding: 0 0 20px 0;font-size:20px;}
  853. .gwc_null img{width:80px;}
  854. .mui-pull {font-weight: 100;}
  855. .ml-5 {margin-left: .5em;}
  856. .shipping_address {padding: 0 1em 0 0;margin-top: .5em;line-height: 1.5;}
  857. .price_r {position: absolute;bottom: 8px;text-align: right;right: 1em;color: #666;}
  858. .line-color {background: url(http://static.iamberry.com/watero/images/shop/line-color.png) left bottom no-repeat;background-size: 100% 4px;}
  859. .line-color>a:not(.mui-btn).mui-active{background-color: transparent !important;}
  860. .more {border-bottom: .6em solid #f0f0f0;}
  861. .ipt-yhq {width: 38% !important;height: 30px !important;padding: 0 !important;margin-bottom: 0 !important;text-align: center;}
  862. .how_to_get{color: #666;float: right;padding: 4px 0;}
  863. .how_to_get .d_price{color:#e4004d;padding-left: 3px;}
  864. .how_to_get .d_price:before{content: '妤�';}
  865. .cl-red{color: #ed6a5e !important;}
  866. .pay_weixin {text-align: center;background: #fff;padding:0;position: fixed;width: 100%;bottom: 0;}
  867. .pay_weixin>div {padding: 0 0 10px 0;}
  868. .btn-weixin-pay{margin-bottom: 0 !important;}
  869. .my-btn-green{background: #50c747;color: #fff;padding:10px 12px;font-size: 15px;border: 0;}
  870. .my-btn-green:active{background: #63fd57;color: #fff;}
  871. .clearing-count{padding: 15px;text-align: center;margin-bottom: 55px;background: #fff;border-bottom: 30px solid #efeff4;color: #666;font-size: 20px;}
  872. .fenxiao-clearing-count{padding: 10px;text-align: center;background: #fff;}
  873. .fenxiao-clearing-count>div{padding-bottom: 8px;}
  874. .price_l {position: absolute;bottom: 8px;text-align: left;}
  875. .pl-win-tt {text-align: left;text-indent: 2.5em;border-top: 1px solid rgba(0,0,0,.1);padding: 1em 0 0 0;font-size: 18px;}
  876. .pl-win-tt>div{padding:10px 0;}
  877. .pl-win-tt .sp{color: #48990e;}
  878. .pay_win_list{padding: 10px 10px 10px 2.5em;}
  879. .pay_win_list li{color: #666;padding: 3px 0;}
  880. .shopping-cart-list .mui-table-view-cell{padding: 11px 10px;}
  881. .my-order-list {padding: 10px 0 5px 0;}
  882. .my-order-list .mui-table-view-cell{padding: 5px 10px;}
  883. .my-order-list .mui-table-view-cell:after{height: 0;}
  884. .line-clamp-3{max-height: 4em;overflow: hidden; text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;}
  885. .line-clamp-2{max-height:38px;white-space: pre-wrap; overflow: hidden; text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;}
  886. .order-price{white-space: nowrap;text-align: right;padding-left: 4px;}
  887. .order-price:before{content: '妤�';}
  888. .my-table-order{font-size: 14px;background: #fff;width: 100%;}
  889. .my-tb-order{font-size: 14px;background: #fff;width: 100%;}
  890. .my-table-order tr td:last-child{padding-right: 10px;}
  891. .icon-allorder{padding-top: 2px;position: relative;border-bottom: 2px solid rgba(0,0,0,0);}
  892. .icon-allorder.mui-active{color:#55c0dc !important;border-bottom: 2px solid #55c0dc;}
  893. .icon-allorder>span:first-child{min-width: 25px;min-height: 25px;position: absolute;top:2px;left: 35%;}
  894. .icon-topay.mui-active{color:#55c0dc !important;border-bottom: 2px solid #55c0dc;}
  895. .icon-topay>span:first-child{min-width: 25px;min-height: 25px;position: absolute;top:2px;left: 35%;}
  896. .icon-topay{padding-top: 2px;position: relative;border-bottom: 2px solid rgba(0,0,0,0);}
  897. .my-scroll-order:after,.my-scroll-order:before{display:none;}
  898. .icon-todelivery.mui-active{color:#55c0dc !important;border-bottom: 2px solid #55c0dc;}
  899. .icon-todelivery>span:first-child{min-width: 25px;min-height: 25px;position: absolute;top:2px;left: 35%;}
  900. .icon-todelivery{padding-top: 2px;position: relative;border-bottom: 2px solid rgba(0,0,0,0);}
  901. .icon-delivery.mui-active{color:#55c0dc !important;border-bottom: 2px solid #55c0dc;}
  902. .icon-delivery>span:first-child{min-width: 25px;min-height: 25px;position: absolute;top:2px;left: 35%;}
  903. .icon-delivery{padding-top: 2px;position: relative;border-bottom: 2px solid rgba(0,0,0,0);}
  904. .mr-5{margin-right: 5px;}
  905. .btn-zu .mui-btn{margin-right:0;}
  906. .btn-zu .mui-btn:last-child{margin-right: 8px;}
  907. .my-scroll-order{list-style: none;margin: 0;padding: 0;}
  908. .my-scroll-order>li{border-bottom:8px solid #f0f0f0;}
  909. .my-scroll-order>li:first-child{border-top:8px solid #f0f0f0;}
  910. .vip-tt {position: relative;line-height: 0;}
  911. .vip-tt>img {width: 100%;}
  912. .tx {position: absolute;left:1em;top: 50%;width:80px;height:80px;display: inline-block;-webkit-transform: translateY(-50%);transform: translateY(-50%);border-radius: 50%;background-color:#55c0dc;padding: 4px;}
  913. .tx>img {width: 100%;border-radius: 50%;}
  914. .nikname {position: absolute;left: 30%;width:68%;top: 50%;color: #fff;-webkit-transform: translateY(-52%);transform: translateY(-52%);line-height: 1.5;}
  915. .more_vip{}
  916. .text-center{position: absolute;left: 50%;top: 50%;-webkit-transform: translateX(-50%) translateY(-50%);}
  917. .my-dl-tb-order{width: 100%;font-size: 14px;white-space: nowrap;}
  918. .my-dl-tb-order tr td:last-child{text-align: right;}
  919. .mui-pull-bottom-pocket, .mui-pull-top-pocket{visibility: visible;}
  920. .my-btn-link {padding-top: 6px;padding-bottom: 6px;color: #444;border: 0;background-color: transparent;}
  921. .my-btn-link2 {padding-top: 10px;padding-bottom:10px;color: #444;border: 0;background-color: transparent;position: absolute;left: 25px;}
  922. .my-btn-link:active{background-color: #fff !important;color: #444 !important;}
  923. .my-input{margin-bottom: 0 !important;background-color: #fff !important;font-size:15px;text-indent: 2.5em;}
  924. .ft-18{font-size: 18px;}
  925. .daili-2wm-box{position: absolute;width: 100%;left: 0;top:0;}
  926. .user-2wm{width: 50%;margin:30px auto;}
  927. .user-2wm img{width: 100%;}
  928. .user-2wm-dic{width: 75%;margin: 0 auto;border: 1px solid #e4004d;border-radius: 5px;padding: 10px;color: #444;background: #f0f1ec;}
  929. .btn-share-box{width: 75%;margin:20px auto;}
  930. .my-pull {
  931. font-weight: 700;
  932. position: absolute;
  933. right: 0;
  934. top: 0;
  935. left: 0;
  936. text-align: center;
  937. color: #777;
  938. padding: 20px 0 50PX 0;
  939. z-index: 100;
  940. background: #efeff4;
  941. }
  942. .my-badge-blue{color:#007aff !important;}
  943. .my-badge-green{color:#4cd964 !important;}
  944. .my-badge-red{color: #dd524d !important;}
  945. .my-badge-white{color: #fff !important;}
  946. .btn-fenxiao-weixin-pay{width: 50% !important;}
  947. .my-table-view1{padding: 0 0 0 0 !important;}
  948. .my-table-view1 .mui-table-view-cell{padding: 6px 0px !important;}
  949. #chanpin-slider .tit{color: #404040;font-size: 16px;line-height: .9;padding:0 0 2px 0;}
  950. #chanpin-slider .dic{color: #898989;font-size: 12px;padding:0 0 2px 0;}
  951. #chanpin-slider .price_box{padding: 8px 0 12px 0;}
  952. #chanpin-slider .dic-bt{color: #fff;border-radius:10px;padding: 3px 7px;font-size: 12px; background-color: #ff718f;}
  953. #chanpin-slider .mui-slider-group .mui-slider-item img {width: 45%;float: right;}
  954. .chanpin-cell{position:absolute;right:30%;top:50%;width:60%;height:130px;-webkit-transform: translateY(-50%);transform: translateY(-50%);}
  955. .chanpin-cell>div{position: relative;}
  956. .mui-slider-indicator .mui-indicator {
  957. -webkit-box-shadow: 0 0 1px 1px rgba(0,0,0,.1);
  958. box-shadow: 0 0 1px 1px rgba(0,0,0,.1);
  959. width: 10px;
  960. border-radius: 2px;
  961. background: #fff;
  962. }
  963. .mui-slider-indicator .mui-active.mui-indicator {
  964. background: #55c0dc;
  965. -webkit-box-shadow: 0 0 1px 1px rgba(0,0,0,0);
  966. box-shadow: 0 0 1px 1px rgba(0,0,0,0);
  967. }
  968. .my-btn-gray{background: #ccc;border: 0;border-radius: 10px;color: #fff;}
  969. .mui-control-content .mui-loading{margin-top: 50px;text-align: center;}
  970. .mui-popup{position: fixed;}
  971. .wh-100 img{height: 100%;}
  972. #chanpin-slider .opacity_0{opacity: 0;}
  973. #chanpin-slider .mui-slider-group .mui-slider-item{background:#fff;}
  974. #chanpin-slider .mui-slider-item:first-child .opacity_0{opacity:1;}
  975. #banner-slider,#chanpin-slider,#jifen-daili-menu,#advs_banner{display:none;}
  976. .icon-gouwuche .mui-badge{display:none;}
  977. .my-btn-block {font-size: 18px;display: block;width: 100%;padding: 6px 12px;border-radius: 4px !important;}
  978. .title1{color:#e70444;width:75px;height:25px;padding:5px 5px;}
  979. .font_text_yahei{font-family: "Microsoft YaHei" ! important;}
  980. .juli_span{color:#666;}
  981. article, section, time, aside {display: block;}
  982. .point-time {content: "";position: absolute;width: 13px;height: 13px;top: 3px;left: 20px;background: #1c87bf;margin-left: -4px;border-radius: 50%;}
  983. .point-red {background-color: #e70444;}
  984. .content {width: 100%;margin: 10px auto;}
  985. .content article {position: relative;}
  986. .content article section {padding: 0 0 7px;position: relative;}
  987. .content article section:before {content: "";width: 1px;top: 16px;bottom: -17px;left: 22px;background: #e70444;position: absolute;}
  988. .content article section:last-child:before {bottom:0;}
  989. .content article section time {display: block;}
  990. .content article section time > span {display: block;margin-left: 45px;color:#e70444;}
  991. .content article section aside {color: #3a3a38;margin-left:45px;margin-right: 5px;}
  992. .content article section aside p{margin-bottom: 0;font-size:13px;}
  993. .content article section aside .things{color:#222;margin-top: 5px;}
  994. .approval-title{font-size: 16px;font-weight: bold;padding: 10px 0;}
  995. .approval-title.line{border-top:1px solid rgba(0,0,0,.1);}
  996. .view-none:after,.view-none:before,.view-none .mui-table-view-cell:after{display: none;}
  997. .radius-badge{width: 50px;height: 50px;line-height: 50px;background: #fff;border:1px solid #55c0dc;padding: 0;color: #55c0dc;font-size: 15px;margin-bottom: 10px;}
  998. .order-Purchase{font-size: 12px;border-radius: 4px;background-color: #f7f7f7;margin: 0 5px;}
  999. .order-Purchase .mui-table{margin:0 0 8px 0;}
  1000. .order-Purchase .mui-table:last-child{margin-bottom: 0;}
  1001. .my-btn-link{color: #55c0dc;text-decoration: underline;margin-top: 10px;}
  1002. .btn-blue-approval{border-radius: 20px;border:1px solid #55c0dc;color: #fff;background-color: #55c0dc;width: 150px;margin: 10px 0;}
  1003. .beizhu:before{content: '备注信息:';position: absolute;left: 0;top: 0;}.beizhu{white-space: pre-wrap;padding-left: 5em;font-size: 12px;position: relative;}
  1004. .a-express{font-size: 12px;margin-top: 0 !important;}
  1005. .solid-table{border-collapse:collapse;border: 1px solid rgba(0,0,0,.1);width: 100%;background-color: #fff;text-align: center;margin: 10px 0 8px 0;}
  1006. .solid-table td,.solid-table th{border-collapse:collapse;border: 1px solid rgba(0,0,0,.1);padding: 3px 0;}
  1007. .solid-table td{font-size: 12px;color: #666;}
  1008. .my-order-view{border: 1px solid rgba(0,0,0,.1);border-radius: 10px;padding: 10px;width: auto;}
  1009. .my-order-view li{font-size: 12px;margin: 7px 0;}
  1010. @media (device-height:480px) and (min-width:320px) and (-webkit-min-device-pixel-ratio:2){
  1011. }
  1012. @media (device-height:568px) and (min-width:320px) and (-webkit-min-device-pixel-ratio:2){
  1013. }