Browse Source

site: update edit button style

pull/2834/head
Benjy Cui 8 years ago
parent
commit
c92827324b
  1. 24
      site/theme/static/demo.less
  2. 12
      site/theme/static/markdown.less

24
site/theme/static/demo.less

@ -53,9 +53,12 @@
.code-box:target .code-box-title {
background: #fbfbfb;
box-shadow: 0 -1.2px 0 #e9e9e9;
margin-left: -16px;
padding-left: 16px;
.edit-button {
display: inline-block;
margin-right: 8px;
}
}
@ -107,26 +110,13 @@ section.code-box-meta p {
.code-box-title {
position: absolute;
top: -14px;
padding: 1px 1.1em;
padding: 1px 4px;
margin-left: -4px;
color: #777;
border-radius: 6px;
border-top-left-radius: 0;
background: #fff;
transition: all 0.4s ease;
}
.code-box-title:before {
font-family: anticon;
content: "\e658";
font-size: 16px;
vertical-align: middle;
line-height: 22px;
position: relative;
margin-right: 8px;
top: -2px;
color: #ccc;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
display: inline-block;
transition: background-color 0.4s ease;
}
.code-box-meta > p {

12
site/theme/static/markdown.less

@ -169,12 +169,20 @@
cursor: not-allowed;
}
.markdown .edit-button {
.markdown a.edit-button {
line-height: 12px;
display: inline-block;
margin-left: 10px;
height: 12px;
color: inherit;
i {
color: #999;
&:hover {
color: #2db7f5;
}
}
.anticon {
display: block;
font-size: 14px;

Loading…
Cancel
Save