Open
Show file tree
Hide file tree
Changes from 1 commit
Show all changes
58 commits
Select commit Hold shift + click to select a range
746377d
docs: improve internal linking
mrholekDec 29, 2024
72ec01f
feat(CSidebar): add 'as' prop to CSidebar
Dec 30, 2024
caa1007
Merge pull request #421 from matt-jb/add-as-prop-to-sidebar
mrholekDec 31, 2024
8d2d46b
docs: update `@coreui/react` library imports
mrholekJan 2, 2025
b14949c
Merge pull request #422 from mrholek/main
mrholekJan 2, 2025
c54a0ab
chore: update dependencies and devDependencies
mrholekJan 2, 2025
36814f6
chore: update dependencies and devDependencies
mrholekJan 2, 2025
c2d2e7d
fix: lock the version of `@types/prop-types` to prevent `children` pr…
mrholekJan 2, 2025
b1ede20
tests: update tests
mrholekJan 3, 2025
e457ffe
fix(CModal): disable emitting the `onClose` event twice
mrholekJan 3, 2025
454be70
Merge pull request #423 from mrholek/main
mrholekJan 3, 2025
cdb4712
chore: clean-up
mrholekJan 3, 2025
3f03770
refactor(useColorModes): replace `window` with `globalThis`
mrholekJan 3, 2025
4bfeee2
Merge pull request #424 from mrholek/main
mrholekJan 3, 2025
d5b9a4d
chore: clean-up
mrholekJan 3, 2025
acceb01
build: update ESLint to v9.x
mrholekJan 8, 2025
3a57192
build: migrate `.prettierrc.js` to `eslint.config.mjs`
mrholekJan 8, 2025
cb1ef1f
Merge pull request #429 from mrholek/main
mrholekJan 8, 2025
7c91c99
feat(CDropdown, CPopover, CTooltip): allow passing custom popper conf…
mrholekJan 28, 2025
161bbd1
fix(CAccordion): add a missing ID attribute to the accordion collapse…
mrholekJan 28, 2025
35276cb
docs: update API documentation
mrholekFeb 6, 2025
58ace1b
fix(useColorModes): replace `globalThis` with `window` for SSR support
mrholekFeb 6, 2025
d2ca48d
chore: update dependencies and devDependencies
mrholekFeb 6, 2025
92609b2
refactor(CDropdown): remove `aria-hidden` to improve component access…
mrholekFeb 6, 2025
9f24e2f
chore: update the current year to 2025
mrholekFeb 7, 2025
be8ae22
release: v5.5.0
mrholekFeb 7, 2025
ef0e750
docs: update content
mrholekFeb 16, 2025
e53f0fe
chore: update dependencies and devDependencies
mrholekFeb 16, 2025
9d74c9c
refactor: migrate to Sass modules
mrholekFeb 16, 2025
d260367
docs: remove double # in links
mrholekApr 16, 2025
bb614f2
docs: update link to features
mrholekApr 16, 2025
25e8ff4
fix(CDropdown): incorrect menu positioning when the toggler is re-ren…
mrholekApr 29, 2025
46c4007
chore: update dependencies and devDependencies
mrholekApr 29, 2025
57b0f90
tests: update tests
mrholekApr 29, 2025
f451d62
refactor: improve typings
mrholekApr 29, 2025
e0f155f
refactor(CTabs): fully implement a controlled/uncontrolled pattern
mrholekApr 29, 2025
d8fd24a
chore: clean-up
mrholekApr 29, 2025
adc116d
refactor(CAccordion): move the context outside the component
mrholekApr 30, 2025
c719c6e
refactor(CToast): move the context outside the component
mrholekApr 30, 2025
b6dc072
refactor(CSidebarNav): move the context outside the component
mrholekApr 30, 2025
ad0ef5e
refactor(CProgress): move the context outside the component
mrholekApr 30, 2025
de2290b
refactor(CCarousel): move the context outside the component
mrholekApr 30, 2025
56e615d
refactor(CModal): move the context outside the component
mrholekApr 30, 2025
08dde3d
refactor(CModal): move the context outside the component
mrholekApr 30, 2025
cb15c39
docs: upadte API documentation
mrholekApr 30, 2025
e1ab484
docs: add "use with Bootstrap"
mrholekMay 1, 2025
4f128a0
docs: update bootstrap styles
mrholekMay 1, 2025
f80bc4a
release: v5.6.0
mrholekMay 1, 2025
fd9f2a8
docs: add withPrefix to urls
mrholekMay 15, 2025
07027d1
docs: update links to API
mrholekMay 15, 2025
0b7cbd8
feat(CButton): add support for unthemed outline and ghost buttons
mrholekMay 19, 2025
1ad29c6
feat(CNav): add enclosed variants
mrholekMay 19, 2025
bee8617
feat(CTabs): add enclosed variants
mrholekMay 19, 2025
3b37bd9
chore: update dependencies and devDependencies
mrholekMay 19, 2025
932d00f
release: v5.7.0
mrholekMay 19, 2025
c727396
refactor(CButton): improve variants handling
mrholekMay 29, 2025
38fc15a
docs: update content
mrholekJun 8, 2025
90d8100
refactor: update tabs component
mrholekJun 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
PrevPrevious commit
Next Next commit
refactor: migrate to Sass modules
  • Loading branch information
