Browse Source

site: improve style of toc and color page

pull/4667/head
afc163 8 years ago
parent
commit
6c98d94b0d
  1. 15
      site/theme/static/colors.less
  2. 5
      site/theme/static/toc.less

15
site/theme/static/colors.less

@ -4,21 +4,22 @@
.main-color {
overflow: hidden;
}
.main-color {
display: flex;
&-item {
width: 80px;
height: 60px;
flex: 1;
height: 80px;
border-radius: 4px;
float: left;
margin: 0 5px 5px 0;
margin-right: 4px;
transition: all .2s;
position: relative;
text-align: center;
padding-top: 20px;
padding-top: 28px;
font-family: Consolas;
font-size: 12px;
&:last-child {
margin-right: 0;
}
}
&-item &-value {
font-size: 12px;

5
site/theme/static/toc.less

@ -5,6 +5,11 @@
list-style: none;
}
.markdown .toc {
background: #fbfbfb;
border-left: 2px solid #eee;
}
.toc > ul {
padding: 8px 0;
list-style: none;

Loading…
Cancel
Save