8000 docs: update the layout · coreui/coreui@8aabcee · GitHub
[go: up one dir, main page]

Skip to content

Commit 8aabcee

Browse files
committed
docs: update the layout
1 parent b3f5c73 commit 8aabcee

File tree

2 files changed

+12
-27
lines changed

2 files changed

+12
-27
lines changed

docs/assets/scss/_layout.scss

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@
99
}
1010
}
1111

12-
.docs-layout {
13-
@include media-breakpoint-up(md) {
14-
display: grid;
15-
grid-template-areas: "sidebar main";
16-
grid-template-columns: 1fr 3fr;
17-
gap: $grid-gutter-width;
18-
}
19-
20-
@include media-breakpoint-up(lg) {
21-
display: grid;
22-
grid-template-areas: "sidebar main";
23-
grid-template-columns: 1fr 5fr;
24-
gap: $grid-gutter-width;
25-
}
26-
}
27-
2812
.docs-sidebar {
2913
grid-area: sidebar;
3014
}
@@ -44,7 +28,7 @@
4428
"toc"
4529
"content";
4630
grid-template-rows: auto auto 1fr;
47-
gap: inherit;
31+
gap: $grid-gutter-width;
4832
}
4933

5034
@include media-breakpoint-up(lg) {

docs/assets/scss/_toc.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,32 +52,33 @@
5252
}
5353

5454
@include media-breakpoint-down(md) {
55-
border: 1px solid $border-color;
56-
@include border-radius(.4rem);
55+
color: var(--cui-body-color);
56+
border: 1px solid var(--cui-border-color);
57+
@include border-radius(var(--cui-border-radius));
5758

5859
&:hover,
5960
&:focus,
6061
&:active,
6162
&[aria-expanded="true"] {
62-
color: var(--cd-violet);
63-
background-color: $white;
64-
border-color: var(--cd-violet);
63+
color: var(--cui-primary);
64+
background-color: var(--cui-body-bg);
65+
border-color: var(--cui-primary);
6566
}
6667

6768
&:focus,
6869
&[aria-expanded="true"] {
69-
box-shadow: 0 0 0 3px rgba(var(--cd-violet-rgb), .25);
70+
box-shadow: 0 0 0 3px rgba(var(--cui-primary-rgb), .25);
7071
}
7172
}
7273
}
7374

7475
.docs-toc-collapse {
7576
@include media-breakpoint-down(md) {
7677
nav {
77-
padding: 1.25rem;
78-
background-color: var(--cui-gray-100);
79-
border: 1px solid $border-color;
80-
@include border-radius(.25rem);
78+
padding: 1.25rem 1.25rem 1.25rem 1rem;
79+
background-color: var(--cui-tertiary-bg);
80+
border: 1px solid var(--cui-border-color);
81+
@include border-radius(var(--cui-border-radius));
8182
}
8283
}
8384

0 commit comments

Comments
 (0)
0