mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +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:
26
less/lib/Avatar.less
Executable file
26
less/lib/Avatar.less
Executable file
@@ -0,0 +1,26 @@
|
||||
.Avatar {
|
||||
display: inline-block;
|
||||
box-sizing: content-box;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
background-color: @control-bg;
|
||||
font-weight: normal;
|
||||
.Avatar--size(48px);
|
||||
|
||||
img {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 100%;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
.Avatar--size(@size) {
|
||||
width: @size;
|
||||
height: @size;
|
||||
border-radius: @size;
|
||||
font-size: @size / 2;
|
||||
line-height: @size;
|
||||
}
|
Reference in New Issue
Block a user