Website: Update mobile docs styles (#16367)

Closes: #16324

Changes:
- Updated the "Edit page" button on documentation pages to always be
visible on mobile devices.
This commit is contained in:
Eric 2024-01-25 18:12:50 -06:00 committed by GitHub
parent de5b878b00
commit 0728f8389b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,7 +210,7 @@
[purpose='edit-button'] {
color: @core-vibrant-blue;
opacity: 0;
font-size: 12px;
position: absolute;
right: 230px;
@ -228,13 +228,9 @@
color: @accent-white;
text-decoration: none;
}
} &:hover {
[purpose='edit-button'] {
opacity: 1;
}
}
[purpose='search'] {
.form-control {
@ -283,6 +279,7 @@
padding: 0;
padding-top: 12px;
padding-bottom: 12px;
cursor: pointer;
&:focus {
box-shadow: none;
@ -972,7 +969,18 @@
}
}
@media(hover) {
[purpose='docs-template'] {
[purpose='edit-button'] {
opacity: 0;
}
}
[purpose='docs-template']:hover {
[purpose='edit-button'] {
opacity: 1;
}
}
}
@import 'code-blocks.less'; // styles for code blocks and hljs