Style links and code blocks in text-* classes

This commit is contained in:
Ben Ogle 2015-05-28 16:09:15 -07:00
parent 99d4d90d85
commit 98dc2f9d7f
2 changed files with 36 additions and 0 deletions

View File

@ -25,5 +25,6 @@
@import "text-editor-light";
@import "select-list";
@import "syntax";
@import "text";
@import "utilities";
@import "octicons";

35
static/text.less Normal file
View File

@ -0,0 +1,35 @@
.text-bits (@type) {
@text-color: "text-color-@{type}";
@bg-color: "background-color-@{type}";
code {
color: @@text-color;
background: fadeout(@@bg-color, 80%);
}
a, a code {
color: @@text-color;
text-decoration: underline;
color: darken(@@text-color, 10%);
&:hover {
color: darken(@@text-color, 15%);
}
}
}
.text-info {
.text-bits(info);
}
.text-success {
.text-bits(success);
}
.text-warning {
.text-bits(warning);
}
.text-error {
.text-bits(error);
}