Skip to content

Commit 3125fc7

Browse files
committed
chore: move config.styl to core
1 parent a5f58f7 commit 3125fc7

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

packages/@vuepress/theme-default/styles/config.styl renamed to packages/@vuepress/core/lib/app/style/config.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// colors
2-
$accentColor = #3eaf7c
2+
$accentColor = #3eaf73
33
$textColor = #2c3e50
44
$borderColor = #eaecef
55
$codeBgColor = #282c34

packages/@vuepress/theme-default/components/AlgoliaSearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default {
5959
</script>
6060

6161
<style lang="stylus">
62-
@import '../styles/config.styl'
62+
@import '~@app/style/config'
6363
6464
.algolia-search-wrapper
6565
& > span

packages/@vuepress/theme-default/components/Badge.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
</script>
2222

2323
<style lang="stylus" scoped>
24-
@import '../styles/config.styl'
24+
@import '~@app/style/config'
2525
2626
.badge
2727
display inline-block

packages/@vuepress/theme-default/components/DropdownLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default {
7777
</script>
7878

7979
<style lang="stylus">
80-
@import '../styles/config.styl'
80+
@import '~@app/style/config'
8181
8282
.dropdown-wrapper
8383
cursor pointer

packages/@vuepress/theme-default/components/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default {
7070
</script>
7171

7272
<style lang="stylus">
73-
@import '../styles/config.styl'
73+
@import '~@app/style/config'
7474
7575
.home
7676
padding $navbarHeight 2rem 0

packages/@vuepress/theme-default/components/NavLinks.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default {
116116
</script>
117117

118118
<style lang="stylus">
119-
@import '../styles/config.styl'
119+
@import '~@app/style/config'
120120
121121
.nav-links
122122
display inline-block

packages/@vuepress/theme-default/components/Navbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function css (el, property) {
8686
</script>
8787

8888
<style lang="stylus">
89-
@import '../styles/config.styl'
89+
@import '~@app/style/config'
9090
9191
$navbar-vertical-padding = 0.7rem
9292
$navbar-horizontal-padding = 1.5rem

packages/@vuepress/theme-default/components/Page.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function find (page, items, offset) {
195195
</script>
196196

197197
<style lang="stylus">
198-
@import '../styles/config.styl'
198+
@import '~@app/style/config'
199199
@require '../styles/wrapper.styl'
200200
201201
.page

packages/@vuepress/theme-default/components/SearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default {
152152
</script>
153153

154154
<style lang="stylus">
155-
@import '../styles/config.styl'
155+
@import '~@app/style/config'
156156
157157
.search-box
158158
display inline-block

packages/@vuepress/theme-default/components/Sidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function resolveOpenGroupIndex (route, items) {
7979
</script>
8080

8181
<style lang="stylus">
82-
@import '../styles/config.styl'
82+
@import '~@app/style/config'
8383
8484
.sidebar
8585
ul

packages/@vuepress/theme-default/components/SidebarButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</template>
88

99
<style lang="stylus">
10-
@import '../styles/config.styl'
10+
@import '~@app/style/config'
1111
1212
.sidebar-button
1313
display none

packages/@vuepress/theme-default/components/SidebarLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function renderChildren (h, children, path, route, maxDepth, depth = 1) {
5959
</script>
6060

6161
<style lang="stylus">
62-
@import '../styles/config.styl'
62+
@import '~@app/style/config'
6363
6464
.sidebar .sidebar-sub-headers
6565
padding-left 1rem

packages/@vuepress/theme-default/styles/code.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@require './config'
1+
@import '~@temp/override.styl'
22

33
.content
44
code

packages/@vuepress/theme-default/styles/theme.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@require './config'
1+
@require '~@app/style/config'
22
@require './nprogress'
33
@require './code'
44
@require './custom-blocks'

0 commit comments

Comments
 (0)