mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
978c120279
Dry out the long set of similar selectors
23 lines
364 B
SCSS
23 lines
364 B
SCSS
// Support for BBCode styles like colors and font sizes
|
|
|
|
span {
|
|
&.bbcode-b {
|
|
font-weight: bold;
|
|
}
|
|
&.bbcode-i {
|
|
font-style: italic;
|
|
}
|
|
&.bbcode-u {
|
|
text-decoration: underline;
|
|
}
|
|
&.bbcode-s {
|
|
text-decoration: line-through;
|
|
}
|
|
// Font sizes
|
|
@for $i from 4 through 40 {
|
|
&.bbcode-size-#{$i} {
|
|
font-size: #{$i}px;
|
|
}
|
|
}
|
|
}
|