Skip to content

Theme: no copy bar #4

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

Merged
merged 3 commits into from
Sep 15, 2024
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
16 changes: 16 additions & 0 deletions sass/_extra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ blockquote > p:first-child {
code {
font-size: 1rem;
}

/* Remove the padding at the top of a code block to make space for the
* language/copybutton bar. */
pre {
padding-top: .3rem;
/* To ensure that top and bottom padding are definitely the same, even if
* abridge updates its styles, let's set the padding-bottom to this value
* too. At the time of writing (2024-09-15), this is the same as abridge's
* value (and hence doesn't change anything). */
padding-bottom: .3rem;
}

/* Actually remove the language/copybutton bar at the top of a code block. */
pre code[data-lang]::before {
display: none;
}
8 changes: 4 additions & 4 deletions sass/abridge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//$mb: 1200px,// value at which to switch from fluid layout to max-width

$abridgeMode: "switcher",//valid values: switcher, auto, dark, light
$syntax-mode: "auto",// Force syntax mode: auto, dark, light
$syntax-mode: "light",// Force syntax mode: auto, dark, light
$switcherDefault: "light",// default nojs switcher mode: dark, light (make sure to also set js_switcher_default in config.toml)

$color: "orange",// color template to use/override: orange, blue, blueshade
Expand All @@ -22,17 +22,17 @@

$icon-rss: true,
$icon-mail: false,// e-mail
$icon-mastodon: false,
$icon-mastodon: true,
$icon-element: false,
$icon-matrix: false,
$icon-buymeacoffee: false,
$icon-kofi: false,
$icon-twitter: false,
$icon-twitter: true,
$icon-facebook: false,
$icon-linkedin: false,
$icon-codeberg: false,
$icon-gitlab: false,
$icon-github: false,
$icon-github: true,
$icon-github-sponsor: false,
$icon-bitbucket: false,
$icon-python: false,
Expand Down