Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored and github-actions[bot] committed Jan 5, 2025
1 parent 8078e50 commit ba49886
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/Docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function content(): ?string
->after('---')
->after('---')
->markdown(extensions: [
new \Laravelsu\Highlight\CommonMark\HighlightExtension(),
new \Laravelsu\Highlight\CommonMark\HighlightExtension,
new UnfencedExtension,
])
->toString();
Expand Down
2 changes: 1 addition & 1 deletion app/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(string $name)
->after('---')
->after('---')
->markdown(extensions: [
new HighlightExtension()
new HighlightExtension,
])
->toString();
}
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function prettyComment(): string
],
],
[
new \Laravelsu\Highlight\CommonMark\HighlightExtension(),
new \Laravelsu\Highlight\CommonMark\HighlightExtension,
new MentionExtension,
]
);
Expand Down
2 changes: 1 addition & 1 deletion app/View/Components/Posts/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function toHtml(): string
'max_nesting_level' => 20,
],
[
new \Laravelsu\Highlight\CommonMark\HighlightExtension(),
new \Laravelsu\Highlight\CommonMark\HighlightExtension,
])
->toString();

Expand Down
2 changes: 1 addition & 1 deletion resources/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $utilities: (
@import 'gagarin';
@import 'slider';
@import 'santa';
@import "highlight";
@import 'highlight';

.avatar {
border-radius: 10em;
Expand Down
1 change: 0 additions & 1 deletion resources/css/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ main,
white-space: pre !important;
overflow: hidden;
}

}

.code-container {
Expand Down
4 changes: 2 additions & 2 deletions resources/css/highlight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ pre {
user-select: none;

&-addition {
background-color: #34A853;
background-color: #34a853;
color: #fff;
}

&-deletion {
background-color: #E94F4F;
background-color: #e94f4f;
color: #fff;
}
}
Expand Down
1 change: 0 additions & 1 deletion resources/css/marketing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
}
}


.code-marketing-snipped {
pre {
margin: 0;
Expand Down
4 changes: 1 addition & 3 deletions resources/js/controllers/prism_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ export default class extends Controller {
Prism.manual = false;

[...this.element.querySelectorAll('pre code')].forEach((el) => {

if(el.classList.contains('notranslate')){
if (el.classList.contains('notranslate')) {
return;
}


if (el.getAttribute('class') === null) {
el.setAttribute('class', 'language-php');
}
Expand Down

0 comments on commit ba49886

Please sign in to comment.