mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 02:43:44 +08:00
use font awesome for the composer toolbar (not very happy with heading and hr icon, but can not find anything better)
This commit is contained in:
parent
91b507f4c4
commit
a5b2c0c476
|
@ -39,7 +39,6 @@
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
background-image: image-url("wmd-buttons.png");
|
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 0px 0px;
|
background-position: 0px 0px;
|
||||||
border: 0px;
|
border: 0px;
|
||||||
|
@ -48,70 +47,79 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
border: 0;
|
border: 0;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
|
font-family: FontAwesome;
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
text-decoration: inherit;
|
||||||
|
display: inline;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
line-height: normal;
|
||||||
|
vertical-align: baseline;
|
||||||
|
background-image: none !important;
|
||||||
|
background-position: 0% 0%;
|
||||||
|
background-repeat: repeat;
|
||||||
|
background-color: white;
|
||||||
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin wmd-button($offset: 0px) {
|
.wmd-button:hover {
|
||||||
background-position: $offset 0;
|
background-color: #99c0fa;
|
||||||
@include hover {
|
|
||||||
background-position: $offset -40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:disabled {
|
|
||||||
background-position: $offset -20px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-bold-button {
|
|
||||||
@include wmd-button(0px);
|
#wmd-bold-button:before {
|
||||||
|
content: "\f032";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-italic-button {
|
|
||||||
@include wmd-button(-20px);
|
#wmd-italic-button:before {
|
||||||
|
content: "\f033";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-link-button {
|
#wmd-link-button:before {
|
||||||
@include wmd-button(-40px);
|
content: "\f0c1";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-quote-button {
|
#wmd-quote-button:before {
|
||||||
@include wmd-button(-60px);
|
content: "\f10e";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-code-button {
|
#wmd-code-button:before {
|
||||||
@include wmd-button(-80px);
|
content: "\f039";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-image-button {
|
#wmd-image-button:before {
|
||||||
@include wmd-button(-100px);
|
content: "\f03e";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-olist-button {
|
#wmd-olist-button:before {
|
||||||
@include wmd-button(-120px);
|
content: "\f0cb";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-ulist-button {
|
#wmd-ulist-button:before {
|
||||||
@include wmd-button(-140px);
|
content: "\f0ca";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-heading-button {
|
#wmd-heading-button:before {
|
||||||
@include wmd-button(-160px);
|
content: "\f031";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-hr-button {
|
#wmd-hr-button:before {
|
||||||
@include wmd-button(-180px);
|
content: "\f068";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-undo-button {
|
#wmd-undo-button:before {
|
||||||
@include wmd-button(-200px);
|
content: "\f0e2";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-redo-button {
|
#wmd-redo-button:before {
|
||||||
@include wmd-button(-220px);
|
content: "\f01e";
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-quote-post {
|
#wmd-quote-post:before {
|
||||||
background-image: image-url("wmd-quote-post.gif");
|
content: "\f0e5";
|
||||||
@include wmd-button(0px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wmd-prompt-background {
|
.wmd-prompt-background {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user