File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 2
2
// Docs examples
3
3
//
4
4
5
- .tab-content .tab-pane .docs-code-snippet {
6
- @include border-top-radius (0 );
5
+ .docs-code-tabs {
6
+ padding : 0 ($cd-gutter-x * .5 );
7
+ margin : 0 ($cd-gutter-x * -.5 );
7
8
8
- .highlight {
9
+ @include media-breakpoint-up (md) {
10
+ padding : 0 ;
11
+ margin : 0 ;
12
+ }
13
+ }
14
+
15
+ .docs-code-tab-content {
16
+ .tab-pane .docs-code-snippet {
17
+ border-top : 0 ;
9
18
@include border-top-radius (0 );
19
+
20
+ .highlight {
21
+ @include border-top-radius (0 );
22
+ }
10
23
}
11
24
}
12
25
Original file line number Diff line number Diff line change 1
1
{{ with .Inner }}{{/* don't do anything, just call it */}}{{ end }}
2
2
{{ $groupId := default "default" (.Get "groupId") }}
3
- < ul class ="nav nav-underline-border border-1 " role ="tablist ">
3
+ < ul class ="nav nav-underline-border docs-code-tabs " role ="tablist ">
4
4
{{ range $idx, $tab := .Scratch.Get "tabs" }}
5
5
< li class ="nav-item mb-0 " role ="presentation ">
6
6
< button class ="nav-link {{ cond (eq $idx 0) "active " ""}}" data-coreui-toggle="tab " data-coreui-target ="#{{ $groupId }}-{{ .name | urlize}} " type ="button " role ="tab "> {{ .name }}</ button >
7
7
</ li >
8
8
{{ end }}
9
9
</ ul >
10
- < div class ="tab-content ">
10
+ < div class ="tab-content docs-code-tab-content ">
11
11
{{ range $idx, $tab := .Scratch.Get "tabs" }}
12
12
< div class ="tab-pane fade {{ cond (eq $idx 0) "show active " ""}}" id="{{ $groupId }}-{{ .name | urlize}} " role ="tabpanel " aria-labelledby ="{{ .name }}-tab " tabindex ="0 ">
13
13
{{ .content }}
You can’t perform that action at this time.
0 commit comments