《Deep Learning Series》
  • 深耕系列之深度学习笔记
  • 第一章 Linux学习环境相关配置
    • 1.1 Ubuntu18下有道词典的配置
    • 1.2 Ubuntu18 安装Gitbook
    • 1.3 Ubuntu18 git命令使用总结
    • 1.4 Latex 排版使用笔记
    • 1.5 Ubuntu下常用工具软件配置安装
    • 1.6 win10+ubuntu双系统修复ubuntu启动引导
    • 1.7 gitbook 插件等相关设置
    • 1.8 深度学习环境搭建
    • 1.9 hexo 实现本地图片加载
    • 1.10 hexo网页定制
    • 1.11 sublime text3插件介绍
    • 1.12 vsftpd.conf文件配置
    • 1.13 mysql 笔记
    • 1.14 ubuntu16_18安装peek工具录制gif
    • 1.15 ubuntu下goldendict有道爬虫小程序
    • 1.16 ubuntu18升级后部分应用不能中文输入的问题
    • 1.17 ubuntu下安装有道词典
    • 1.18 opencv 安装
    • 1.19 gym_gazabe安装配置
    • 1.20 docker 基础
    • 1.21 docker_配置权限问题
    • 1.22 jupyternotebook使用
  • 第二章 深度学习相关基础算法
    • 2.1 马尔科夫链
      • 2.1.1 马尔科夫简单模型预测实战笔记
      • 2.1.2 最大熵模型
      • 2.1.3 隐马尔科夫HMM
    • 2.2 矩阵相关基础知识
    • 2.3 线性回归
    • 2.4 决策树
    • 2.5 梯度下降和最小二乘法
    • 2.6 递归算法与迭代算法
    • 2.7 神经网络浅学笔记
    • 2.8 强化学习经验回放
    • 2.9 K近邻算法
    • 2.10 朴素贝叶斯法
    • 2.11 极大似然估计
    • 2.12 logistic regression
  • 第三章 深度学习框架学习
    • 3.1 PyTorch 学习
      • 3.1.2 Pytorch 之MNIST手写字识别分类
    • 3.2 tensorflow学习笔记
      • 3.2.1 tensorflow之MNIST
    • 3.3 matplotlib函数
    • 3.4 numpy函数
  • 第四章 ROS机器人
    • ROS室内仿真环境.md
    • ros and gazebo and gym_gazebo安装
    • ubuntu16 安装gym-gazebo
    • gym-gazebo安装后的测试
    • 基于DQN的gym_gazebo运行代码演示
  • 项目开发
    • Library占座小工具使用手册
  • 附录
    • Python 相关笔记
      • Python 帮助文档检索方法
      • Module篇使用future
    • Git 相关配置
      • git-推送新的文章到github其他分支上
      • gitignre 配置
      • gitignre 配置
      • Hexo 每次写好后deploy博客
      • MFC Socket 通信
      • python之tkinter入坑Pack
      • ubuntu 中安装sublime_text3
      • ubuntu18-正确-安装ShadowSocket
      • vultr+freenom实现主机域名的绑定.md
      • 值得收藏的网站
      • 搜索技巧
      • 第一篇博文
      • 简单的方法,越过付费获取在线的log设计.md
      • 网页设计基础笔记.md
      • 解决Chrome67版本以后不能离线安装插件的情况.md
    • 嵌入式相关笔记
      • STM32串口通信配置
      • STM32复位及通过函数判断是何种条件出发的复位
Powered by GitBook
On this page
  • 摘要
  • 一、样式定制之css样式文件定制
  • 1.1 mobile.styl

Was this helpful?

  1. 第一章 Linux学习环境相关配置

1.10 hexo网页定制

Previous1.9 hexo 实现本地图片加载Next1.11 sublime text3插件介绍

Last updated 5 years ago

Was this helpful?

摘要

本文记录了1.10 hexo网页定制,要知道原作官方提供的hexo yeele网站的手机页面和电脑页面css布局和java页面交互的文本进行个性定制。第一部分,设置手机页面的 mobile-slider.styl 等文件, 里面的css文件。

第二部分是java交互界面的文件设置。

文章同步于:

一、样式定制之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

.left-col {
    display: none;
}
.mid-col {
    left: 0;
}
#header{
    .header-nav{
        position: relative;
    }
    .header-menu {
        line-height: 1.3
        min-height 3rem
    }
}
.header-author{
    &.fixed{
        position: fixed;
        top: -8px;
        width: 100%;
        color: #ddd;
        a {
          color: white;
        }
    }
}
.overlay{
    .slider-trigger{
        position: absolute;
/*设置手机页面滑动图标置于最上层显示*/
        z-index: 999;
        bottom: 0;
        left: 0;
        width: 42px;
        height: 42px;
        &:hover{
            background: #3399;
        /*background: #444;*/
        }
        &:before{
        /*background: #ff3399;*/
            color: #ddd;
            content: "\f00b";
            font: 16px FontAwesome;
            width: 16px;
            height: 16px;
            margin-left: 9px;
            margin-top: 14px;
            display: block;
        }
    }
}
.article-header{
    border-left: none;
    padding: 0;
    border-bottom: 1px dotted #ddd;
    h1{
        margin-bottom: 2px;
    }
}
#header .header-subtitle{
    padding: 0 3em;
    font-size: 1em;
}

