mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
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:
parent
de5b878b00
commit
0728f8389b
1 changed files with 15 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue