mediaScreenXs.styl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. // 此样式文件仅对页面宽度小于 768px 时生效
  2. @import '~_a/styles/varibles.styl';
  3. @media screen and (max-width: 768px) {
  4. #app {
  5. // 顶部导航栏
  6. .header-wrapper {
  7. padding: 0 8px;
  8. .logo {
  9. display: none;
  10. }
  11. .logo-xs {
  12. display: inline-block;
  13. margin: 12px 8px;
  14. height: 24px;
  15. cursor: pointer;
  16. }
  17. .top-menu-list {
  18. .el-menu-item, .el-submenu {
  19. height: 48px;
  20. line-height: 48px;
  21. padding: 0 12px;
  22. .el-submenu__title {
  23. height: 48px;
  24. line-height: 48px;
  25. padding: 0;
  26. }
  27. }
  28. .external-link {
  29. a {
  30. padding: 0;
  31. }
  32. }
  33. }
  34. }
  35. // 主体内容区域
  36. .main-content {
  37. min-height: calc(100vh - 49px) !important;
  38. // 登录页面 & 注册页面
  39. &.login-wrapper, &.register-wrapper {
  40. padding-top: 32px;
  41. .form-wrapper {
  42. max-width: 375px;
  43. width: 80%;
  44. .drag_verify {
  45. max-width: 375px !important;
  46. width: 100% !important;
  47. .dv_text {
  48. width: 100% !important;
  49. }
  50. }
  51. }
  52. .drag-verify-modal {
  53. position: fixed;
  54. top: 0;
  55. right: 0;
  56. bottom: 0;
  57. left: 0;
  58. overflow: auto;
  59. background: rgba(0, 0, 0, 0.5);
  60. width: 100%;
  61. height: 100%;
  62. z-index: 2010;
  63. text-align: center;
  64. display: flex;
  65. align-items: center;
  66. .drag_verify {
  67. margin: 0 auto;
  68. }
  69. }
  70. }
  71. // 首页
  72. &.home-swapper {
  73. // 轮播图
  74. .el-carousel {
  75. .el-carousel__container {
  76. height: 400px !important;
  77. .carosel-inner {
  78. .carousel-wrap {
  79. .carousel-caption {
  80. position: relative;
  81. top: 0;
  82. margin: 0 auto;
  83. padding-top: 32px;
  84. .bounce {
  85. font-size: 22px;
  86. }
  87. .list {
  88. padding: 8px;
  89. }
  90. .version-wrapper {
  91. margin-top: 16px;
  92. .version-item {
  93. margin: 0 !important;
  94. }
  95. }
  96. }
  97. .carousel-img {
  98. z-index: -1;
  99. opacity: 0.5;
  100. width: 100%;
  101. height: 100%;
  102. text-align: center;
  103. img {
  104. height: 100%;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }
  111. // 功能说明
  112. .function-wrapper {
  113. margin: 0 auto;
  114. width: 90%;
  115. .function-title {
  116. padding: 24px 0;
  117. font-size: 22px;
  118. }
  119. .function-list {
  120. padding: 0 16px;
  121. display: block;
  122. .function-item {
  123. width: 100%;
  124. .function-link {
  125. padding: 16px;
  126. display: flex;
  127. align-items: center;
  128. .img-wrapper {
  129. width: 80px;
  130. height: 80px;
  131. .img {
  132. width: 50px;
  133. height: 50px;
  134. }
  135. }
  136. .content {
  137. margin-top: 0;
  138. flex: 1;
  139. text-align: left;
  140. padding: 0 0 0 24px;
  141. .title {
  142. margin-bottom: 8px;
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. // 网盘页面
  151. &.file-wrapper {
  152. .el-container {
  153. .side-menu-wrapper {
  154. position: absolute;
  155. padding-right: 0;
  156. .aside-title {
  157. background: linear-gradient(to right, $Primary, #66b1ff);
  158. left: 0;
  159. width: 18px;
  160. .icon {
  161. font-size: 16px;
  162. }
  163. }
  164. .storage-wrapper {
  165. width: 100%;
  166. }
  167. }
  168. // 列表模式
  169. .file-list-wrapper {
  170. .el-header {
  171. .operation-menu-wrapper {
  172. flex-wrap: wrap;
  173. &.file-type-0 {
  174. height: 96px !important;
  175. }
  176. .el-button {
  177. padding-right: 8px;
  178. padding-left: 8px;
  179. }
  180. .batch-operate-group {
  181. .el-button-group {
  182. display: flex;
  183. }
  184. }
  185. .select-file-input {
  186. margin-top: 8px;
  187. }
  188. }
  189. }
  190. .file-table-wrapper {
  191. margin: 2px -16px 0 -8px;
  192. .file-type-0 {
  193. height: calc(100vh - 218px) !important;
  194. .el-table__body-wrapper {
  195. height: calc(100vh - 260px) !important;
  196. }
  197. }
  198. .file-icon-column {
  199. .cell {
  200. padding: 0;
  201. }
  202. }
  203. .file-name {
  204. font-size: 16px;
  205. }
  206. .file-info {
  207. color: $SecondaryText;
  208. .file-size {
  209. margin-left: 4px;
  210. }
  211. }
  212. .file-operate {
  213. transform: rotate(90deg);
  214. }
  215. }
  216. .pagination-wrapper {
  217. height: 32px;
  218. line-height: 32px;
  219. text-align: right;
  220. font-size: 14px;
  221. .current-page-count {
  222. left: 0;
  223. }
  224. .el-pagination {
  225. .btn-prev {
  226. padding-right: 6px;
  227. }
  228. .btn-next {
  229. padding-left: 6px;
  230. }
  231. .el-pagination__jump {
  232. margin-left: 0;
  233. }
  234. }
  235. }
  236. }
  237. // 网格模式
  238. .file-grid-wrapper {
  239. margin: 0 -16px 0 -8px;
  240. .file-list {
  241. height: calc(100vh - 224px);
  242. padding-bottom: 8px;
  243. padding-left: 8px;
  244. align-items: initial;
  245. .file-item {
  246. margin: 8px 8px 0 0;
  247. border-radius: 4px;
  248. padding: 4px 8px;
  249. box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
  250. display: flex;
  251. flex-direction: column;
  252. align-items: center;
  253. justify-content: space-between;
  254. .file-name {
  255. height: auto;
  256. line-height: 20px;
  257. overflow: initial;
  258. text-overflow: initial;
  259. -webkit-line-clamp: initial;
  260. flex: 1;
  261. font-size: 14px;
  262. }
  263. .file-operate {
  264. margin-top: 8px;
  265. height: 20px;
  266. line-height: 20px;
  267. align-self: flex-end;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. }
  274. // 查看分享页面
  275. &.share-wrapper {
  276. .share-file-wrapper {
  277. .file-table-wrapper {
  278. margin: 2px -16px 0 -8px;
  279. .file-icon-column {
  280. .cell {
  281. padding: 0;
  282. }
  283. }
  284. .file-name {
  285. font-size: 16px;
  286. }
  287. .file-info {
  288. color: $SecondaryText;
  289. .file-size {
  290. margin-left: 4px;
  291. }
  292. }
  293. }
  294. }
  295. }
  296. }
  297. // 页面底部栏
  298. .footer-wrapper {
  299. flex-direction: column;
  300. .copy-right-wrapper, .join-us {
  301. width: 100%;
  302. padding: 8px 16px;
  303. @media screen and (max-width: 520px) {
  304. flex-direction: column;
  305. text-align: center;
  306. }
  307. }
  308. .copy-right-wrapper {
  309. .logo {
  310. width: 160px;
  311. }
  312. }
  313. .join-us {
  314. .desc {
  315. font-size: 14px;
  316. }
  317. .join-list {
  318. margin-top: 8px;
  319. justify-content: center;
  320. }
  321. }
  322. }
  323. }
  324. // 对话框
  325. .el-dialog__wrapper {
  326. .el-dialog {
  327. border-radius: 8px;
  328. width: 80% !important;
  329. }
  330. // 文件详情对话框
  331. &.file-info-dialog {
  332. .el-dialog__body {
  333. padding: 16px;
  334. }
  335. .file-info-form {
  336. .el-form-item {
  337. .el-form-item__label {
  338. padding-right: 8px;
  339. }
  340. .el-form-item__content {
  341. .el-input__inner {
  342. padding: 0;
  343. }
  344. }
  345. }
  346. }
  347. }
  348. }
  349. // 消息提示
  350. .el-message {
  351. top: 50px !important;
  352. max-width: 480px !important;
  353. width: 80% !important;
  354. min-width: 50% !important;
  355. }
  356. // 上传组件
  357. .upload-file-wrapper {
  358. @media screen and (max-width: 520px) {
  359. width: 100%;
  360. right: 0 !important;
  361. bottom: 0 !important;
  362. .uploader.uploader-app {
  363. width: 100% !important;
  364. }
  365. }
  366. }
  367. // 图片预览组件
  368. .img-preview-wrapper {
  369. .tip-wrapper {
  370. display: none !important;
  371. }
  372. .pre-icon {
  373. left: 0 !important;
  374. }
  375. .next-icon {
  376. right: 0 !important;
  377. }
  378. .zoom-bar {
  379. bottom: 32px !important;
  380. width: 80% !important;
  381. }
  382. }
  383. // 音频预览组件
  384. .audio-preview-wrapper {
  385. @media screen and (max-width: 520px) {
  386. right: calc(50vw - 150px) !important;
  387. }
  388. }
  389. // markdown 预览组件
  390. .markdown-preview-wrapper {
  391. .tip-wrapper {
  392. padding: 0 16px !important;
  393. }
  394. .tool-wrapper {
  395. .text-wrapper {
  396. margin-left: 8px !important;
  397. }
  398. }
  399. }
  400. // 日期组件
  401. .el-date-picker.has-sidebar.has-time {
  402. width: 350px !important;
  403. .el-picker-panel__body-wrapper {
  404. .el-picker-panel__sidebar {
  405. width: 56px;
  406. }
  407. .el-picker-panel__sidebar+.el-picker-panel__body {
  408. margin-left: 56px;
  409. .el-date-picker__header {
  410. margin: 8px;
  411. }
  412. .el-picker-panel__content {
  413. margin: 8px 0;
  414. }
  415. }
  416. }
  417. }
  418. }