Skip to content

Commit b4560bf

Browse files
author
reco_luan
committed
style: ununify styles
Include box-shadow/text-shadow/border-radius.
1 parent 0ec13d6 commit b4560bf

File tree

15 files changed

+73
-52
lines changed

15 files changed

+73
-52
lines changed

components/AlgoliaSearchBox.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default {
6060
</script>
6161

6262
<style lang="stylus">
63+
@require '../styles/recoConfig.styl'
6364
.algolia-search-wrapper
6465
& > span
6566
vertical-align middle
@@ -68,7 +69,7 @@ export default {
6869
.ds-dropdown-menu
6970
background-color #fff
7071
border 1px solid #999
71-
border-radius 4px
72+
border-radius $borderRadius
7273
font-size 16px
7374
margin 6px 0 0
7475
padding 4px

components/DropdownLink.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ export default {
8080
</script>
8181

8282
<style lang="stylus">
83+
@require '../styles/recoConfig.styl'
84+
8385
.dropdown-wrapper
8486
cursor pointer
8587
.dropdown-title
@@ -173,9 +175,9 @@ export default {
173175
right 0
174176
background-color #fff
175177
padding 0.6rem 0
176-
box-shadow: 0 4px 20px 0 rgba(0,0,0,.2);
178+
box-shadow: $boxShadow;
177179
text-align left
178-
border-radius 0.25rem
180+
border-radius $borderRadius
179181
white-space nowrap
180182
margin 0
181183
</style>

components/Home.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export default {
9898
</script>
9999

100100
<style lang="stylus">
101+
@require '../styles/recoConfig.styl'
101102
@require '../styles/loadMixin.styl'
102103
103104
.home {
@@ -127,7 +128,7 @@ export default {
127128
color: #fff;
128129
background-color: $accentColor;
129130
padding: 0.6rem 1.2rem;
130-
border-radius: 4px;
131+
border-radius: $borderRadius
131132
transition: background-color 0.1s ease;
132133
box-sizing: border-box;
133134
load-start()

components/HomeBlog.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export default {
185185
</script>
186186

187187
<style lang="stylus">
188+
@require '../styles/recoConfig.styl'
188189
@require '../styles/loadMixin.styl'
189190
190191
.home-blog {
@@ -235,11 +236,12 @@ export default {
235236
margin-left 15px;
236237
flex 0 0 300px
237238
height auto;
238-
box-shadow 0 2px 10px rgba(0,0,0,0.2);
239+
box-shadow $boxShadow;
240+
border-radius $borderRadius
239241
box-sizing border-box
240242
padding 0 15px
241243
&:hover {
242-
box-shadow: 0 4px 20px 0 rgba(0,0,0,0.2);
244+
box-shadow: $boxShadowHover;
243245
}
244246
.personal-img {
245247
display block
@@ -278,8 +280,8 @@ export default {
278280
margin-bottom .4rem
279281
padding: .4rem .8rem;
280282
transition: all .5s
281-
border-radius 2px
282-
box-shadow 0 1px 4px 0 rgba(0,0,0,0.2)
283+
border-radius $borderRadius
284+
box-shadow $boxShadow
283285
&:not(:first-child) {
284286
border-top: none;
285287
}
@@ -301,7 +303,7 @@ export default {
301303
height 1.6rem
302304
text-align center
303305
line-height 1.6rem
304-
border-radius 4px
306+
border-radius $borderRadius
305307
background #eee
306308
font-size .6rem
307309
color $textColor

components/Navbar.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,15 @@ function css (el, property) {
8787
</script>
8888

8989
<style lang="stylus">
90+
@require '../styles/recoConfig.styl'
91+
9092
$navbar-vertical-padding = 0.7rem
9193
$navbar-horizontal-padding = 1.5rem
9294
9395
.navbar
9496
padding $navbar-vertical-padding $navbar-horizontal-padding
9597
line-height $navbarHeight - 1.4rem
96-
box-shadow 0 1px 6px 0 rgba(32,33,36,.28)
98+
box-shadow $boxShadow
9799
a, span, img
98100
display inline-block
99101
.logo

components/NoteAbstract.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default {
2626
</script>
2727

2828
<style lang="stylus" scoped>
29+
@require '../styles/recoConfig.styl'
2930
3031
.abstract-wrapper
3132
width 100%
@@ -34,13 +35,13 @@ export default {
3435
padding: 16px 20px;
3536
width 100%
3637
overflow: hidden;
37-
border-radius: 2px;
38-
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
38+
border-radius: $borderRadius
39+
box-shadow: $boxShadow;
3940
box-sizing: border-box;
4041
transition all .3s
4142
background-color $bgColor
4243
&:hover
43-
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
44+
box-shadow: $boxShadowHover
4445
.title
4546
position: relative;
4647
font-size: 1.28rem;

components/Password.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export default {
9494
</script>
9595

9696
<style lang="stylus" scoped>
97+
@require '../styles/recoConfig.styl'
9798
.theme-container.no-sidebar
9899
.password-shadow
99100
padding-left 0
@@ -119,7 +120,7 @@ export default {
119120
font-size 30px
120121
box-sizing: border-box;
121122
padding: 0 10px;
122-
text-shadow 0 2px 10px rgba(0,0,0,0.2);
123+
text-shadow $textShadow
123124
}
124125
.description {
125126
position: absolute;
@@ -132,13 +133,13 @@ export default {
132133
font-size 22px
133134
box-sizing: border-box;
134135
padding: 0 10px;
135-
text-shadow 0 2px 10px rgba(0,0,0,0.2);
136+
text-shadow $textShadow
136137
}
137138
.inputBox{
138139
max-width:700px;
139140
height: 100px;
140141
background: $accentColor;
141-
border-radius: 2px;
142+
border-radius: $borderRadius
142143
position: absolute;
143144
left 0
144145
right 0
@@ -191,7 +192,7 @@ export default {
191192
button{
192193
width:0px;
193194
height:98px;
194-
border-radius: 2px;
195+
border-radius: $borderRadius
195196
position: absolute;
196197
border 1px solid $accentColor
197198
right:1px;
@@ -229,7 +230,7 @@ export default {
229230
max-width:700px;
230231
height: 60px;
231232
background: $accentColor;
232-
border-radius: 2px;
233+
border-radius: $borderRadius
233234
position: absolute;
234235
left 0
235236
right 0
@@ -282,7 +283,7 @@ export default {
282283
button{
283284
width:0px;
284285
height:58px;
285-
border-radius: 2px;
286+
border-radius: $borderRadius
286287
position: absolute;
287288
border 1px solid $accentColor
288289
right:1px;
@@ -311,4 +312,4 @@ export default {
311312
@media (max-width: $MQMobile)
312313
.password-shadow
313314
padding-left 0
314-
</style>
315+
</style>

components/TagList.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ export default {
4545
</script>
4646

4747
<style lang="stylus" scoped>
48+
@require '../styles/recoConfig.styl'
49+
4850
.tags
4951
margin 30px 0
5052
span
@@ -53,14 +55,14 @@ export default {
5355
padding: 4px 8px;
5456
display: inline-block;
5557
cursor: pointer;
56-
border-radius: 2px;
58+
border-radius: $borderRadius
5759
background: #fff;
5860
color: #fff;
5961
font-size: 13px;
60-
box-shadow 0 1px 4px 0 rgba(0,0,0,0.2)
62+
box-shadow $boxShadow
6163
transition: all .5s
6264
&:hover
6365
transform scale(1.04)
6466
&.active
6567
transform scale(1.2)
66-
</style>
68+
</style>

components/Theme/ThemeOptions.vue

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,21 @@ export default {
6565
</script>
6666

6767
<style lang="stylus">
68+
@require '../../styles/recoConfig.styl'
6869
6970
.color-theme-options {
7071
display: flex;
7172
flex-wrap wrap
7273
li {
7374
width: 20%;
7475
text-align: center;
75-
7676
a {
7777
width: 15px;
7878
height: 15px;
79-
border-radius: 2px;
80-
79+
border-radius: $borderRadius
8180
&.default-theme {
8281
background-color: $accentColor;
8382
}
84-
85-
for key, value in $themePicker {
86-
&.{key}-theme {
87-
background-color: value;
88-
}
89-
}
9083
}
9184
}
9285
}

components/Theme/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default {
4141
</script>
4242

4343
<style lang="stylus">
44+
@require '../../styles/recoConfig.styl'
4445
4546
.color-picker {
4647
position: relative;
@@ -64,7 +65,7 @@ export default {
6465
margin: 0;
6566
padding: 1em;
6667
border: 1px solid $borderColor;
67-
border-radius: 4px;
68+
border-radius: $borderRadius
6869
transform: translateX(-50%);
6970
z-index: 150;
7071

0 commit comments

Comments
 (0)