@mrholek
mrholek committedFeb 16, 2025
commit 9d74c9cd8a895958abcd1217f6672b47543d753c
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@ import '@docsearch/css'
import DefaultLayout from './src/templates/DefaultLayout'
import DocsLayout from './src/templates/DocsLayout'
import './src/styles/styles.scss'
import './src/styles/search.scss'

export const wrapRootElement = ({ element }: { element: ReactNode }) => {
return <DefaultLayout>{element}</DefaultLayout>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@ import '@docsearch/css'
import DefaultLayout from './src/templates/DefaultLayout'
import DocsLayout from './src/templates/DocsLayout'
import './src/styles/styles.scss'
import './src/styles/search.scss'

export const wrapRootElement = ({ element }: { element: ReactNode }) => {
return <DefaultLayout>{element}</DefaultLayout>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
// stylelint-disable declaration-no-important, selector-max-id
@use "@coreui/coreui/scss/mixins/border-radius" as *;
@use "@coreui/coreui/scss/mixins/breakpoints" as *;
@use "@coreui/coreui/scss/vendor/rfs" as *;

//
// Carbon ads
//

.carbonads-wrapper {
min-height: 130px;
margin: 2rem 0;
}

#carbonads {
position: static;
display: block;
max-width: 400px;
padding: 15px 15px 15px 160px;
margin: 2rem 0;
overflow: hidden;
@include font-size(.8125rem);
line-height: 1.4;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
@use "@coreui/coreui/scss/mixins/transition" as *;
@use "@coreui/coreui/scss/variables" as *;

.anchor-link {
padding: 0 .175rem;
font-weight: 400;
color: rgba($link-color, .5);
padding-left: 0.375em;
text-decoration: none;
opacity: 0;
@include transition(opacity 0.1s ease-in-out, color .15s ease-in-out);
@include transition(color .15s ease-in-out, opacity .15s ease-in-out);

&::after {
content: "#";
}

&:focus,
&:hover {
&:hover,
:hover > &,
:target > & {
color: $link-color;
text-decoration: none;
opacity: 1;
}
}

h2, h3, h4, h5, h6, td {
&:hover {
.anchor-link {
opacity: 1;
}
}
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
@use "@coreui/coreui/scss/mixins/border-radius" as *;
@use "@coreui/coreui/scss/mixins/breakpoints" as *;
@use "@coreui/coreui/scss/mixins/clearfix" as *;
@use "@coreui/coreui/scss/mixins/container" as *;
@use "@coreui/coreui/scss/mixins/grid" as *;
@use "@coreui/coreui/scss/vendor/rfs" as *;
@use "@coreui/coreui/scss/variables" as *;
@use "variables" as *;

//
// Docs examples
//
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
@use "@coreui/coreui/scss/mixins/transition" as *;

.component-sub-nav-wrapper {
@include transition(box-shadow 0.2s linear);
&:before {
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
@use "@coreui/coreui/scss/vendor/rfs" as *;
@use "@coreui/coreui/scss/variables" as *;

//
// Footer
//
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
@use "@coreui/coreui/scss/mixins/breakpoints" as *;
@use "@coreui/coreui/scss/mixins/transition" as *;
@use "@coreui/coreui/scss/variables" as *;

.wrapper {
width: 100%;
@include ltr-rtl("padding-left", var(--cui-sidebar-occupy-start, 0));
padding-inline-start: var(--cui-sidebar-occupy-start, 0);
will-change: auto;
@include transition(padding .15s);
}
Expand Down
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
@use "@coreui/coreui/scss/functions/to-rgb" as *;
@use "@coreui/coreui/scss/variables" as *;
@use "variables" as *;

:root {
--cd-purple: #{$cd-purple};
--cd-violet: #{$cd-violet};
--cd-accent: #{$cd-accent};
--cd-violet-rgb: #{to-rgb($cd-violet)};
--cd-accent-rgb: #{to-rgb($cd-accent)};
--cd-pink-rgb: #{to-rgb($pink-500)};
--cd-teal-rgb: #{to-rgb($teal-500)};
--cd-violet-bg: var(--cd-violet);
--cd-toc-color: var(--cd-violet);
--cd-sidebar-link-bg: rgba(var(--cd-violet-rgb), .1);
--cd-callout-link: #{to-rgb($blue-600)};
--cd-callout-code-color: #{$pink-600};
--cd-pre-bg: var(--cui-tertiary-bg);
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
@use "@coreui/coreui/scss/mixins/color-mode" as *;

.docs-sidebar {
--cui-sidebar-bg: var(--cui-tertiary-bg);
--cui-sidebar-brand-bg: transparent;
Expand All@@ -23,10 +25,8 @@
}
}

@if $enable-dark-mode {
@include color-mode(dark) {
.docs-sidebar {
--cui-sidebar-bg: var(--cui-body-bg);
}
@include color-mode(dark) {
.docs-sidebar {
--cui-sidebar-bg: var(--cui-body-bg);
}
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
// stylelint-disable selector-max-type

@use "@coreui/coreui/scss/functions/math" as *;
@use "@coreui/coreui/scss/mixins/border-radius" as *;
@use "@coreui/coreui/scss/mixins/breakpoints" as *;
@use "@coreui/coreui/scss/vendor/rfs" as *;

.docs-toc {
@include media-breakpoint-up(xl) {
position: sticky;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
// stylelint-disable selector-class-pattern
/*!
* CoreUI Docs (https://coreui.io/bootstrap/docs/)
* Copyright 2025 creativeLabs Łukasz Holeczek
* Licensed under the Creative Commons Attribution 3.0 Unported License.
* For details, see https://creativecommons.org/licenses/by/3.0/.
*/

@use "@coreui/coreui/scss/mixins/border-radius" as *;
@use "@coreui/coreui/scss/mixins/box-shadow" as *;
@use "@coreui/coreui/scss/mixins/breakpoints" as *;
@use "@coreui/coreui/scss/mixins/color-mode" as *;
@use "@coreui/coreui/scss/mixins/transition" as *;
@use "@coreui/coreui/scss/vendor/rfs" as *;
@use "@coreui/coreui/scss/variables" as *;

@forward "@docsearch/css/dist/style";


// stylelint-disable selector-class-pattern
:root {
--docsearch-primary-color: var(--cui-primary);
--docsearch-logo-color: var(--cui-primary);
Expand DownExpand Up@@ -29,6 +46,7 @@
--docsearch-muted-color: var(--cui-secondary-color);
--docsearch-hit-shadow: none;

position: fixed;
z-index: 2000; // Make sure to be over all components showcased in the documentation
cursor: auto; // Needed because of [role="button"] in Algolia search modal. Remove once https://.com/algolia/docsearch/issues/1370 is tackled.

Expand All@@ -39,11 +57,7 @@

.DocSearch-Button {
--docsearch-searcx-background: #{rgba($black, .1)};
// --docsearch-searcx-color: #{$white};
--docsearch-searcx-focus-background: #{rgba($black, .25)};
// --docsearch-searcx-shadow: #{0 0 0 .25rem rgba($bd-accent, .4)};
// --docsearch-text-color: #{$white};
// --docsearch-muted-color: #{rgba($white, .65)};

min-width: 200px;
min-height: 38px;
Expand All@@ -58,7 +72,6 @@

// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
@include border-radius($btn-border-radius);

@include box-shadow($input-box-shadow);
@include transition($input-transition);

Expand Down