site: update edit button style

This commit is contained in:
Benjy Cui
2016-08-19 16:11:32 +08:00
parent 6289d1202b
commit c92827324b
2 changed files with 17 additions and 19 deletions
+7 -17
View File
@@ -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 {
+10 -2
View File
@@ -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;