1.10 hexo网页定制
摘要
本文记录了1.10 hexo网页定制,要知道原作官方提供的hexo yeele网站的手机页面和电脑页面css布局和java页面交互的文本进行个性定制。第一部分,设置手机页面的 mobile-slider.styl 等文件, 里面的css文件。
第二部分是java交互界面的文件设置。
文章同步于: 我的gitbook
一、样式定制之css样式文件定制
使用之前删掉里面的注释
1.1 mobile-slider.styl
#viewer{
position: fixed;
z-index: 1000000;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
}
//mune bar setting
#viewer-box{
display: flex;
width: 100%;
height: 100%;
position: relative;
//设置浮窗的左边距
left:30px;
color: #0f0;
-webkit-transform: translate3d(-100%, 0, 0 );
-webkit-transition: -webkit-transform .25s ease-in-out;
//设置悬浮的弹窗页面
.viewer-box-l{
background: rgba(20,20,20,1);
width: 80%;
height: auto;
flex-grow: 0;
min-width: 8em;
max-width: 23em;
.viewer-box-wrap{
//revise the moble menu
margin: 20px 10px 10px 0px;
}
//frends links menu
.viewer-title{
line-height: 32px;
//black
background: rgba(0,0,0,1);
&:before{
content: "";
width: 6px;
height: 6px;
//border: 1px solid #999;
border: 1px solid #006699;
-webkit-border-radius: 10px;
border-radius: 10px;
//background is tabar of list content
background: #0000cc;
display: inline-block;
margin-right: 10px;
}
}
//div Underline, dash
.viewer-div{
//setting div 黄色背景幕布
background: rgba(255,255,153,0.85);
//蓝色圆点
border-bottom: 1px dotted #0000cc;
padding-bottom: 13px;
line-height: 20px;
&:last-child{
//设置标签背景白色透明,不继承上面的白色
border-bottom: none;
background: rgba(229,229,255,0.01);
}
.switch-friends-link{
line-height: 20px;
}
}
}
//black
.viewer-box-r{
flex-grow: 1
width: auto
height: auto
background: rgba(0,0,0,1)
&:hover {
cursor: w-resize
}
}
}
#viewer-box.anm-swipe{
-webkit-transform: translate3d(0, 0, 0);
.viewer-box-r{
background: rgba(0,0,0,1);
}
}
.hide{
display: none;
}
#viewer-box .viewer-list{
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}1.1 mobile.styl
Last updated
Was this helpful?