mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-07 14:35:26 +02:00
updated styles
This commit is contained in:
parent
6be524d3aa
commit
04f836f37b
2 changed files with 9 additions and 8 deletions
|
@ -70,12 +70,11 @@ export default class SidebarFilter {
|
|||
if (window.navigator.userAgent.indexOf('Mac') !== -1) {
|
||||
shortcutText = '⌘ P';
|
||||
}
|
||||
shortcutText = '⌘ P';
|
||||
this.search.parentElement.setAttribute('data-shortcut', shortcutText);
|
||||
|
||||
// Initialize search input.
|
||||
this.search.value = '';
|
||||
// Initialize the search results.
|
||||
this.filter('');
|
||||
|
||||
// Add event listener for search input.
|
||||
this.search.addEventListener('input', e => {
|
||||
|
|
|
@ -81,9 +81,9 @@
|
|||
background-color: var(--color-input-primary);
|
||||
border: 1px solid transparent;
|
||||
border-radius: 8px;
|
||||
padding: 8px 35px;
|
||||
padding-right: 45px;
|
||||
line-height: 21px;
|
||||
padding: 8.5px 35px;
|
||||
padding-right: 42px;
|
||||
line-height: 17px;
|
||||
|
||||
&-wrapper::after {
|
||||
color: var(--color-button-secondary);
|
||||
|
@ -91,7 +91,7 @@
|
|||
font-size: 14px;
|
||||
line-height: 17px;
|
||||
content: attr(data-shortcut);
|
||||
margin-left: -50px;
|
||||
margin-left: -42px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@
|
|||
line-height: 21px;
|
||||
height: 29px;
|
||||
|
||||
@media (--mobile){
|
||||
@media (--mobile) {
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
@ -268,7 +268,9 @@
|
|||
&__slider {
|
||||
display: none;
|
||||
position: fixed;
|
||||
transform: translateX(calc(var(--layout-sidebar-width) + var(--hide-sidebar-toggler-offset)));
|
||||
transform: translateX(
|
||||
calc(var(--layout-sidebar-width) + var(--hide-sidebar-toggler-offset))
|
||||
);
|
||||
bottom: var(--hide-sidebar-toggler-offset);
|
||||
width: var(--hide-sidebar-toggler-size);
|
||||
height: var(--hide-sidebar-toggler-size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue