Skip to content

Commit

Permalink
fix: prompt content overflows horizontally (cotes2020#705)
Browse files Browse the repository at this point in the history
Resolves cotes2020#705
  • Loading branch information
cotes2020 authored and shihtiy-tw committed Nov 26, 2022
1 parent e095ed6 commit 4d29108
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions _sass/addon/commons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ blockquote {
color: var(--blockquote-text-color);

&[class^="prompt-"] {
display: flex;
border-left: 0;
border-radius: 6px;
padding: 0.75rem 1.2rem;
padding: 0.75rem 1.2rem 0.75rem 3rem;
color: var(--prompt-text-color);

&::before {
margin-right: 1rem;
font-family: "Font Awesome 5 Free";
text-align: center;
width: 1.25rem;
position: absolute;
left: 2.5rem;
}

p:last-child {
Expand Down Expand Up @@ -443,7 +443,6 @@ img[data-src] {
line-height: 1.8;
margin-top: 2rem;
overflow-wrap: break-word;
word-wrap: break-word;

a {
&:not(.img-link) {
Expand Down Expand Up @@ -1206,6 +1205,10 @@ $sidebar-display: "sidebar-display";
> blockquote[class^=prompt-] {
@include ml-mr(-1.25rem);
border-radius: 0;

&::before {
left: 1rem;
}
}
}

Expand Down

0 comments on commit 4d29108

Please sign in to comment.