-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin-markdown-hint): rebuild styles
- Loading branch information
1 parent
0e833ee
commit 3b08611
Showing
6 changed files
with
68 additions
and
106 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
15 changes: 7 additions & 8 deletions
15
plugins/markdown/plugin-markdown-hint/src/client/styles/_icons.scss
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,21 +1,20 @@ | ||
// tip icon | ||
$tip-icon: '<svg viewBox="0 0 24 24"><path fill="#009400" d="M7.941 18c-.297-1.273-1.637-2.314-2.187-3a8 8 0 1 1 12.49.002c-.55.685-1.888 1.726-2.185 2.998H7.94zM16 20v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-1h8zm-3-9.995V6l-4.5 6.005H11v4l4.5-6H13z"/></svg>'; | ||
$tip-icon: '<svg viewBox="0 0 24 24"><path d="M7.941 18c-.297-1.273-1.637-2.314-2.187-3a8 8 0 1 1 12.49.002c-.55.685-1.888 1.726-2.185 2.998H7.94zM16 20v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-1h8zm-3-9.995V6l-4.5 6.005H11v4l4.5-6H13z"/></svg>'; | ||
|
||
// warning icon | ||
$warning-icon: '<svg viewBox="0 0 1024 1024"><path d="M576.286 752.57v-95.425q0-7.031-4.771-11.802t-11.3-4.772h-96.43q-6.528 0-11.3 4.772t-4.77 11.802v95.424q0 7.031 4.77 11.803t11.3 4.77h96.43q6.528 0 11.3-4.77t4.77-11.803zm-1.005-187.836 9.04-230.524q0-6.027-5.022-9.543-6.529-5.524-12.053-5.524H456.754q-5.524 0-12.053 5.524-5.022 3.516-5.022 10.547l8.538 229.52q0 5.023 5.022 8.287t12.053 3.265h92.913q7.032 0 11.803-3.265t5.273-8.287zM568.25 95.65l385.714 707.142q17.578 31.641-1.004 63.282-8.538 14.564-23.354 23.102t-31.892 8.538H126.286q-17.076 0-31.892-8.538T71.04 866.074q-18.582-31.641-1.004-63.282L455.75 95.65q8.538-15.57 23.605-24.61T512 62t32.645 9.04 23.605 24.61z" fill="#e6a700"/></svg>'; | ||
$warning-icon: '<svg viewBox="0 0 1024 1024"><path d="M576.286 752.57v-95.425q0-7.031-4.771-11.802t-11.3-4.772h-96.43q-6.528 0-11.3 4.772t-4.77 11.802v95.424q0 7.031 4.77 11.803t11.3 4.77h96.43q6.528 0 11.3-4.77t4.77-11.803zm-1.005-187.836 9.04-230.524q0-6.027-5.022-9.543-6.529-5.524-12.053-5.524H456.754q-5.524 0-12.053 5.524-5.022 3.516-5.022 10.547l8.538 229.52q0 5.023 5.022 8.287t12.053 3.265h92.913q7.032 0 11.803-3.265t5.273-8.287zM568.25 95.65l385.714 707.142q17.578 31.641-1.004 63.282-8.538 14.564-23.354 23.102t-31.892 8.538H126.286q-17.076 0-31.892-8.538T71.04 866.074q-18.582-31.641-1.004-63.282L455.75 95.65q8.538-15.57 23.605-24.61T512 62t32.645 9.04 23.605 24.61z"/></svg>'; | ||
|
||
// caution icon | ||
$caution-icon: '<svg viewBox="0 0 24 24"><path d="M12 2c5.523 0 10 4.477 10 10v3.764a2 2 0 0 1-1.106 1.789L18 19v1a3 3 0 0 1-2.824 2.995L14.95 23a2.5 2.5 0 0 0 .044-.33L15 22.5V22a2 2 0 0 0-1.85-1.995L13 20h-2a2 2 0 0 0-1.995 1.85L9 22v.5c0 .171.017.339.05.5H9a3 3 0 0 1-3-3v-1l-2.894-1.447A2 2 0 0 1 2 15.763V12C2 6.477 6.477 2 12 2zm-4 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z" fill="#e13238"/></svg>'; | ||
$caution-icon: '<svg viewBox="0 0 24 24"><path d="M12 2c5.523 0 10 4.477 10 10v3.764a2 2 0 0 1-1.106 1.789L18 19v1a3 3 0 0 1-2.824 2.995L14.95 23a2.5 2.5 0 0 0 .044-.33L15 22.5V22a2 2 0 0 0-1.85-1.995L13 20h-2a2 2 0 0 0-1.995 1.85L9 22v.5c0 .171.017.339.05.5H9a3 3 0 0 1-3-3v-1l-2.894-1.447A2 2 0 0 1 2 15.763V12C2 6.477 6.477 2 12 2zm-4 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>'; | ||
|
||
// note-icon | ||
$note-icon: '<svg viewBox="0 0 24 24"><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z" fill="#ccc"/></svg>'; | ||
$note-icon: '<svg viewBox="0 0 24 24"><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z"/></svg>'; | ||
|
||
// info icon | ||
$info-icon: '<svg viewBox="0 0 24 24"><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z" fill="#4cb3d4"/></svg>'; | ||
$info-icon: '<svg viewBox="0 0 24 24"><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z"/></svg>'; | ||
|
||
// important icon | ||
$important-icon: '<svg viewBox="0 0 1024 1024"><path d="M512 981.333a84.992 84.992 0 0 1-84.907-84.906h169.814A84.992 84.992 0 0 1 512 981.333zm384-128H128v-42.666l85.333-85.334v-256A298.325 298.325 0 0 1 448 177.92V128a64 64 0 0 1 128 0v49.92a298.325 298.325 0 0 1 234.667 291.413v256L896 810.667v42.666zm-426.667-256v85.334h85.334v-85.334h-85.334zm0-256V512h85.334V341.333h-85.334z" fill="#a371f7"/></svg>'; | ||
$important-icon: '<svg viewBox="0 0 1024 1024"><path d="M512 981.333a84.992 84.992 0 0 1-84.907-84.906h169.814A84.992 84.992 0 0 1 512 981.333zm384-128H128v-42.666l85.333-85.334v-256A298.325 298.325 0 0 1 448 177.92V128a64 64 0 0 1 128 0v49.92a298.325 298.325 0 0 1 234.667 291.413v256L896 810.667v42.666zm-426.667-256v85.334h85.334v-85.334h-85.334zm0-256V512h85.334V341.333h-85.334z"/></svg>'; | ||
|
||
// details icon | ||
$detail-icon: '<svg viewBox="0 0 24 24"><path fill="rgb(0,0,0,0.5)" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>'; | ||
$detail-dark-icon: '<svg viewBox="0 0 24 24"><path fill="rgb(255,255,255,0.5)" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>'; | ||
$detail-icon: '<svg viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>'; |
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
50 changes: 21 additions & 29 deletions
50
plugins/markdown/plugin-markdown-hint/src/client/styles/vars.css
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,44 +1,36 @@ | ||
:root { | ||
/* important */ | ||
--important-c-accent: #a371f7; | ||
--important-c-light: #f4eefe; | ||
--important-c-dark: #230555; | ||
--important-c-soft: rgb(163 113 247 / 10%); | ||
--important-c-accent: var(--vp-c-purple-bg); | ||
--important-c-text: var(--vp-c-purple-text); | ||
--important-c-soft: var(--vp-c-purple-soft); | ||
|
||
/* info */ | ||
--info-c-accent: #4cb3d4; | ||
--info-c-light: #eef9fd; | ||
--info-c-dark: #193c47; | ||
--info-c-soft: rgb(76 179 212 / 10%); | ||
--info-c-accent: var(--vp-c-blue-bg); | ||
--info-c-text: var(--vp-c-blue-text); | ||
--info-c-soft: var(--vp-c-blue-soft); | ||
|
||
/* note */ | ||
--note-c-accent: #ccc; | ||
--note-c-light: #fdfdfe; | ||
--note-c-dark: #474748; | ||
--note-c-soft: rgb(212 213 216 / 20%); | ||
--note-c-accent: var(--vp-c-grey-bg); | ||
--note-c-text: var(--vp-c-grey-text); | ||
--note-c-soft: var(--vp-c-grey-soft); | ||
|
||
/* tip */ | ||
--tip-c-accent: #009400; | ||
--tip-c-light: #e6f6e6; | ||
--tip-c-dark: #003100; | ||
--tip-c-soft: rgb(0 148 0 / 15%); | ||
--tip-c-accent: var(--vp-c-green-bg); | ||
--tip-c-text: var(--vp-c-green-text); | ||
--tip-c-soft: var(--vp-c-green-soft); | ||
|
||
/* warning */ | ||
--warning-c-accent: #e6a700; | ||
--warning-c-light: #fff8e6; | ||
--warning-c-dark: #4d3800; | ||
--warning-c-soft: rgb(230 167 0 / 15%); | ||
--warning-c-accent: var(--vp-c-yellow-bg); | ||
--warning-c-text: var(--vp-c-yellow-text); | ||
--warning-c-soft: var(--vp-c-yellow-soft); | ||
|
||
/* caution */ | ||
--caution-c-accent: #e13238; | ||
--caution-c-light: #ffebec; | ||
--caution-c-dark: #4b1113; | ||
--caution-c-soft: rgb(225 50 56 / 15%); | ||
--caution-c-accent: var(--vp-c-red-bg); | ||
--caution-c-text: var(--vp-c-red-text); | ||
--caution-c-soft: var(--vp-c-red-soft); | ||
|
||
/* detail */ | ||
--detail-c-light: #eee; | ||
--detail-c-dark: #333; | ||
--detail-c-icon-light: #ccc; | ||
--detail-c-icon-dark: #555; | ||
--detail-c-soft: rgb(127 127 127 / 15%); | ||
--detail-c-bg: var(--vp-c-control); | ||
--detail-c-icon: var(--vp-c-border); | ||
--detail-c-soft: var(--vp-c-grey-soft); | ||
} |
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