.article-info-index.article-info{
  padding-top: 10px;
  margin: 0;
  border-top: 1px solid #ddd;
}
.article-info-post.article-info{
    margin: 0;
    padding-top: 10px;
    border: none;
}

#viewer-box .viewer-box-l{
    font-size: 14px;
}
.article{
    margin: (10/16)rem 10px;
    .article-entry{
        padding-left: 0;
        padding-right: 0;
        .highlight {
            padding .35em .6em
        }
    }
    .article-title{
        display: block;
        margin: 0;
        font-size 1.5rem
        font-weight bold
    }
    .article-meta{
        display: none;
    }
}

.article-inner {
  padding: 12px;
}

.archive-article-inner .article-meta {
    top: 0;
    margin-top: .5em;
}

.archives {
    .archive-article {
    padding: 0;
    }
    .archive-article-date {
        margin-right: 0;
    }
    .article-info {
    display: none;
    }
}

.archive-article-inner .article-meta .archive-article-date

.share{
    padding: 3px 10px;
}
.duoshuo {
    padding: 0 13px;
}
#disqus_thread {
    padding: 0 13px;
}

#mobile-nav{
    display: block;
}

#page-nav .extend{
    opacity: 1;
}

#page-nav {
    margin-top: 1em;
    .page-number {
        margin-bottom: 1.5em;
    }
}

.instagram .open-ins{
    left: 2px;
    top: -30px;
    color: #aaa;
}
.info-on-right{
    float: initial;
}
.archives-wrap{
    margin: 10px 10px 0px;
    padding: 10px;
    padding-right: 0;
    .archive-year-wrap{
        position: relative;
        padding: 0 0 0 0;
        a{
            padding: 0 0 0 0;
        }
    }
    h1 {
        font-size: 1.2em;
        margin-bottom: .3em;
    }
}
.archives{
    .archive-article{
        padding: 10px 0;
        margin-left: 0;
    }
}

#footer {
    .footer-left{
        float: initial;
        margin-bottom: .5em;
    }
    .footer-right{
        float: initial;
        margin-bottom: 1em;
    }
    .visit {
        margin: 0;
    }
}

.article-category::before{
    display: none;
}
.article-tag::before {
     display: none;
}
.article-meta time:before {
    display: none;
}
.visit {
    margin-top: 1em;
}

#tocButton {
    z-index: 100;
    position: fixed;
    left: .5em;
    top: auto; /*In order to cover style in article.styl*/
    bottom: 10px;
    padding: .2em .4em;
    border-radius: 6px;
    border-style : outset;
    background: rgba(255, 255, 255, .7);
    font-size: 1em;
    font-weight: bold;
    color: gray;
    &:hover {
        color: #88acdb;
        font-size: 1em;
    }
}

.toc-article {
    display: none;
    z-index: 99
    left: 0;
    top: 38%;
    bottom: 1em;
    height: auto;
    max-height: 58%;
    width: none;
    width: auto;
    min-width: 7em;
    max-width: 61.8%;
    overflow: auto;
    margin-left: 0;
    padding: 10px;
    padding-left: 0;
    border-radius: 2.8%;
    background: none;
    font-size: 1em;
    line-height: 1.25em;
    .toc-title {
        display: none;
        padding: .3em;
        color: white;
        background: lightgray;
        border-radius 3px
    }
    .toc {
        padding: 0.5em;
    }
    ol {
        margin: 0;
        padding: 0.5em;
        border-radius: 5px;
        background: rgba(255, 255, 255, .85);
        ol {
            padding: 0.1em 0;
            padding-left: 1.2em;
        }
    }
    a {
        color: #767676;
    }
}

if toc-nowrap
    li.toc-item
        line-height: 1.2

.copyright {
    width: 90%;
    padding: .5em .8em;
}

.scroll {
    right: 1.2em;
    li {
        font-size: 1.7em;
    }
}

.hide-labels {
    z-index: 100;
    position: fixed;
    left: .5em;
    top: auto; 
    bottom: 10px;
    padding: .2em .4em;
    border-radius: 6px;
    border-style : outset;
    opacity: .9;
    background: rgba(255, 255, 255, .8);
    font-weight: bold;
    color: gray;
}

#post-nav-button {
    display: none;
}

.post-list {
    visibility: hidden;
}

/*多说 UA*/
.ua {
    display: none !important;
}

if hexo-config("github_widget")
    .github-text
        display none

.copyright
    font-size 16px
    .copy-path
        display none

// Tags Cloud Page
.tags a
    line-height 45px
我的gitbook