Skip to content

Commit

Permalink
Merge pull request #349 from vordgi/rd-348
Browse files Browse the repository at this point in the history
rd-348 improve transitions
  • Loading branch information
vordgi authored Oct 17, 2024
2 parents e9b182f + 95fc7d7 commit 868fbb6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/robindoc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "robindoc",
"version": "2.1.6",
"version": "2.1.7",
"description": "",
"main": "./lib/index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@
margin-bottom: 8px;
font-size: 14px;
line-height: 1.5;
transition: color 0.2s cubic-bezier(0, 0.66, 0.58, 1) 0.05s;

&.r-contents-link:hover {
color: var(--primary800);
transition-delay: initial;
}

&::before,
Expand Down
18 changes: 13 additions & 5 deletions packages/robindoc/src/components/elements/sidebar/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

&:hover::before {
background-color: var(--primary800);
transition-delay: initial;
}
}

Expand All @@ -59,7 +60,7 @@
border-bottom-left-radius: 2px;
background-color: var(--neutral200);
z-index: 1;
transition: background-color 0.2s;
transition: background-color 0.2s cubic-bezier(0, 0.66, 0.58, 1) 0.05s;
}

.r-sidebar-nav {
Expand Down Expand Up @@ -153,7 +154,7 @@
width: 2px;
height: calc(100% + 4px);
background-color: var(--neutral200);
transition: 0.2s;
transition: background-color 0.2s cubic-bezier(0, 0.66, 0.58, 1) 0.05s;
}
}

Expand Down Expand Up @@ -194,7 +195,9 @@
border-bottom: 2px solid transparent;
border-radius: 2px;
text-decoration: none;
transition: 0.2s;
transition:
background-color 0.2s cubic-bezier(0, 0.66, 0.58, 1) 0.05s,
color 0.2s cubic-bezier(0, 0.66, 0.58, 1) 0.05s;
}

.r-sidebar-link._target {
Expand All @@ -204,10 +207,12 @@

.r-sidebar-link:hover {
color: var(--primary800);
background-color: var(--neutral50);
background-color: var(--neutral100);
transition-delay: initial;

&::before {
background-color: currentColor;
transition-delay: initial;
}
}

Expand All @@ -229,11 +234,14 @@
background-color: var(--neutral200);
list-style: none;
cursor: pointer;
transition: 0.2s;
transition:
background-color 0.2s cubic-bezier(0, 0.66, 0.58, 1) 0.05s,
color 0.2s cubic-bezier(0, 0.66, 0.58, 1) 0.05s;

&:hover {
background-color: var(--neutral300);
color: var(--primary500);
transition-delay: initial;
}

&::before {
Expand Down

0 comments on commit 868fbb6

Please sign in to comment.