Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows to have filenames above code snippet in Torchlight #366

Closed
wants to merge 1 commit into from
Closed
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
1 change: 0 additions & 1 deletion public/build/assets/app-dc063eeb.css

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/app-e096ad46.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resources/css/app.css": {
"file": "assets/app-dc063eeb.css",
"file": "assets/app-e096ad46.css",
"isEntry": true,
"src": "resources/css/app.css"
},
Expand Down
30 changes: 30 additions & 0 deletions resources/css/_code.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,33 @@ pre code.torchlight .line-number {
}
}
}

.code-container {
.code-container-filename:before {
content: '\01F4C4\FE0E';
margin-inline-end: 1em;
}

.code-container-filename {
--tw-bg-opacity: 1;
background-color: rgb(37 42 55 / var(--tw-bg-opacity));
/*! background: #292D3E; */
border-start-start-radius: .5rem;
border-start-end-radius: .5rem;
color: var(--docsearch-muted-color);
padding: 1rem;
font-size: .8em;
font-family: source-code-pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;
font-feature-settings: normal;
font-variation-settings: normal;
border-block-end: 1px solid var(--docsearch-muted-color);
}

.code-container-filename + .code-block-wrapper {
pre {
margin-block-start: 0;
border-start-start-radius: 0;
border-start-end-radius: 0;
}
}
}