Better sidebar header css styling
Use sticky header which removes some hard-coded pixel positions and should work in safari.
This commit is contained in:
@@ -4,4 +4,5 @@
|
||||
|
||||
a.name {
|
||||
line-height: 1.75rem;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
@@ -25,25 +25,29 @@
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
position: sticky;
|
||||
top: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.close {
|
||||
position: fixed;
|
||||
top: 4px;
|
||||
left: 240px;
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
font-size: 24px;
|
||||
margin-left: 12px;
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
.close {
|
||||
top: calc(55% + 8px);
|
||||
left: initial;
|
||||
right: 12px;
|
||||
}
|
||||
margin-top: -16px;
|
||||
}
|
||||
|
||||
.close:hover {
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
.cell-name-header {
|
||||
line-height: 1.75rem;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user