Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions src/shared/components/challenge-detail/Specification/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,23 @@ $tc-link-visited: #0c4e98;
font-size: 13px;
color: $tc-black;
line-height: 20px;
margin: (2 * $base-unit) 0 (3 * $base-unit);
padding: 3 * $base-unit;
display: block;
margin: 0;
padding: 0 6px;
display: inline;
}

pre {
margin: (2 * $base-unit) 0 (3 * $base-unit);
overflow-x: scroll;
}

pre code {
display: block;
margin: 0;
padding: 3 * $base-unit;
white-space: pre;
}

ol {
@include roboto-regular;

Expand Down Expand Up @@ -385,8 +393,6 @@ $tc-link-visited: #0c4e98;
}

code {
white-space: pre;
margin: 10px 0 15px;
background: $tc-gray-neutral-light;
border: 1px solid silver;
border-radius: 6px;
Expand All @@ -395,8 +401,22 @@ $tc-link-visited: #0c4e98;
font-size: 13px;
color: $tc-black;
line-height: 20px;
padding: 15px;
padding: 0 6px;
margin: 0;
display: inline;
white-space: pre-wrap;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The change from white-space: pre to white-space: pre-wrap for code elements might affect how whitespace is handled within inline code blocks. Ensure this change is intentional and that it does not negatively impact the display of code snippets, especially if they rely on precise formatting.

}

pre {
margin: 10px 0 15px;
overflow-x: scroll;
}

pre code {
display: block;
padding: 15px;
margin: 0;
white-space: pre;
}

sub {
Expand All @@ -422,10 +442,6 @@ $tc-link-visited: #0c4e98;
color: $tc-gray-90;
line-height: 25px;
}

pre {
overflow-x: scroll;
}
}
}

Expand Down
Loading
Loading