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-26 09:12:50 +09:00
committed by GitHub
parent de5b878b00
commit 0728f8389b
+15 -7
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