123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419 |
- // 此样式文件仅对页面宽度小于 768px 时生效
- @import '~_a/styles/varibles.styl';
- @media screen and (max-width: 768px) {
- #app {
- // 顶部导航栏
- .header-wrapper {
- padding: 0 8px;
- .logo {
- display: none;
- }
- .logo-xs {
- display: inline-block;
- margin: 12px 8px;
- height: 24px;
- cursor: pointer;
- }
- .top-menu-list {
- .el-menu-item, .el-submenu {
- height: 48px;
- line-height: 48px;
- padding: 0 12px;
- .el-submenu__title {
- height: 48px;
- line-height: 48px;
- padding: 0;
- }
- }
- .external-link {
- a {
- padding: 0;
- }
- }
- }
- }
- // 主体内容区域
- .main-content {
- min-height: calc(100vh - 49px) !important;
- // 登录页面 & 注册页面
- &.login-wrapper, &.register-wrapper {
- padding-top: 32px;
- .form-wrapper {
- max-width: 375px;
- width: 80%;
- .drag_verify {
- max-width: 375px !important;
- width: 100% !important;
- .dv_text {
- width: 100% !important;
- }
- }
- }
- .drag-verify-modal {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- overflow: auto;
- background: rgba(0, 0, 0, 0.5);
- width: 100%;
- height: 100%;
- z-index: 2010;
- text-align: center;
- display: flex;
- align-items: center;
- .drag_verify {
- margin: 0 auto;
- }
- }
- }
- // 首页
- &.home-swapper {
- // 轮播图
- .el-carousel {
- .el-carousel__container {
- height: 400px !important;
- .carosel-inner {
- .carousel-wrap {
- .carousel-caption {
- position: relative;
- top: 0;
- margin: 0 auto;
- padding-top: 32px;
- .bounce {
- font-size: 22px;
- }
- .list {
- padding: 8px;
- }
- .version-wrapper {
- margin-top: 16px;
- .version-item {
- margin: 0 !important;
- }
- }
- }
- .carousel-img {
- z-index: -1;
- opacity: 0.5;
- width: 100%;
- height: 100%;
- text-align: center;
- img {
- height: 100%;
- }
- }
- }
- }
- }
- }
- // 功能说明
- .function-wrapper {
- margin: 0 auto;
- width: 90%;
- .function-title {
- padding: 24px 0;
- font-size: 22px;
- }
- .function-list {
- padding: 0 16px;
- display: block;
- .function-item {
- width: 100%;
- .function-link {
- padding: 16px;
- display: flex;
- align-items: center;
- .img-wrapper {
- width: 80px;
- height: 80px;
- .img {
- width: 50px;
- height: 50px;
- }
- }
- .content {
- margin-top: 0;
- flex: 1;
- text-align: left;
- padding: 0 0 0 24px;
- .title {
- margin-bottom: 8px;
- }
- }
- }
- }
- }
- }
- }
- // 网盘页面
- &.file-wrapper {
- .el-container {
- .side-menu-wrapper {
- position: absolute;
- padding-right: 0;
- .aside-title {
- background: linear-gradient(to right, $Primary, #66b1ff);
- left: 0;
- width: 18px;
- .icon {
- font-size: 16px;
- }
- }
- .storage-wrapper {
- width: 100%;
- }
- }
- // 列表模式
- .file-list-wrapper {
- .el-header {
- .operation-menu-wrapper {
- flex-wrap: wrap;
- &.file-type-0 {
- height: 96px !important;
- }
- .el-button {
- padding-right: 8px;
- padding-left: 8px;
- }
- .batch-operate-group {
- .el-button-group {
- display: flex;
- }
- }
- .select-file-input {
- margin-top: 8px;
- }
- }
- }
- .file-table-wrapper {
- margin: 2px -16px 0 -8px;
- .file-type-0 {
- height: calc(100vh - 218px) !important;
- .el-table__body-wrapper {
- height: calc(100vh - 260px) !important;
- }
- }
- .file-icon-column {
- .cell {
- padding: 0;
- }
- }
- .file-name {
- font-size: 16px;
- }
- .file-info {
- color: $SecondaryText;
- .file-size {
- margin-left: 4px;
- }
- }
- .file-operate {
- transform: rotate(90deg);
- }
- }
- .pagination-wrapper {
- height: 32px;
- line-height: 32px;
- text-align: right;
- font-size: 14px;
- .current-page-count {
- left: 0;
- }
- .el-pagination {
- .btn-prev {
- padding-right: 6px;
- }
- .btn-next {
- padding-left: 6px;
- }
- .el-pagination__jump {
- margin-left: 0;
- }
- }
- }
- }
- // 网格模式
- .file-grid-wrapper {
- margin: 0 -16px 0 -8px;
- .file-list {
- height: calc(100vh - 224px);
- padding-bottom: 8px;
- padding-left: 8px;
- align-items: initial;
- .file-item {
- margin: 8px 8px 0 0;
- border-radius: 4px;
- padding: 4px 8px;
- box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- .file-name {
- height: auto;
- line-height: 20px;
- overflow: initial;
- text-overflow: initial;
- -webkit-line-clamp: initial;
- flex: 1;
- font-size: 14px;
- }
- .file-operate {
- margin-top: 8px;
- height: 20px;
- line-height: 20px;
- align-self: flex-end;
- }
- }
- }
- }
- }
- }
- // 查看分享页面
- &.share-wrapper {
- .share-file-wrapper {
- .file-table-wrapper {
- margin: 2px -16px 0 -8px;
- .file-icon-column {
- .cell {
- padding: 0;
- }
- }
- .file-name {
- font-size: 16px;
- }
- .file-info {
- color: $SecondaryText;
- .file-size {
- margin-left: 4px;
- }
- }
- }
- }
- }
- }
- // 页面底部栏
- .footer-wrapper {
- flex-direction: column;
- .copy-right-wrapper, .join-us {
- width: 100%;
- padding: 8px 16px;
- @media screen and (max-width: 520px) {
- flex-direction: column;
- text-align: center;
- }
- }
- .copy-right-wrapper {
- .logo {
- width: 160px;
- }
- }
- .join-us {
- .desc {
- font-size: 14px;
- }
- .join-list {
- margin-top: 8px;
- justify-content: center;
- }
- }
- }
- }
- // 对话框
- .el-dialog__wrapper {
- .el-dialog {
- border-radius: 8px;
- width: 80% !important;
- }
- // 文件详情对话框
- &.file-info-dialog {
- .el-dialog__body {
- padding: 16px;
- }
- .file-info-form {
- .el-form-item {
- .el-form-item__label {
- padding-right: 8px;
- }
- .el-form-item__content {
- .el-input__inner {
- padding: 0;
- }
- }
- }
- }
- }
- }
- // 消息提示
- .el-message {
- top: 50px !important;
- max-width: 480px !important;
- width: 80% !important;
- min-width: 50% !important;
- }
- // 上传组件
- .upload-file-wrapper {
- @media screen and (max-width: 520px) {
- width: 100%;
- right: 0 !important;
- bottom: 0 !important;
- .uploader.uploader-app {
- width: 100% !important;
- }
- }
- }
- // 图片预览组件
- .img-preview-wrapper {
- .tip-wrapper {
- display: none !important;
- }
- .pre-icon {
- left: 0 !important;
- }
- .next-icon {
- right: 0 !important;
- }
- .zoom-bar {
- bottom: 32px !important;
- width: 80% !important;
- }
- }
- // 音频预览组件
- .audio-preview-wrapper {
- @media screen and (max-width: 520px) {
- right: calc(50vw - 150px) !important;
- }
- }
- // markdown 预览组件
- .markdown-preview-wrapper {
- .tip-wrapper {
- padding: 0 16px !important;
- }
- .tool-wrapper {
- .text-wrapper {
- margin-left: 8px !important;
- }
- }
- }
- // 日期组件
- .el-date-picker.has-sidebar.has-time {
- width: 350px !important;
- .el-picker-panel__body-wrapper {
- .el-picker-panel__sidebar {
- width: 56px;
- }
- .el-picker-panel__sidebar+.el-picker-panel__body {
- margin-left: 56px;
- .el-date-picker__header {
- margin: 8px;
- }
- .el-picker-panel__content {
- margin: 8px 0;
- }
- }
- }
- }
- }
|