Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2bfd026

Browse files
committed
docs: improve responsive layout
1 parent ea7050a commit 2bfd026

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

packages/docs/.vuepress/src/client/styles/_component-examples.scss

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22
// Docs examples
33
//
44

5-
.tab-content .tab-pane {
6-
@include border-top-radius(0 !important);
5+
.docs-code-tabs {
6+
padding: 0 ($cd-gutter-x * .5);
7+
margin: 0 ($cd-gutter-x * -.5);
8+
9+
@include media-breakpoint-up(md) {
10+
padding: 0;
11+
margin: 0;
12+
}
13+
}
714

8-
.highlight, div[class^="language-"] {
15+
.docs-code-tab-content {
16+
.tab-pane div[class^="language-"] {
917
border-top: 0 !important;
1018
@include border-top-radius(0 !important);
1119
}

0 commit comments

Comments
 (0)