-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Custom Containers): redesign the custom container style and defa…
…ult to "left shadow mode" (#110)
- Loading branch information
1 parent
09e5379
commit 2ab8cbc
Showing
5 changed files
with
191 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/** | ||
* Component: doc-blocks | ||
* -------------------------------------------------------------------------- */ | ||
|
||
.vp-doc .custom-block { | ||
border: 1px solid; | ||
|
||
p:first-child { | ||
margin: 0 0 0 1.25rem; | ||
} | ||
|
||
&:before { | ||
font-family: 'Font Awesome 6 Free'; | ||
font-weight: 900; | ||
position: absolute; | ||
} | ||
|
||
&.info, | ||
&.note, | ||
&.tip, | ||
&.important { | ||
&:before { | ||
content: '\f06a'; | ||
} | ||
} | ||
|
||
&.warning, | ||
&.caution, | ||
&.danger { | ||
&:before { | ||
content: '\f071'; | ||
} | ||
} | ||
|
||
&.details { | ||
border-color: var(--vp-c-text-2); | ||
p { | ||
color: var(--vp-c-text-2); | ||
} | ||
} | ||
|
||
&.info, | ||
&.note { | ||
border-color: var(--vp-c-text-2); | ||
color: var(--vp-c-text-2); | ||
.custom-block-title, | ||
&:before { | ||
color: var(--vp-c-text-1); | ||
} | ||
} | ||
|
||
&.tip { | ||
border-color: var(--vp-c-green-1); | ||
color: var(--vp-c-green-2); | ||
background-color: var(--vp-c-green-soft); | ||
.custom-block-title, | ||
&:before { | ||
color: var(--vp-c-green-1); | ||
} | ||
code { | ||
color: var(--vp-c-green-1); | ||
background-color: var(--vp-c-green-soft); | ||
} | ||
a { | ||
color: var(--vp-c-green-1); | ||
} | ||
} | ||
|
||
&.warning { | ||
border-color: var(--vp-c-warning-1); | ||
color: var(--vp-c-warning-2); | ||
.custom-block-title, | ||
&:before { | ||
color: var(--vp-c-warning-1); | ||
} | ||
} | ||
|
||
&.danger, | ||
&.caution { | ||
border-color: var(--vp-c-danger-1); | ||
color: var(--vp-c-danger-2); | ||
.custom-block-title, | ||
&:before { | ||
color: var(--vp-c-danger-1); | ||
} | ||
} | ||
|
||
&.important { | ||
border-color: var(--vp-c-important-1); | ||
color: var(--vp-c-important-2); | ||
.custom-block-title, | ||
&:before { | ||
color: var(--vp-c-important-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
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