美化content区域

This commit is contained in:
qxz 2020-05-15 19:10:19 +08:00
parent f3be1a6ac8
commit 22c7d79fa0
7 changed files with 32 additions and 15 deletions

View File

@ -37,35 +37,43 @@ body {
.table { .table {
width: 100%; width: 100%;
table-layout: fixed; table-layout: fixed;
th, th,
td { td {
border: 0 !important; border: 0 !important;
} }
td { td {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
vertical-align: middle; vertical-align: middle;
&:hover, &:hover,
& .icon { & .icon {
cursor: pointer; cursor: pointer;
} }
} }
td span { td span {
vertical-align: middle; vertical-align: middle;
} }
td .g2-file-desc { td .g2-file-desc {
font-size: 12px; font-size: 12px;
} }
} }
.g2-content {
margin-top: 1rem;
}
.footer { .footer {
background-color: transparent; background-color: transparent;
} }
.no-content { .no-content {
background: url(https://s1.hdslb.com/bfs/static/jinkela/search/asserts/no-data.png) background: url(https://s1.hdslb.com/bfs/static/jinkela/search/asserts/no-data.png) no-repeat 50% 50%;
no-repeat 50% 50%;
height: 240px; height: 240px;
line-height: 240px; line-height: 240px;
text-align: center; text-align: center;
@ -78,6 +86,7 @@ body {
position: relative; position: relative;
padding-bottom: 56.25%; padding-bottom: 56.25%;
height: 0; height: 0;
iframe { iframe {
position: absolute; position: absolute;
top: 0; top: 0;
@ -88,7 +97,8 @@ body {
} }
// 搜索框 // 搜索框
.search-input,.search-input::-webkit-input-placeholder { .search-input,
.search-input::-webkit-input-placeholder {
color: whitesmoke; color: whitesmoke;
} }
@ -99,10 +109,12 @@ body {
.el-loading-mask { .el-loading-mask {
z-index: initial; z-index: initial;
} }
.pageloader:not(.is-bottom-to-top) { .pageloader:not(.is-bottom-to-top) {
-webkit-transform: initial; -webkit-transform: initial;
transform: initial; transform: initial;
} }
.pageloader { .pageloader {
position: absolute; position: absolute;
padding-top: 0; padding-top: 0;
@ -114,6 +126,7 @@ body {
color: hsl(0, 0%, 4%); color: hsl(0, 0%, 4%);
} }
} }
.pageloader::after { .pageloader::after {
border: 0 solid black; border: 0 solid black;
} }
@ -135,16 +148,20 @@ body {
border-bottom-color: #c0c4cc; border-bottom-color: #c0c4cc;
top: 5px; top: 5px;
} }
.sort-caret.descending { .sort-caret.descending {
border-top-color: #c0c4cc; border-top-color: #c0c4cc;
bottom: 7px; bottom: 7px;
} }
.descending .sort-caret.descending { .descending .sort-caret.descending {
border-top-color: #409eff; border-top-color: #409eff;
} }
.ascending .sort-caret.ascending { .ascending .sort-caret.ascending {
border-bottom-color: #409eff; border-bottom-color: #409eff;
} }
.sort-caret { .sort-caret {
width: 0; width: 0;
height: 0; height: 0;

View File

@ -8,7 +8,7 @@
<div class="level-item"> <div class="level-item">
<ul> <ul>
<li> <li>
<a @click="go('/'+index+':/')">{{$t('index')}}</a> <a v-show="navs && navs.length>0" @click="go('/'+index+':/')">{{$t('index')}}</a>
</li> </li>
<li <li
v-for="(item,index) in navs" v-for="(item,index) in navs"
@ -106,18 +106,19 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.g2-breadcrumb { .g2-breadcrumb {
border-bottom: 2px solid whitesmoke; border-bottom: 2px solid whitesmoke;
height: 100%; // height: 100%;
padding: 0 0.75em; padding: 10px 0.75em;
} }
.level-right { .level-right {
.level-item { .level-item {
border-radius: 50%; border-radius: 50%;
height: 40px; // height: 40px;
width: 40px; // width: 40px;
&:hover { &:hover {
border: 1px dotted transparent; border: 1px dotted transparent;
background: rgba(0, 0, 0, 0.12); background: rgba(0, 0, 0, 0.12);
text-decoration: none; text-decoration: none;
cursor: pointer;
} }
} }
} }

View File

@ -1,6 +1,5 @@
<template> <template>
<div class="content"> <div class="content g2-content">
<hr />
<figure class="image"> <figure class="image">
<img :src="imgurl" :class="!display?'is-hidden':''" @load="loading" /> <img :src="imgurl" :class="!display?'is-hidden':''" @load="loading" />
<center :class="display?'is-hidden':''"> <center :class="display?'is-hidden':''">

View File

@ -347,7 +347,7 @@ export default {
window.open(href); window.open(href);
} else { } else {
this.$router.push({ this.$router.push({
path: href, path: checkView(href),
}); });
} }
} }

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="content g2-content">
<object :data="url" type="application/pdf" name="file.pdf"> <object :data="url" type="application/pdf" name="file.pdf">
<embed :src="url" type="application/pdf" /> <embed :src="url" type="application/pdf" />
</object> </object>

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="content"> <div class="content g2-content">
<editor <editor
ref="myEditor" ref="myEditor"
v-model="content" v-model="content"

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="content"> <div class="content g2-content">
<div class="video-content"> <div class="video-content">
<iframe <iframe
width="100%" width="100%"