chore: enhance details

This commit is contained in:
EnixCoda 2020-08-09 23:52:45 +08:00
parent cd7b5087b1
commit 95fafcbfac
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
3 changed files with 7 additions and 8 deletions

View file

@ -21,7 +21,7 @@ const options: Option<Config['toggleButtonContent']>[] = [
{
key: 'octoface',
value: 'octoface',
label: `Octoface`,
label: `The Classic Octoface`,
},
]

View file

@ -166,7 +166,7 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header-
.#{$name}-toggle-show-button-wrapper {
z-index: $minimal-z-index;
position: fixed;
top: 80px;
top: 124px; // align with GitHub's navbar items
left: 0px;
display: inline-flex;
align-items: center;
@ -183,17 +183,16 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header-
height: 32px;
border-radius: 6px;
border: 1px solid $border-gray-dark;
background: $bg-black;
background: $bg-gray;
color: $gray-900;
&:active {
background: $bg-black-fade;
color: $gray-600;
}
color: $text-white;
transition: all linear 0.3s;
transition: all ease 0.3s;
font-size: 16px;
transform: translateX(0px);
&:active,
&:hover {
font-size: 20px;
transform: translateX(4px);
}
}

View file

@ -37,7 +37,7 @@ const defaultConfigs: Config = {
copySnippetButton: true,
intelligentToggle: null,
icons: 'rich',
toggleButtonVerticalDistance: 80,
toggleButtonVerticalDistance: 124, // align with GitHub's navbar items
toggleButtonContent: 'logo',
shrinkGitHubHeader: false,
}