Skip to content

Commit

Permalink
feat: add the hb.styles.hb_top_offset parameter (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Aug 25, 2023
1 parent 9e08b6a commit eb242d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/hb/scss/_root.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:root {
--#{$prefix}top-offset: 0;
--#{$prefix}top-offset: #{$hb-top-offset};
}
1 change: 1 addition & 0 deletions assets/hb/scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$prefix: hb- !default;
$hb-top-offset: 24px !default;

// Tables
$hb-table-bordered: true !default;
Expand Down
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ logo = "/images/logo.png"
[params.hb.styles]
prefix = "hb-" # CSS variables prefix.
# primary = "#0d6efd" # hex color codes.
hb_top_offset = "24px" # the default top offset, in pixels.

0 comments on commit eb242d3

Please sign in to comment.