forked from mirror/MrDoc
270 lines
5.1 KiB
CSS
270 lines
5.1 KiB
CSS
/* 页头下边框线 */
|
|
.layui-header{
|
|
border-bottom:1px solid #ddd;
|
|
}
|
|
/* 页头搜索框样式 */
|
|
.component{
|
|
position: absolute;
|
|
width: 250px;
|
|
left: 160px;
|
|
top: 10px;
|
|
}
|
|
/* 页头logo图片样式 */
|
|
.logo {
|
|
position: absolute;
|
|
left: 20px;
|
|
top: 16px;
|
|
}
|
|
.logo img {
|
|
/*width: 85px;*/
|
|
height: 30px;
|
|
}
|
|
/* 页头背景 */
|
|
.layui-nav{
|
|
background-color:transparent;
|
|
}
|
|
.layui-header .layui-nav{
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
padding: 0;
|
|
}
|
|
.layui-nav .layui-nav-item a{
|
|
color:black;
|
|
}
|
|
.layui-nav .layui-nav-item a:hover{
|
|
color:black;
|
|
}
|
|
.project-list{
|
|
margin: 50px 0;
|
|
font-size: 0;
|
|
text-align: center;
|
|
font-weight: 300;
|
|
}
|
|
.project-item{
|
|
float: left;
|
|
width: 200px;
|
|
height: 120px;
|
|
margin-top: 20px;
|
|
margin-left: 20px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.055);
|
|
}
|
|
.layui-card{
|
|
box-shadow:0 0 0 0;
|
|
}
|
|
.create-doc-form{
|
|
margin-top: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.doc-form-label{
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
/* 文档浏览页 */
|
|
body, html {
|
|
height: 100%;
|
|
}
|
|
.doc{
|
|
/*position: relative;*/
|
|
/*width: 100%;*/
|
|
/*height: 100%;*/
|
|
|
|
display: -webkit-box;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-webkit-box-orient: horizontal;
|
|
-webkit-box-direction: normal;
|
|
-ms-flex-direction: row;
|
|
flex-direction: row;
|
|
-webkit-box-flex: 1;
|
|
-ms-flex: 1;
|
|
flex: 1;
|
|
box-sizing: border-box;
|
|
min-width: 0;
|
|
}
|
|
.project-title{
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
margin:20px;
|
|
text-align: center;
|
|
}
|
|
.doc-summary {
|
|
color: #333;
|
|
position: fixed;
|
|
/*height: calc(100% - 20px);*/
|
|
height: calc(100%);
|
|
background-color: #fafafa;
|
|
border-right: 1px solid #e6e6e6;
|
|
width:300px;
|
|
}
|
|
|
|
.doc-body {
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-direction: normal;
|
|
-ms-flex-direction: column;
|
|
flex-direction: column;
|
|
margin-left: 300px;
|
|
display: -webkit-box;
|
|
display: -moz-box;
|
|
display: -ms-flexbox;
|
|
display: -webkit-flex;
|
|
flex: 1 1 auto;
|
|
display: flex;
|
|
padding: 0;
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
background: #fff;
|
|
flex-direction: column;
|
|
padding-bottom: 64px;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-direction: normal;
|
|
left:300px;
|
|
}
|
|
#doc-search-input {
|
|
padding: 6px;
|
|
background: 0 0;
|
|
transition: top .5s ease;
|
|
background: #fff;
|
|
border-bottom: 1px solid rgba(0,0,0,.07);
|
|
border-top: 1px solid rgba(0,0,0,.07);
|
|
margin-bottom: 10px;
|
|
margin-top: -1px;
|
|
}
|
|
.doc-search-input{
|
|
padding: 6px;
|
|
background: 0 0;
|
|
transition: top .5s ease;
|
|
background: #fff;
|
|
border-bottom: 1px solid rgba(0,0,0,.07);
|
|
border-top: 1px solid rgba(0,0,0,.07);
|
|
/*margin-bottom: 10px;*/
|
|
margin-top: -1px;
|
|
}
|
|
.doc-summary ul.summary {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-transition: top .5s ease;
|
|
-moz-transition: top .5s ease;
|
|
-o-transition: top .5s ease;
|
|
transition: top .5s ease;
|
|
}
|
|
.doc-summary ul.summary li a, .doc-summary ul.summary li span {
|
|
display: block;
|
|
padding: 10px 15px;
|
|
border-bottom: none;
|
|
/*color: #364149;*/
|
|
background: 0 0;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
}
|
|
.doc-summary ul.summary li ul {
|
|
padding-left: 20px;
|
|
}
|
|
.doc-summary ul.summary li a:hover,.bq a:hover{
|
|
text-decoration: underline;
|
|
}
|
|
li.active > a{
|
|
color: #008cff;
|
|
}
|
|
.bq a {
|
|
padding: 15px;
|
|
border-bottom: none;
|
|
color: #909090;
|
|
display: block;
|
|
border-top: 1px solid #dcdcdc;
|
|
margin-top: 10px;
|
|
font-size: 12px;
|
|
}
|
|
.doc-header {
|
|
font-family: helvetica neue,Helvetica,Arial,sans-serif;
|
|
overflow: visible;
|
|
height: 50px;
|
|
padding: 0 8px;
|
|
z-index: 2;
|
|
font-size: .85em;
|
|
color: #7e888b;
|
|
background: 0 0;
|
|
}
|
|
.doc-header .btn {
|
|
display: block;
|
|
height: 50px;
|
|
padding: 0 15px;
|
|
border-bottom: none;
|
|
color: #ccc;
|
|
text-transform: uppercase;
|
|
line-height: 50px;
|
|
-webkit-box-shadow: none!important;
|
|
box-shadow: none!important;
|
|
position: relative;
|
|
font-size: 14px;
|
|
}
|
|
.doc-header .btn:hover{
|
|
color:black;
|
|
}
|
|
.pull-right {
|
|
float: right!important;
|
|
}
|
|
.pull-left {
|
|
float: left!important;
|
|
}
|
|
|
|
.big-page .doc-summary{left: -300px;}
|
|
.big-page .doc-body{margin-left: 0;}
|
|
|
|
.doc-body-content{
|
|
position: relative;
|
|
outline: 0;
|
|
}
|
|
.doc-body-content-div{
|
|
position: relative;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px 15px 40px 15px;
|
|
}
|
|
.doc-content{
|
|
outline: 0;
|
|
max-width: 800px;
|
|
flex: 1 1 auto;
|
|
display: block;
|
|
padding: 0;
|
|
min-width: 0;
|
|
}
|
|
.doc-info{
|
|
text-align: center;
|
|
}
|
|
.doc-info h1{
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.toTop {
|
|
width: 70px;
|
|
height: 70px;
|
|
border-radius: 50%;
|
|
background: #f6f6f6;
|
|
text-align: center;
|
|
line-height: 70px;
|
|
/*返回顶部标签固定定位*/
|
|
position: fixed;
|
|
right: 35px;
|
|
bottom: 35px;
|
|
z-index: 999;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.toTop:hover {
|
|
background: #eeeeee;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
color: red;
|
|
}
|
|
|
|
.switch-font{
|
|
font-family: Serif;
|
|
}
|