mirror of
https://github.com/flarum/core.git
synced 2025-08-24 00:53:27 +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:
95
less/forum/Scrubber.less
Normal file
95
less/forum/Scrubber.less
Normal file
@@ -0,0 +1,95 @@
|
||||
.Scrubber {
|
||||
& a {
|
||||
margin-left: -5px;
|
||||
color: @muted-color;
|
||||
& .fa {
|
||||
font-size: 14px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
&:hover, &:focus {
|
||||
text-decoration: none;
|
||||
color: @link-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
.Scrubber-scrollbar {
|
||||
margin: 8px 0 8px 3px;
|
||||
height: 300px;
|
||||
min-height: 50px; // JavaScript sets a max-height
|
||||
position: relative;
|
||||
}
|
||||
.Scrubber-before, .Scrubber-after {
|
||||
border-left: 1px solid @control-bg;
|
||||
}
|
||||
.Scrubber-unread {
|
||||
position: absolute;
|
||||
border-left: 1px solid lighten(@muted-color, 10%);
|
||||
width: 100%;
|
||||
background-image: linear-gradient(to right, @control-bg, fade(@control-bg, 0) 10px, fade(@control-bg, 0));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: @muted-color;
|
||||
text-transform: uppercase;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
padding-left: 13px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.Scrubber-handle {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
background: @body-bg;
|
||||
width: 100%;
|
||||
padding: 5px 0;
|
||||
}
|
||||
.Scrubber-bar {
|
||||
height: 100%;
|
||||
width: 5px;
|
||||
background: @primary-color;
|
||||
border-radius: 4px;
|
||||
float: left;
|
||||
margin-left: -2px;
|
||||
transition: background 0.2s;
|
||||
|
||||
.disabled & {
|
||||
background: @control-bg;
|
||||
}
|
||||
}
|
||||
.Scrubber-info {
|
||||
margin-top: -1.5em;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 100%;
|
||||
left: 15px;
|
||||
|
||||
& strong {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.Scrubber-description {
|
||||
color: @muted-color;
|
||||
}
|
||||
|
||||
@media @phone {
|
||||
.PostStreamScrubber {
|
||||
.Dropdown-toggle {
|
||||
font-size: 14px;
|
||||
}
|
||||
.Dropdown-menu {
|
||||
padding: 30px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
.Scrubber-scrollbar {
|
||||
height: 40vh !important;
|
||||
max-height: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media @tablet-up {
|
||||
.PostStreamScrubber {
|
||||
margin: 30px 0 0 0;
|
||||
|
||||
.Dropdown--expanded();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user