console.mobile.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. /** 手机盒子及微信菜单 */
  2. .mobile-preview {
  3. width: 317px;
  4. height: 580px;
  5. position: relative;
  6. background: url(../img/wechat/mobile_head.png) no-repeat 0 0;
  7. .mobile-header {
  8. color: #fff;
  9. width: auto;
  10. margin: 0 30px;
  11. overflow: hidden;
  12. font-size: 15px;
  13. padding-top: 30px;
  14. text-align: center;
  15. white-space: nowrap;
  16. text-overflow: ellipsis;
  17. word-wrap: normal;
  18. user-select: none;
  19. pointer-events: none;
  20. -moz-user-select: none;
  21. -webkit-user-select: none;
  22. -webkit-pointer-events: none
  23. }
  24. .mobile-body {
  25. top: 60px;
  26. left: 0;
  27. right: 0;
  28. bottom: 0;
  29. position: absolute;
  30. border: 1px solid #ccc;
  31. background: #f5f5f5;
  32. iframe {
  33. width: 100%;
  34. height: 100%
  35. }
  36. }
  37. .mobile-footer {
  38. left: 0;
  39. right: 0;
  40. bottom: 0;
  41. margin: 0;
  42. position: absolute;
  43. padding-left: 43px;
  44. border: 1px solid #ccc;
  45. list-style-type: none;
  46. background: url(../img/wechat/mobile_foot.png) no-repeat 0 0;
  47. li {
  48. float: left;
  49. width: 33.33%;
  50. position: relative;
  51. text-align: center;
  52. line-height: 50px;
  53. a {
  54. width: auto;
  55. display: block;
  56. overflow: hidden;
  57. border: 1px solid hsla(0, 0%, 100%, 0);
  58. border-left: 1px solid #e7e7eb;
  59. margin-top: -1px;
  60. margin-bottom: -1px;
  61. color: #616161;
  62. white-space: nowrap;
  63. text-decoration: none;
  64. text-overflow: ellipsis;
  65. word-wrap: normal;
  66. &:hover {
  67. background: rgba(0, 0, 0, .02)
  68. }
  69. &.active {
  70. border: 1px solid #44b549 !important;
  71. box-shadow: 0 0 1px #44b549
  72. }
  73. span:before {
  74. width: 1px;
  75. height: 1px;
  76. content: '';
  77. display: inline-block
  78. }
  79. }
  80. > .close {
  81. top: 1px;
  82. right: 1px;
  83. width: 18px;
  84. height: 18px;
  85. display: none;
  86. cursor: pointer;
  87. position: absolute;
  88. text-align: center;
  89. line-height: 18px
  90. }
  91. &:hover > .close {
  92. display: inline-block;
  93. &:hover {
  94. color: #fff !important;
  95. background: #999 !important
  96. }
  97. }
  98. }
  99. .icon-add {
  100. width: 14px;
  101. height: 14px;
  102. border-bottom: none !important;
  103. background: url(../img/wechat/index.png) 0 0 no-repeat
  104. }
  105. .icon-add, .icon-sub {
  106. display: inline-block;
  107. vertical-align: middle
  108. }
  109. .icon-sub {
  110. width: 7px;
  111. height: 7px;
  112. margin-right: 2px;
  113. background: url(../img/wechat/index.png) 0 -3pc no-repeat
  114. }
  115. .sub-menu {
  116. width: 100%;
  117. bottom: 60px;
  118. margin: -1px;
  119. display: block;
  120. position: absolute;
  121. border: 1px solid #d0d0d0;
  122. background-color: #fafafa;
  123. ul, ul li {
  124. float: none;
  125. padding: 0;
  126. z-index: 11;
  127. display: block;
  128. width: 100%
  129. }
  130. ul li {
  131. a {
  132. padding: 0 5px;
  133. border: 1px solid hsla(0, 0%, 100%, 0);
  134. &.bottom-border {
  135. margin: -1px -1px 0;
  136. border-bottom: 1px solid #e7e7eb
  137. }
  138. }
  139. &:last-child a.bottom-border {
  140. border-bottom-color: #fff
  141. }
  142. }
  143. }
  144. .arrow {
  145. left: 50%;
  146. position: absolute;
  147. margin-left: -6px
  148. }
  149. .arrow_in, .arrow_out {
  150. width: 0;
  151. height: 0;
  152. z-index: 10;
  153. display: inline-block;
  154. border: 6px dashed transparent;
  155. border-bottom-width: 0;
  156. border-top-style: solid
  157. }
  158. .arrow_in {
  159. z-index: 3;
  160. bottom: -5px;
  161. border-top-color: #fafafa
  162. }
  163. .arrow_out {
  164. z-index: 2;
  165. bottom: -6px;
  166. border-top-color: #d0d0d0
  167. }
  168. }
  169. }