common.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. /**
  2. * desc: webapp通用样式
  3. * author: justin
  4. * date: 2015-05-14
  5. */
  6. .box {
  7. display: -webkit-box;
  8. display: -moz-box;
  9. display: -o-box;
  10. display: -ms-box;
  11. display: box;
  12. }
  13. .box-align-start {
  14. -webkit-box-align: start;
  15. -moz-box-align: start;
  16. -o-box-align: start;
  17. -ms-box-align: start;
  18. box-align: start;
  19. }
  20. .box-align-center {
  21. -webkit-box-align: center;
  22. -moz-box-align: center;
  23. -o-box-align: center;
  24. -ms-box-align: center;
  25. box-align: center;
  26. }
  27. .box-align-end {
  28. -webkit-box-align: end;
  29. -moz-box-align: end;
  30. -o-box-align: end;
  31. -ms-box-align: end;
  32. box-align: end;
  33. }
  34. .box-pack-center {
  35. -webkit-box-pack: center;
  36. -moz-box-pack: center;
  37. -o-box-pack: center;
  38. -ms-box-pack: center;
  39. box-pack: center;
  40. }
  41. .box-pack-start {
  42. -webkit-box-pack: start;
  43. -moz-box-pack: start;
  44. -o-box-pack: start;
  45. -ms-box-pack: start;
  46. box-pack: start;
  47. }
  48. .box-pack-end {
  49. -webkit-box-pack: end;
  50. -moz-box-pack: end;
  51. -o-box-pack: end;
  52. -ms-box-pack: end;
  53. box-pack: end;
  54. }
  55. .box-vertical {
  56. -webkit-box-orient: vertical;
  57. -moz-box-orient: vertical;
  58. -o-box-orient: vertical;
  59. -ms-box-orient: vertical;
  60. box-orient: vertical;
  61. }
  62. .box-flex-1 {
  63. -moz-box-flex: 1.0;
  64. -webkit-box-flex: 1.0;
  65. -o-box-flex: 1.0;
  66. -ms-box-flex: 1.0;
  67. box-flex: 1.0;
  68. }
  69. .box-flex-2 {
  70. -moz-box-flex: 2.0;
  71. -webkit-box-flex: 2.0;
  72. -o-box-flex: 2.0;
  73. -ms-box-flex: 2.0;
  74. box-flex: 2.0;
  75. }
  76. .box-flex-3 {
  77. -moz-box-flex: 3.0;
  78. -webkit-box-flex: 3.0;
  79. -o-box-flex: 3.0;
  80. -ms-box-flex: 3.0;
  81. box-flex: 3.0;
  82. }
  83. .box-flex-4 {
  84. -moz-box-flex: 4.0;
  85. -webkit-box-flex: 4.0;
  86. -o-box-flex: 4.0;
  87. -ms-box-flex: 4.0;
  88. box-flex: 4.0;
  89. }
  90. .box-flex-5 {
  91. -moz-box-flex: 5.0;
  92. -webkit-box-flex: 5.0;
  93. -o-box-flex: 5.0;
  94. -ms-box-flex: 5.0;
  95. box-flex: 5.0;
  96. }
  97. .box-center {
  98. display: -webkit-box;
  99. display: -moz-box;
  100. display: -o-box;
  101. display: -ms-box;
  102. display: box;
  103. -webkit-box-pack: center;
  104. -moz-box-pack: center;
  105. -o-box-pack: center;
  106. -ms-box-pack: center;
  107. box-pack: center;
  108. -webkit-box-align: center;
  109. -moz-box-align: center;
  110. -o-box-align: center;
  111. -ms-box-align: center;
  112. box-align: center;
  113. }
  114. .box-container {
  115. width: 100%;
  116. height: 100%;
  117. /*background: #fff;*/
  118. }
  119. .scroll-container {
  120. overflow: hidden;
  121. position: relative;
  122. }
  123. .hide {
  124. display: none;
  125. }
  126. .clear-float {
  127. clear: both;
  128. }
  129. .width-percent-50 {
  130. width: 50%;
  131. }
  132. .width-percent-40 {
  133. width: 40%;
  134. }
  135. .width-percent-25 {
  136. width: 25%;
  137. }
  138. .width-percent-60 {
  139. width: 60%;
  140. }
  141. .width-percent-33 {
  142. width: 33.33%;
  143. }
  144. .width-percent-100 {
  145. width: 100%;
  146. }
  147. .height-percent-50 {
  148. height: 50%;
  149. }
  150. .height-percent-40 {
  151. height: 40%;
  152. }
  153. .height-percent-60 {
  154. height: 60%;
  155. }
  156. .height-percent-100 {
  157. height: 100%;
  158. }
  159. /*底部导航栏*/
  160. .prevent-scroll {
  161. width: 100%;
  162. position: fixed;
  163. bottom: 0;
  164. background-color: #2a2400;
  165. }
  166. .prevent-scroll .width-percent-33 .title-container-square {
  167. padding: 20%;
  168. position: relative;
  169. text-align: center;
  170. }
  171. .prevent-scroll .width-percent-33 .title-container-square a {
  172. position: absolute;
  173. left: 0;
  174. right: 0;
  175. top: 0;
  176. bottom: 0;
  177. }
  178. .prevent-scroll .width-percent-33 .title-container-square a .logo {
  179. background-size: 65% 65%;
  180. background-position: center center;
  181. padding: 10%;
  182. margin-top: 5px;
  183. display: inline-block;
  184. border-radius: 50%;
  185. }
  186. .prevent-scroll .width-percent-33 .title-container-square a .name {
  187. display: block;
  188. margin-top: -5px;
  189. font-size: 12px;
  190. }
  191. .prevent-scroll .width-percent-33:nth-child(1) a:active .logo {
  192. border-radius: inherit;
  193. background: url("http://odulvej8l.bkt.clouddn.com/tab_home.png") no-repeat;
  194. background-size: 100%;
  195. background-position: center center;
  196. }
  197. .prevent-scroll .width-percent-33:nth-child(1) a:active .name {
  198. color: #fff;
  199. }
  200. .prevent-scroll .width-percent-33:nth-child(1) a .logo {
  201. border-radius: inherit;
  202. background: url("http://odulvej8l.bkt.clouddn.com/tab_home_pre.png") no-repeat;
  203. background-size: 100%;
  204. background-position: center center;
  205. }
  206. .prevent-scroll .width-percent-33:nth-child(1) a .name {
  207. color: #fffefa;
  208. }
  209. .prevent-scroll .width-percent-33:nth-child(2) a .logo {
  210. border-radius: 50%;
  211. display: inline-block;
  212. padding: 25%;
  213. background-size: 100%;
  214. margin-top: -15px;
  215. background:url(http://odulvej8l.bkt.clouddn.com/tab_butler.png) 0 0 no-repeat #2a2400;
  216. background-size: 75% 75%;
  217. background-position: center;
  218. }
  219. .prevent-scroll .width-percent-33:nth-child(3) a .logo {
  220. border-radius: inherit;
  221. background: url("http://odulvej8l.bkt.clouddn.com/tab_me_pre.png");
  222. background-repeat: no-repeat;
  223. background-size: 100%;
  224. background-position: center center;
  225. }
  226. .prevent-scroll .width-percent-33:nth-child(3) a .name {
  227. color: #fffefa;
  228. }
  229. .prevent-scroll .width-percent-33:nth-child(3) a:active .logo {
  230. border-radius: inherit;
  231. background: url("http://odulvej8l.bkt.clouddn.com/tab_me.png");
  232. background-repeat: no-repeat;
  233. background-size: 90%;
  234. background-position: center center;
  235. }
  236. .prevent-scroll .width-percent-33:nth-child(3) a:active .name {
  237. color: #fff;
  238. }