-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
116 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff 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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
@use "@coreui/coreui/scss/variables" as *; | ||
@use "variables" as *; | ||
|
||
// | ||
// Callouts | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
@use "@coreui/coreui/scss/vendor/rfs" as *; | ||
@use "@coreui/coreui/scss/variables" as *; | ||
|
||
// | ||
// Footer | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff 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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,10 @@ | ||
// stylelint-disable scss/dollar-variable-default | ||
|
||
@use "sass:color"; | ||
@use "@coreui/coreui/scss/variables" as *; | ||
// Local docs variables | ||
$cd-purple: #4c0bce; | ||
$cd-violet: lighten(saturate($cd-purple, 5%), 15%); // stylelint-disable-line function-disallowed-list | ||
|
||
$cd-purple: #4c0bce; | ||
$cd-violet: color.scale($cd-purple, $saturation: 10%, $lightness: 25%); // stylelint-disable-line scss/at-function-named-arguments | ||
$cd-accent: #ffe484; | ||
|
||
$cd-gutter-x: 3rem; | ||
$cd-callout-variants: info, warning, danger !default; | ||
|
||
: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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
@import "@coreui/coreui/scss/coreui"; | ||
@use "@coreui/coreui/scss/coreui" with ( | ||
$enable-deprecation-messages: false | ||
); | ||
|
||
// Import Chart.js custom tooltips styles | ||
@import "@coreui/chartjs/scss/coreui-chartjs"; | ||
@use "@coreui/chartjs/scss/coreui-chartjs"; | ||
|
||
@import "variables"; | ||
@import "ads"; | ||
@import "anchor"; | ||
@import "callouts"; | ||
@import "component-examples"; | ||
@import "component-sub-nav"; | ||
@import "footer"; | ||
@import "layout"; | ||
@import "prism"; | ||
@import "scrolling"; | ||
@import "search"; | ||
@import "sidebar"; | ||
@import "table-api"; | ||
@import "toc"; | ||
// Load docs components | ||
@forward "root"; | ||
@forward "ads"; | ||
@forward "anchor"; | ||
@forward "callouts"; | ||
@forward "component-examples"; | ||
@forward "component-sub-nav"; | ||
@forward "footer"; | ||
@forward "layout"; | ||
@forward "prism"; | ||
@forward "scrolling"; | ||
@forward "sidebar"; | ||
@forward "table-api"; | ||
@forward "toc"; |