-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
1 parent
a203932
commit 4f02717
Showing
2 changed files
with
155 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,151 @@ | ||
.plume-content .hint-container { | ||
border-radius: 8px; | ||
padding: 16px 16px 8px; | ||
line-height: 24px; | ||
font-size: var(--vp-custom-block-font-size); | ||
color: var(--vp-c-text-2); | ||
} | ||
.plume-content { | ||
.hint-container { | ||
border-radius: 8px; | ||
padding: 16px 16px 8px; | ||
line-height: 24px; | ||
font-size: var(--vp-custom-block-font-size); | ||
color: var(--vp-c-text-2); | ||
|
||
.plume-content .hint-container .hint-container-title { | ||
font-weight: 600; | ||
margin-top: 0; | ||
} | ||
.hint-container-title { | ||
font-weight: 600; | ||
margin-top: 0; | ||
} | ||
|
||
.hint-container.note { | ||
color: var(--vp-custom-block-info-text); | ||
} | ||
&.note { | ||
border-radius: 0; | ||
color: var(--vp-c-text-3); | ||
} | ||
|
||
.hint-container.tip { | ||
color: var(--vp-custom-block-tip-text); | ||
} | ||
&.info { | ||
color: var(--vp-custom-block-info-text); | ||
} | ||
|
||
.hint-container.warning { | ||
color: var(--vp-custom-block-warning-text); | ||
} | ||
&.tip { | ||
color: var(--vp-custom-block-tip-text); | ||
} | ||
|
||
.hint-container.caution { | ||
color: var(--vp-custom-block-danger-text); | ||
} | ||
&.warning { | ||
color: var(--vp-custom-block-warning-text); | ||
} | ||
|
||
.hint-container.detail { | ||
color: var(--vp-custom-block-detail-text); | ||
} | ||
&.caution { | ||
color: var(--vp-custom-block-danger-text); | ||
} | ||
|
||
.plume-content .hint-container.details summary { | ||
margin: -1.5rem -1.5rem -1.1rem; | ||
font-weight: 700; | ||
cursor: pointer; | ||
color: var(--vp-c-text-1); | ||
} | ||
&.detail { | ||
color: var(--vp-custom-block-detail-text); | ||
|
||
.plume-content .hint-container.details summary + p { | ||
margin: 8px 0; | ||
} | ||
summary { | ||
margin: -1.5rem -1.5rem -1.1rem; | ||
font-weight: 700; | ||
cursor: pointer; | ||
color: var(--vp-c-text-1); | ||
} | ||
|
||
.plume-content .hint-container p + p { | ||
margin: 8px 0; | ||
} | ||
summary + p { | ||
margin: 8px 0; | ||
} | ||
} | ||
|
||
.plume-content .hint-container code { | ||
font-size: var(--vp-custom-block-code-font-size); | ||
} | ||
p + p { | ||
margin: 8px 0; | ||
} | ||
|
||
.plume-content .hint-container { | ||
&.note, | ||
&.tip, | ||
&.detail, | ||
&.important { | ||
a, | ||
code { | ||
color: var(--vp-c-brand-1); | ||
font-size: var(--vp-custom-block-code-font-size); | ||
} | ||
a:hover { | ||
color: var(--vp-c-brand-2); | ||
|
||
&.note, | ||
&.tip, | ||
&.detail, | ||
&.important { | ||
a, | ||
code { | ||
color: var(--vp-c-brand-1); | ||
} | ||
a:hover { | ||
color: var(--vp-c-brand-2); | ||
} | ||
} | ||
} | ||
&.warning { | ||
a, | ||
code { | ||
color: var(--vp-c-warning-1); | ||
&.warning { | ||
a, | ||
code { | ||
color: var(--vp-c-warning-1); | ||
} | ||
a:hover { | ||
color: var(--vp-c-warning-2); | ||
} | ||
} | ||
a:hover { | ||
color: var(--vp-c-warning-2); | ||
&.caution { | ||
a, | ||
code { | ||
color: var(--vp-c-danger-1); | ||
} | ||
a:hover { | ||
color: var(--vp-c-danger-2); | ||
} | ||
} | ||
|
||
th, | ||
blockquote > p { | ||
font-size: var(--vp-custom-block-font-size); | ||
color: inherit; | ||
} | ||
} | ||
&.caution { | ||
a, | ||
code { | ||
color: var(--vp-c-danger-1); | ||
|
||
.vp-code-demo { | ||
border: solid 1px var(--vp-c-divider); | ||
overflow: hidden; | ||
|
||
&:hover { | ||
box-shadow: none; | ||
} | ||
|
||
.vp-code-demo-header { | ||
padding: 8px 12px; | ||
} | ||
a:hover { | ||
color: var(--vp-c-danger-2); | ||
|
||
.vp-code-demo-code-wrapper { | ||
margin-bottom: -0.9rem; | ||
} | ||
} | ||
|
||
th, | ||
blockquote > p { | ||
font-size: var(--vp-custom-block-font-size); | ||
color: inherit; | ||
.vp-code-demo-toggle-button { | ||
margin: 0 12px 0 8px; | ||
background-color: var(--vp-c-gray-2); | ||
|
||
&:hover { | ||
background-color: var(--vp-c-gray-1); | ||
} | ||
} | ||
|
||
.vp-code-demo-title { | ||
font-size: 1rem; | ||
line-height: 1.75; | ||
} | ||
|
||
.vp-code-demo-display { | ||
border-bottom: transparent; | ||
} | ||
|
||
.code-demo-jsfiddle .jsfiddle-button, | ||
.code-demo-codepen .codepen-button { | ||
background-color: transparent; | ||
} | ||
|
||
.vp-code-demo-codes div[class*='language-'] { | ||
border-bottom: 2px dashed var(--vp-c-divider); | ||
|
||
&:first-of-type { | ||
border-top: 1px solid var(--vp-c-divider); | ||
} | ||
&:last-of-type { | ||
border-bottom: none; | ||
} | ||
} | ||
|
||
.vp-code-demo-codes div[class*='language-'] pre { | ||
margin-bottom: 0; | ||
border-radius: 0; | ||
} | ||
} | ||
} |
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