Skip to content

Commit

Permalink
Width fix
Browse files Browse the repository at this point in the history
  • Loading branch information
x1y committed Mar 17, 2024
1 parent b394145 commit 1d702c2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions content/documentation/test.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ Test `test test test test test test test test test test test test test test test

test test test test test test test test test test test test test test test test test test test test

[source,shell]
----
echo "Short code"
----

[source,shell]
----
echo "This is a short line."
Expand Down
16 changes: 13 additions & 3 deletions themes/pinetheme/assets/css/documentation.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,26 @@ div#doc-page h1 {
margin-bottom: 1em;
}
div#doc-page code {
background-color: #f8f9fa;
border: 1px solid #eaecf0;
font-family: source code pro, lucida console, monospace;
display: inline-block;
overflow: scroll;
font-weight: 400;
max-width: 98%;
vertical-align: bottom;
vertical-align: top;
padding: 0 4px;
}
div#doc-page p code {
background-color: #f8f9fa;
border: 1px solid #eaecf0;
line-height: 1.3;
}
div#doc-page pre {
background-color: #f8f9fa;
outline: 1px solid #eaecf0;
}
div#doc-page td pre {
outline: none;
}
.linenotable {
border: none;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion themes/pinetheme/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ div.olist{
margin: 0 48px;
}
pre {
padding: 0.6rem;
margin: 0.6rem;
color: #444;
font-family: source code pro, lucida console, monospace;
font-size: 16px;
Expand Down

0 comments on commit 1d702c2

Please sign in to comment.