rustdoc: use flexbox CSS to align sidebar button instead of position
This accomplishes the same thing with significantly less code.
This commit is contained in:
parent
aff003becd
commit
8b001b4da0
@ -1328,8 +1328,8 @@ a.test-arrow:hover {
|
||||
border-bottom: 1px solid;
|
||||
display: flex;
|
||||
height: 40px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
justify-content: stretch;
|
||||
align-items: stretch;
|
||||
z-index: 10;
|
||||
}
|
||||
#source-sidebar {
|
||||
@ -1357,13 +1357,7 @@ a.test-arrow:hover {
|
||||
text-align: center;
|
||||
border: none;
|
||||
outline: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
/* work around button layout strangeness: https://stackoverflow.com/q/7271561 */
|
||||
width: 100%;
|
||||
flex: 1 1;
|
||||
/* iOS button gradient: https://stackoverflow.com/q/5438567 */
|
||||
-webkit-appearance: none;
|
||||
opacity: 1;
|
||||
|
Loading…
Reference in New Issue
Block a user