mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 21:44:12 +08:00
Darken user card bg to make text more readable
Will also be handy when there’s an extension that implements cover photos
This commit is contained in:
parent
f3fab617da
commit
720fbd6ac6
|
@ -1,5 +1,17 @@
|
||||||
.user-card {
|
.user-card {
|
||||||
.drawer-components();
|
.drawer-components();
|
||||||
|
|
||||||
|
&, & .container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.darken-overlay {
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
}
|
}
|
||||||
.user-hero {
|
.user-hero {
|
||||||
& .contextual-controls {
|
& .contextual-controls {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<div class="darken-overlay"></div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{#if controls}}
|
{{#if controls}}
|
||||||
{{ui/dropdown-button items=controls class="contextual-controls" menuClass="pull-right" buttonClass=controlsButtonClass}}
|
{{ui/dropdown-button items=controls class="contextual-controls" menuClass="pull-right" buttonClass=controlsButtonClass}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user