Skip to content

Commit aeaa3ba

Browse files
authored
feat(theme-default): enhance color transitions (#321)
1 parent a8de0a9 commit aeaa3ba

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

packages/@vuepress/plugin-search/src/client/styles/search.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
line-height: 2rem;
1717
padding: 0 0.5rem 0 2rem;
1818
outline: none;
19-
transition: all 0.2s ease;
19+
transition: all ease 0.3s;
2020
background: var(--search-bg-color) url('search.svg') 0.6rem 0.5rem no-repeat;
2121
background-size: 1rem;
2222
}

packages/@vuepress/theme-default/src/client/styles/home.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171
.features {
7272
border-top: 1px solid var(--c-border);
73+
transition: border-top ease 0.3s;
7374
padding: 1.2rem 0;
7475
margin-top: 2.5rem;
7576
display: flex;

packages/@vuepress/theme-default/src/client/styles/layout.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
scrollbar-width: thin;
3535
scrollbar-color: var(--c-brand) var(--c-border);
3636
background-color: var(--c-bg-sidebar);
37-
transition: background-color ease 0.3s, border-right-color ease 0.3s;
37+
transition: transform ease 0.3s, background-color ease 0.3s,
38+
border-right-color ease 0.3s;
3839
&::-webkit-scrollbar {
3940
width: 7px;
4041
}
@@ -160,7 +161,6 @@ h6 {
160161
top: 0;
161162
padding-top: var(--navbar-height);
162163
transform: translateX(-100%);
163-
transition: transform 0.2s ease;
164164
}
165165

166166
.page {

packages/@vuepress/theme-default/src/client/styles/normalize.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ code {
4848
background-color: var(--c-bg-light);
4949
border-radius: 3px;
5050
overflow-wrap: break-word;
51-
transition:
52-
background-color ease 0.3s,
53-
color ease 0.3s;
51+
transition: background-color ease 0.3s, color ease 0.3s;
5452
}
5553

5654
blockquote {

packages/@vuepress/theme-default/src/client/styles/page.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
min-height: 2rem;
6060
margin-top: 0;
6161
border-top: 1px solid var(--c-border);
62+
transition: border-top ease 0.3s;
6263
padding-top: 1rem;
6364
overflow: auto;
6465
}

packages/@vuepress/theme-default/src/client/styles/sidebar.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
.navbar-links {
1515
display: none;
1616
border-bottom: 1px solid var(--c-border);
17+
transition: border-bottom-color ease 0.3s;
1718
padding: 0.5rem 0 0.75rem 0;
1819

1920
a {

0 commit comments

Comments
 (0)