Skip to content

Commit

Permalink
Add more styles (#35)
Browse files Browse the repository at this point in the history
* Update pre, code style

* Add blockquote style

* Add details, summary style
  • Loading branch information
winterjung authored Feb 13, 2024
1 parent 1fb52bb commit f8a6589
Showing 1 changed file with 39 additions and 6 deletions.
45 changes: 39 additions & 6 deletions src/components/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@ pre {
}

pre {
padding: 16px;
overflow: auto;
background-color: #f6f8fa;
border-radius: 3px;
font-size: 85%;
line-height: 1.45;
padding: 16px;
color: #1F2328;
background-color: #f6f8fa;
border-radius: 6px;
word-break: normal;
}

code {
padding: .2em .4em;
margin: 0;
font-size: 0.85em;
background-color: rgba(27,31,35,.05);
border-radius: 3px;
font-size: 85%;
white-space: break-spaces;
background-color: rgba(175,184,193,0.2);
border-radius: 6px;
}

pre>code {
Expand All @@ -28,3 +32,32 @@ pre>code {
background: transparent;
border: 0;
}

blockquote {
margin: 0;
margin-bottom: 16px;
padding: 0 1em;
color: #656d76;
border-left: .25em solid #d0d7de;
}

details {
margin-bottom: 16px;
}

details:not([open]), summary {
cursor: pointer;
}

summary {
padding-left: 1.2em;
margin-left: -1em;
}

summary::before {
content: '▶︎ ';
}

details[open] summary:before {
content: "▼ ";
}

0 comments on commit f8a6589

Please sign in to comment.