Skip to content

Commit 76d58c7

Browse files
committed
docs: update theme
1 parent ea349da commit 76d58c7

File tree

4 files changed

+37
-31
lines changed

4 files changed

+37
-31
lines changed

packages/docs/.vuepress/theme-coreui/src/client/components/Sidebar.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<CSidebar position="fixed" size="lg" class="docs-sidebar elevation-0 border-end ps-xl-4">
2+
<CSidebar position="fixed" size="lg" class="docs-sidebar border-end px-xl-4 elevation-0">
33
<CSidebarBrand class="justify-content-start ps-3">
44
<svg
55
xmlns="http://www.w3.org/2000/svg"
@@ -17,8 +17,8 @@
1717
</g>
1818
</svg>
1919
</CSidebarBrand>
20-
<div class="text-body-secondary ms-3 me-5 mb-2 small fw-semibold">Framework:</div>
21-
<CDropdown class="ms-3 me-5 mb-4">
20+
<div class="text-body-secondary mx-3 mb-2 small fw-semibold">Framework:</div>
21+
<CDropdown class="mx-3 mb-4">
2222
<CDropdownToggle color="primary" variant="outline"> Vue.js </CDropdownToggle>
2323
<CDropdownMenu class="w-100">
2424
<CDropdownItem href="https://coreui.io/angular/docs/4.0/" target="_blank">

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@
109109
.pagination {
110110
margin-bottom: 0;
111111
}
112+
113+
// Spinners
114+
> .spinner-grow + .spinner-border,
115+
> .spinner-border + .spinner-grow,
116+
> .spinner-border + .spinner-border,
117+
> .spinner-grow + .spinner-grow {
118+
margin-left: .25rem;
119+
}
112120
}
113121

114122
//
@@ -347,7 +355,6 @@
347355
// Code snippets
348356
//
349357

350-
div[class^="language-"],
351358
.highlight {
352359
position: relative;
353360
padding: .75rem ($cd-gutter-x * .5);
@@ -381,14 +388,13 @@ div[class^="language-"],
381388
.docs-code-snippet {
382389
margin: 0 ($cd-gutter-x * -.5) $spacer;
383390

384-
div[class^="language-"],
385391
.highlight {
386392
margin-bottom: 0;
387393
}
388394

389-
.docs-example ~ div[class^="language-"],
390395
.docs-example ~ .highlight {
391-
border: 0;
396+
border: solid var(--cui-border-color);
397+
border-width: 1px 0 0;
392398
@include border-top-radius(0);
393399
}
394400

@@ -414,11 +420,6 @@ div[class^="language-"],
414420
}
415421
}
416422

417-
.docs-example {
418-
border-bottom-width: 0;
419-
}
420-
421-
.docs-example + div[class^="language-"],
422423
.docs-example + .highlight {
423424
border-top-width: 0;
424425
@include border-top-radius(0);

packages/docs/.vuepress/theme-coreui/src/client/styles/_sidebar.scss

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@
22
--cui-sidebar-bg: var(--cui-tertiary-bg);
33
--cui-sidebar-brand-bg: transparent;
44
--cui-sidebar-brand-color: var(--cui-body-color);
5-
--cui-sidebar-nav-link-color: var(--cui-body-color);
6-
--cui-sidebar-nav-link-active-bg: transparent;
7-
--cui-sidebar-nav-link-active-color: var(--cui-primary);
8-
--cui-sidebar-nav-link-hover-bg: transparent;
9-
--cui-sidebar-nav-link-hover-color: var(--cui-primary);
10-
--cui-sidebar-nav-group-bg: transparent;
11-
--cui-sidebar-nav-group-toggle-show-color: var(--cui-primary);
125

13-
.nav-group-items {
6+
.sidebar-nav {
147
--cui-sidebar-nav-link-color: var(--cui-body-color);
8+
--cui-sidebar-nav-link-active-bg: transparent;
9+
--cui-sidebar-nav-link-active-color: var(--cui-primary);
10+
--cui-sidebar-nav-link-hover-bg: transparent;
11+
--cui-sidebar-nav-link-hover-color: var(--cui-primary);
12+
--cui-sidebar-nav-link-icon-margin: 1rem;
13+
--cui-sidebar-nav-group-bg: transparent;
14+
--cui-sidebar-nav-group-toggle-show-color: var(--cui-primary);
15+
16+
.compact .nav-link {
17+
--cui-sidebar-nav-link-padding-y: .375rem;
18+
}
19+
20+
.nav-group-items {
21+
--cui-sidebar-nav-link-color: var(--cui-body-color);
22+
}
23+
}
24+
}
25+
26+
@if $enable-dark-mode {
27+
@include color-mode(dark) {
28+
.docs-sidebar {
29+
--cui-sidebar-bg: var(--cui-body-bg);
30+
}
1531
}
1632
}

packages/docs/.vuepress/theme-coreui/src/client/styles/_variables.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
// responsive breakpoints
2-
$MQNarrow: 959px !default;
3-
$MQMobile: 719px !default;
4-
$MQMobileNarrow: 419px !default;
5-
6-
// code languages
7-
$codeLang: 'c' 'cpp' 'cs' 'css' 'dart' 'docker' 'fs' 'go' 'html' 'java' 'js'
8-
'json' 'kt' 'less' 'makefile' 'md' 'php' 'py' 'rb' 'rs' 'sass' 'scss' 'sh'
9-
'styl' 'ts' 'toml' 'vue' 'yml' !default;
10-
11-
121
// stylelint-disable scss/dollar-variable-default
132

143
// Local docs variables

0 commit comments

Comments
 (0)