Browse Source

update code box toggle button style

pull/20/head
afc163 10 years ago
parent
commit
fc3d1da0ea
  1. 2
      site/templates/code.html
  2. 27
      static/style.css

2
site/templates/code.html

@ -6,6 +6,6 @@
<div class="code-box-meta">
<div class="code-box-title">{{ post.title }}</div>
{{ post.meta.description }}
<span class="collapse iconfont-home icon-chevron"></span>
<span class="collapse anticon anticon-circle-right"></span>
</div>
</div>

27
static/style.css

@ -1741,30 +1741,23 @@ footer ul li > a {
right: 15px;
top: 50%;
cursor: pointer;
border: 1px solid #999;
width: 20px;
height: 20px;
line-height: 20px;
font-size: 14px;
border-radius: 100%;
width: 18px;
height: 18px;
font-size: 18px;
line-height: 18px;
opacity: 0.5;
margin-top: -10px;
text-align: center;
transform: rotate(90deg);
transition: all 0.3s ease;
}
.code-box .collapse:hover {
opacity: 1;
}
.code-box .collapse:before {
transform: rotate(90deg);
transform-origin: 50% 50%;
display: inline-block;
transition: transform 0.3s ease;
.code-box.expand .collapse {
transform: rotate(-90deg);
}
.code-box.expand .collapse:before {
transform: rotate(270deg);
.code-box .collapse:hover {
opacity: 1;
}
.code-box .highlight {

Loading…
Cancel
Save