File tree 1 file changed +21
-3
lines changed
src/routes/tutorial/[slug]
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 121
121
margin : 1.5em 0 0.5em 0 ;
122
122
}
123
123
124
- .text :global(ul ) {
124
+ .text :global(ul ),
125
+ .text :global(ol ) {
125
126
padding : 0 0 0 2rem ;
126
127
}
127
128
128
129
.text :global(code ) {
129
130
background : hsl (206 , 44% , 92% );
130
- padding : 0.2 em 0.4em 0.3 em ;
131
+ padding : 0.1 em 0.4em 0.2 em ;
131
132
white-space : nowrap ;
132
133
position : relative ;
133
134
top : -0.1em ;
149
150
background-size : 100% 100% ;
150
151
}
151
152
153
+ .text :global(.code-block ) :global(h5 ) {
154
+ display : block ;
155
+ width : 100% ;
156
+ font-family : var (--font-mono );
157
+ font-size : 1.2rem ;
158
+ font-weight : 400 ;
159
+ padding : 1rem 1rem 0.8rem 1rem ;
160
+ margin : 0 0 0 0 ;
161
+ color : var (--sk-text-2 );
162
+ background : var (--back-api );
163
+ box-shadow : 0 1px 6px hsla (205.7 , 63.6% , 30.8% , 0.06 );
164
+ border-radius : var (--border-r ) var (--border-r ) 0 0 ;
165
+ }
166
+
152
167
.text :global(pre ) {
153
168
background : white ;
154
169
padding : 1rem 1.5rem ;
155
170
margin : 0 0 1.6rem 0 ;
156
171
line-height : 1.3 ;
157
- border-radius : 0.5rem ;
158
172
box-shadow : inset 1px 1px 3px hsl (206deg 20% 93% );
159
173
}
160
174
175
+ .text :global(.code-block ) :global(h5 ) + :global(pre ) {
176
+ border-radius : 0 0 var (--border-r ) var (--border-r );
177
+ }
178
+
161
179
.text :global(pre ) :global(code ) {
162
180
background : none ;
163
181
color : var (--code-base );
You can’t perform that action at this time.
0 commit comments