mirror of
https://github.com/flarum/core.git
synced 2025-08-11 10:55:47 +02:00
Major CSS revamp
- Get rid of Bootstrap (except we still rely on some JS) - Use BEM class names - Rework variables/theme config - Fix various bugs, including some on mobile The CSS is still not ideal – it needs to be cleaned up some more. But that can be a focus for after beta.
This commit is contained in:
35
less/lib/Badge.less
Executable file
35
less/lib/Badge.less
Executable file
@@ -0,0 +1,35 @@
|
||||
.Badge {
|
||||
.Badge--size(23px);
|
||||
border: 1px solid @body-bg;
|
||||
background: @muted-color;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 6px @shadow-color;
|
||||
|
||||
.Badge-label {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.Badge--size(@size) {
|
||||
width: @size;
|
||||
height: @size;
|
||||
border-radius: @size / 2;
|
||||
line-height: @size - 5px;
|
||||
|
||||
&, .Badge-icon {
|
||||
font-size: 0.56 * @size;
|
||||
}
|
||||
}
|
||||
|
||||
.badges {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
&, > li {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user