Skip to content

Commit 2064f13

Browse files
committed
refactor: Separate component examples styles and scripts from main styles and scripts
1 parent 3a12bc8 commit 2064f13

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/pug/_partials/head.pug

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ meta(name='msapplication-TileColor', content='#ffffff')
2424
meta(name='msapplication-TileImage', content='assets/favicon/ms-icon-144x144.png')
2525
meta(name='theme-color', content='#ffffff')
2626

27-
link(rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.css')
27+
// Vendors styles
2828
link(rel='stylesheet' href='node_modules/simplebar/dist/simplebar.css')
2929
link(rel='stylesheet' href='css/vendors/simplebar.css')
3030

31-
3231
// Main styles for this application
3332
link(href='css/style.css', rel='stylesheet')
3433

34+
// We use those styles to show code examples, you should remove them in your application.
35+
link(rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.css')
36+
link(href='css/examples.css', rel='stylesheet')
3537

3638
// Global site tag (gtag.js) - Google Analytics
3739
script(async='', src='https://www.googletagmanager.com/gtag/js?id=UA-118965717-3')

src/pug/_partials/scripts.pug

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
script(src='node_modules/@coreui/coreui/dist/js/coreui.bundle.min.js')
33
script(src='node_modules/simplebar/dist/simplebar.min.js')
44

5-
script(src='https://cdn.jsdelivr.net/npm/[email protected]/prism.js')
6-
script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js')
7-
script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/unescaped-markup/prism-unescaped-markup.min.js')
8-
script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/normalize-whitespace/prism-normalize-whitespace.js')
5+
// We use those scripts to show code examples, you should remove them in your application.
6+
script(src='https://cdn.jsdelivr.net/npm/[email protected]/prism.js')
7+
script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js')
8+
script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/unescaped-markup/prism-unescaped-markup.min.js')
9+
script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/normalize-whitespace/prism-normalize-whitespace.js')
910

1011
block scripts
1112

src/scss/_examples.scss renamed to src/scss/examples.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/* stylelint-disable declaration-no-important, font-weight-notation, selector-no-qualifying-type, property-disallowed-list, scss/selector-no-redundant-nesting-selector */
2+
@import "@coreui/coreui/scss/functions";
3+
@import "@coreui/coreui/scss/variables";
4+
@import "@coreui/coreui/scss/mixins";
25

36
.example {
47
&:not(:first-child) {

0 commit comments

Comments
 (0)