mobile.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. $base: #0e90d2;
  2. $no-active: #939393;
  3. $border: #EAE5E5;
  4. $color: #555;
  5. //公共样式
  6. .am-header .am-header-title {
  7. margin: 0 10% !important;
  8. }
  9. //底部加载线
  10. .bottom-line {
  11. color: $no-active;
  12. font-size: 1.2rem;
  13. margin-top: 30px;
  14. margin-bottom: 30px;
  15. text-align: center;
  16. span {
  17. display: inline-block;
  18. vertical-align: top;
  19. }
  20. span:before {
  21. content: ' ';
  22. background-color: $border;
  23. height: 1px;
  24. width: 6rem;
  25. display: inline-block;
  26. vertical-align: top;
  27. margin: 0.8rem 1.5rem;
  28. }
  29. span:after {
  30. content: ' ';
  31. background-color: $border;
  32. height: 1px;
  33. width: 6rem;
  34. display: inline-block;
  35. vertical-align: top;
  36. margin: 0.8rem 1.5rem;
  37. }
  38. }
  39. .noData {
  40. width: 100%;
  41. text-align: center;
  42. padding: 10rem 0;
  43. * {
  44. display: block;
  45. color: $no-active;
  46. }
  47. i {
  48. font-size: 2rem;
  49. }
  50. }
  51. /*菜单*/
  52. .tabbar {
  53. display: block;
  54. background-color: #fff;
  55. margin: 0 auto;
  56. border-top: 1px solid $border;
  57. position: fixed;
  58. bottom: 0;
  59. width: 100%;
  60. z-index: 999;
  61. padding-top: 5px;
  62. span {
  63. display: block;
  64. text-align: center;
  65. font-size: 1rem;
  66. color: $no-active;
  67. }
  68. span.iconfont {
  69. font-size: 2rem;
  70. line-height: 1.9rem;
  71. }
  72. a.active span {
  73. color: $base;
  74. }
  75. }
  76. //header
  77. header {
  78. background-color: $base;
  79. color: #fff;
  80. line-height: 40px !important;
  81. height: 40px !important;
  82. .am-header-title {
  83. font-size: 1.6rem !important;
  84. }
  85. }
  86. /*视频列表页*/
  87. #videos-index-page {
  88. .videos-boxs {
  89. .video {
  90. width: 97%;
  91. margin: 0 1.5%;
  92. border: 1px solid #e6e6e6;
  93. border-radius: 4px;
  94. margin-top: 15px;
  95. display: inline-block;
  96. position: relative;
  97. .box_left {
  98. width: 100%;
  99. display: inline-block;
  100. text-align: left;
  101. /* padding: 1.2rem 1rem; */
  102. img {
  103. width: 100%;
  104. border-radius: 5px;
  105. background-size: 100%;
  106. max-height: 200px;
  107. }
  108. }
  109. .box_right {
  110. display: inline-block;
  111. width: 100%;
  112. text-align: left;
  113. .box_title {
  114. padding: 1rem 0.3rem 0.5rem;
  115. text-align: center;
  116. color: $color;
  117. }
  118. .icon-group-box {
  119. text-align: center;
  120. line-height: 12px;
  121. padding-bottom: 10px;
  122. div.icon-group:first-child {
  123. margin-right: 10px;
  124. }
  125. .icon-group {
  126. line-height: 12px;
  127. font-size: 12px;
  128. vertical-align: top;
  129. color: #999;
  130. padding: 5px 0 0;
  131. display: inline-block;
  132. }
  133. }
  134. }
  135. .vip{
  136. position: absolute;
  137. right: 0;
  138. top: 0;
  139. background-color: red;
  140. color: #fff;
  141. padding: 2px 10px;
  142. font-size: 12px;
  143. }
  144. }
  145. .video:first-child {
  146. margin-top: 5px;
  147. }
  148. }
  149. .category-box {
  150. position: fixed;
  151. right: 2rem;
  152. bottom: 7rem;
  153. width: 5rem;
  154. height: 5rem;
  155. background-color: $base;
  156. color: #fff;
  157. line-height: 5rem;
  158. border-radius: 5rem;
  159. text-align: center;
  160. }
  161. .active {
  162. color: $base;
  163. }
  164. }
  165. //视频详情
  166. #videos-show-page {
  167. .video-des {
  168. text-align: center;
  169. margin-top: 10px;
  170. padding: 0 0 10px;
  171. border-bottom: 1px solid $border;
  172. .title {
  173. margin: 0;
  174. font-size: 20px;
  175. }
  176. .description {
  177. margin: 5px 5px 11px;
  178. padding-left: 15px;
  179. color: $base;
  180. position: relative;
  181. font-size: 16px;
  182. text-align: left;
  183. }
  184. .description:after {
  185. content: "";
  186. position: absolute;
  187. top: 0;
  188. left: 0;
  189. float: left;
  190. display: block;
  191. width: 2px;
  192. height: 100%;
  193. background-color: #4182FA;
  194. }
  195. .tags {
  196. text-align: center;
  197. padding: 0 10px;
  198. .tag {
  199. padding: 0 10px;
  200. height: 20px;
  201. line-height: 20px;
  202. font-size: 12px;
  203. display: inline-block;
  204. color: #fff;
  205. border-radius: 10px;
  206. background-color: $base;
  207. }
  208. .tag:first-child {
  209. background-color: #3bb4f2;
  210. }
  211. .tag:nth-child(2) {
  212. background-color: #5eb95e;
  213. }
  214. .tag:nth-child(3) {
  215. background-color: #F37B1D;
  216. }
  217. .tag:nth-child(4) {
  218. background-color: #dd514c;
  219. }
  220. .tag:nth-child(5) {
  221. background-color: #500a6f;
  222. }
  223. }
  224. .date {
  225. text-align: right;
  226. padding-right: 15px;
  227. .icon-group {
  228. display: inline-block;
  229. color: $no-active;
  230. font-size: 12px;
  231. i {
  232. margin-right: 5px;
  233. }
  234. }
  235. .icon-group:first-child {
  236. margin-right: 15px;
  237. }
  238. }
  239. }
  240. .btn-boxs {
  241. position: fixed;
  242. z-index: 200;
  243. bottom: 0;
  244. left: 0;
  245. width: 100%;
  246. height: 4rem;
  247. border-top: 1px solid #e9e9e9;
  248. background: #fff;
  249. -webkit-box-shadow: 0 0 4px #e5e5e9;
  250. box-shadow: 0 0 4px #e5e5e9;
  251. text-align: center;
  252. ul {
  253. display: flex;
  254. -webkit-box-orient: horizontal;
  255. -webkit-box-direction: normal;
  256. flex-direction: row;
  257. padding-left: 0 !important;
  258. li:first-child {
  259. &:after {
  260. position: absolute;
  261. content: "";
  262. right: 0;
  263. top: 50%;
  264. -webkit-transform: translate(0, -50%);
  265. transform: translate(0, -50%);
  266. width: 1px;
  267. height: 2rem;
  268. background: #e9e9e9;
  269. }
  270. }
  271. li {
  272. text-align: center;
  273. position: relative;
  274. -webkit-box-flex: 1;
  275. -webkit-flex: 1;
  276. -ms-flex: 1;
  277. flex: 1;
  278. list-style: none;
  279. a {
  280. line-height: 4rem;
  281. i {
  282. font-size: 20px;
  283. vertical-align: top !important;
  284. }
  285. span {
  286. display: inline-block;
  287. vertical-align: top;
  288. margin-left: 20px;
  289. font-size: 14px;
  290. color: #333;
  291. }
  292. }
  293. }
  294. }
  295. }
  296. }
  297. //答题列表
  298. #questions-index-page {
  299. .question {
  300. margin: 0 10px;
  301. padding: 8px 0;
  302. border-bottom: 1px solid $border;
  303. a {
  304. color: $color;
  305. }
  306. span {
  307. width: 92%;
  308. display: inline-block;
  309. white-space: nowrap;
  310. cursor: pointer;
  311. }
  312. }
  313. .category-box {
  314. position: fixed;
  315. right: 2rem;
  316. bottom: 7rem;
  317. width: 5rem;
  318. height: 5rem;
  319. background-color: $base;
  320. color: #fff;
  321. line-height: 5rem;
  322. border-radius: 5rem;
  323. text-align: center;
  324. }
  325. .active {
  326. color: $base;
  327. }
  328. }
  329. //分析详情
  330. #test-show-page {
  331. .word {
  332. margin: 10px 15px;
  333. padding: 10px;
  334. background-color: $base;
  335. color: #fff;
  336. border-radius: 10px;
  337. span {
  338. font-weight: 500;
  339. font-size: 18px;
  340. padding: 0 5px;
  341. }
  342. }
  343. .lists {
  344. padding: 10px 10px 30px;
  345. & > .title {
  346. color: $base;
  347. border-bottom: 2px dashed #999;
  348. border-top: 2px dashed #999;
  349. padding: 5px 0;
  350. //padding-left: 10px;
  351. font-weight: bold;
  352. text-align: center;
  353. }
  354. .right{
  355. color: #5eb95e;
  356. }
  357. .error{
  358. color: #dd514c;
  359. }
  360. .content {
  361. margin: 10px 0;
  362. border: 1px dotted $base;
  363. padding: 5px;
  364. .answer {
  365. border-radius: 5px;
  366. background-color: #d2d2d2;
  367. padding: 5px;
  368. //font-size: 12px;
  369. span {
  370. //font-size: 14px;
  371. color: $base;
  372. }
  373. .des{
  374. font-size: 14px;
  375. }
  376. }
  377. }
  378. }
  379. }