@@ -10,6 +10,9 @@ const theme = useTheme<HTheme>()!;
10
10
const { content } = toRefs (props );
11
11
const styleVars = computed (() => ({
12
12
primary: theme .value .color .primary .n ,
13
+ mainColor: theme .value .color .foreground .main ,
14
+ base3BgColor: theme .value .color .background .base3 ,
15
+ base2BgColor: theme .value .color .background .base2 ,
13
16
}));
14
17
</script >
15
18
<template >
@@ -18,11 +21,11 @@ const styleVars = computed(() => ({
18
21
<style lang="stylus">
19
22
20
23
// Colors
21
- color-default = # 5 5 5
24
+ color-default = v-bind ( 'styleVars.mainColor' )
22
25
color-grey = #9 9 9
23
26
color-border = #d d d
24
27
color-link = v-bind ('styleVars.primary' )
25
- color-background = # e e e
28
+ color-background = v-bind ( 'styleVars.base3BgColor' )
26
29
color-sidebar-text = #7 7 7
27
30
color-widget-background = #d d d
28
31
color-widget-border = #c c c
@@ -69,19 +72,19 @@ mq-mobile = "screen and (max-width: 479px)"
69
72
mq-tablet = "screen and (min-width: 480px) and (max-width: 767px)"
70
73
mq-normal = "screen and (min-width: 768px)"
71
74
72
- $base-style
75
+ .article-entry
73
76
h1
74
- font-size : 2 em
77
+ @apply text - 4xl
75
78
h2
76
- font-size : 1.5 em
79
+ @apply text - 2xl
77
80
h3
78
- font-size : 1.3 em
81
+ @apply text - xl
79
82
h4
80
- font-size : 1.2 em
83
+ @apply text - lg
81
84
h5
82
- font-size : 1 em
85
+ @apply text - base
83
86
h6
84
- font-size : 1 em
87
+ @apply text - base
85
88
color : color-grey
86
89
hr
87
90
border : 1px dashed color-border
@@ -90,7 +93,7 @@ $base-style
90
93
em , cite
91
94
font-style : italic
92
95
sup , sub
93
- font-size : 0.75 em
96
+ @apply text - xs
94
97
line-height : 0
95
98
position : relative
96
99
vertical-align : baseline
@@ -99,7 +102,7 @@ $base-style
99
102
sub
100
103
bottom : - 0.2em
101
104
small
102
- font-size : 0.85 em
105
+ @apply text - xs
103
106
acronym , abbr
104
107
border-bottom : 1px dotted
105
108
ul , ol , dl
@@ -115,9 +118,6 @@ $base-style
115
118
list-style : decimal
116
119
dt
117
120
font-weight : bold
118
-
119
- .article-entry
120
- @extend $base-style
121
121
margin : 0 auto
122
122
max-width : 768px
123
123
clearfix ()
@@ -158,11 +158,14 @@ $base-style
158
158
border-bottom : 1px solid color-border
159
159
padding : 10px 0
160
160
blockquote
161
- font-size : 1.4em
162
- margin : line - height 20px
163
- text-align : center
161
+ margin : line - height 0
162
+ background : v-bind ('styleVars.base2BgColor' )
163
+ @apply border- l- 4 px- 3 py- 3
164
+ p :first-of-type
165
+ @apply mt- 0
166
+ p :last-of-type
167
+ @apply mb- 0
164
168
footer
165
- font-size : font-size
166
169
margin : line - height 0
167
170
cite
168
171
& :before
@@ -219,7 +222,6 @@ $code-block
219
222
padding : 15px article-padding
220
223
border-style : solid
221
224
border-color : color-border
222
- border-width : 1px 0
223
225
overflow : auto
224
226
color : highlight-foreground
225
227
line-height : font-size * line - height
@@ -233,8 +235,7 @@ $line-numbers
233
235
font-family : font-mono
234
236
code
235
237
background : color-background
236
- text-shadow : 0 1px #f f f
237
- padding : 0 0.3em
238
+ @apply rounded- md py- 0 px- 1 my- 0 mx- 1
238
239
pre
239
240
@extend $code-block
240
241
code
@@ -243,7 +244,7 @@ $line-numbers
243
244
padding : 0
244
245
.highlight
245
246
@extend $code-block
246
- border-radius : 0.375 rem
247
+ @apply rounded - md
247
248
pre
248
249
border : none
249
250
margin : 0
0 commit comments