Skip to content

Commit 96c340f

Browse files
committed
refactor: update examples
1 parent c7d747e commit 96c340f

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { useSelector } from 'react-redux'
55
import { CSpinner, useColorModes } from '@coreui/react'
66
import './scss/style.scss'
77

8+
// We use those styles to show code examples, you should remove them in your application.
9+
import './scss/examples.scss'
10+
811
// Containers
912
const DefaultLayout = React.lazy(() => import('./layout/DefaultLayout'))
1013

src/scss/examples.scss

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
/* stylelint-disable declaration-no-important, scss/selector-no-redundant-nesting-selector */
2-
$enable-deprecation-messages: false; /* stylelint-disable-line scss/dollar-variable-default */
1+
/* stylelint-disable scss/selector-no-redundant-nesting-selector */
2+
3+
$enable-deprecation-messages: false !default;
34

45
@import "@coreui/coreui/scss/functions";
56
@import "@coreui/coreui/scss/variables";
@@ -53,6 +54,8 @@ $enable-deprecation-messages: false; /* stylelint-disable-line scss/dollar-varia
5354
}
5455

5556
// Buttons
57+
.col > .btn,
58+
.col-auto > .btn,
5659
> .btn,
5760
> .btn-group {
5861
margin: .25rem .125rem;
@@ -105,12 +108,4 @@ $enable-deprecation-messages: false; /* stylelint-disable-line scss/dollar-varia
105108
}
106109
}
107110
}
108-
}
109-
110-
@if $enable-dark-mode {
111-
@include color-mode(dark) {
112-
.example .tab-content {
113-
background-color: var(--#{$prefix}secondary-bg) !important;
114-
}
115-
}
116-
}
111+
}

0 commit comments

Comments
 (0)