mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 17:44:30 +00:00
docs: Adjust the note and warning callout design (#14605)
So they're more consistent and polished. Felt like they could be a bit more refined. --- Release Notes: - N/A
This commit is contained in:
parent
696591ca55
commit
9499adf50d
2 changed files with 50 additions and 18 deletions
62
docs/theme/css/general.css
vendored
62
docs/theme/css/general.css
vendored
|
@ -202,37 +202,67 @@ table tbody tr:nth-child(2n) {
|
|||
}
|
||||
|
||||
blockquote {
|
||||
margin: 20px 0;
|
||||
padding: 0 20px;
|
||||
margin: auto;
|
||||
margin-top: 1rem;
|
||||
padding: 1rem 1.25rem;
|
||||
color: var(--fg);
|
||||
background-color: var(--quote-bg);
|
||||
border-block-start: 0.1em solid var(--quote-border);
|
||||
border-block-end: 0.1em solid var(--quote-border);
|
||||
border: 1px solid var(--quote-border);
|
||||
}
|
||||
|
||||
.warning {
|
||||
margin: 20px;
|
||||
padding: 0 20px;
|
||||
border-inline-start: 2px solid var(--warning-border);
|
||||
blockquote > p {
|
||||
margin: 0;
|
||||
padding-left: 2.6rem;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.warning:before {
|
||||
blockquote:before {
|
||||
position: absolute;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
margin-inline-start: calc(-1.5rem - 21px);
|
||||
content: "ⓘ";
|
||||
text-align: center;
|
||||
background-color: var(--bg);
|
||||
color: var(--warning-border);
|
||||
margin: 0.3rem 0;
|
||||
width: 1.6rem;
|
||||
height: 1.6rem;
|
||||
font-size: 1.6rem;
|
||||
font-weight: bold;
|
||||
font-size: 2rem;
|
||||
color: var(--icons);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1.625em;
|
||||
}
|
||||
|
||||
blockquote .warning:before {
|
||||
background-color: var(--quote-bg);
|
||||
}
|
||||
|
||||
.warning {
|
||||
margin: auto;
|
||||
padding: 1rem 1.25rem;
|
||||
background-color: var(--warning-bg);
|
||||
border: 1px solid var(--warning-border);
|
||||
}
|
||||
|
||||
.warning > p {
|
||||
margin: 0;
|
||||
padding-left: 2.6rem;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.warning:before {
|
||||
position: absolute;
|
||||
content: "ⓘ";
|
||||
margin: 0.3rem 0;
|
||||
width: 1.6rem;
|
||||
height: 1.6rem;
|
||||
font-size: 1.6rem;
|
||||
font-weight: bold;
|
||||
color: var(--warning-icon);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1.625em;
|
||||
}
|
||||
|
||||
kbd {
|
||||
background-color: rgba(8, 76, 207, 0.1);
|
||||
border-radius: 4px;
|
||||
|
|
6
docs/theme/css/variables.css
vendored
6
docs/theme/css/variables.css
vendored
|
@ -35,9 +35,11 @@
|
|||
--theme-hover: #e6e6e6;
|
||||
|
||||
--quote-bg: hsl(197, 37%, 96%);
|
||||
--quote-border: hsl(197, 37%, 91%);
|
||||
--quote-border: hsl(197, 37%, 88%);
|
||||
|
||||
--warning-border: #ff8e00;
|
||||
--warning-border: hsl(25, 100%, 85%);
|
||||
--warning-bg: hsl(42, 100%, 60%, 0.1);
|
||||
--warning-icon: hsl(42, 100%, 30%);
|
||||
|
||||
--table-border-color: hsl(219, 93%, 42%, 0.15);
|
||||
--table-header-bg: hsl(0, 0%, 80%);
|
||||
|
|
Loading…
Reference in a new issue