Wowchemy-hugo-modules: Add option to customize homepage section spacing?

Created on 5 Jan 2018  路  2Comments  路  Source: wowchemy/wowchemy-hugo-modules

Homepage section spacing (space between sections/widgets) could be customizable via an option in the config file.

For example, this would enable a more compact appearance for users who prefer that.

Proposed param: design.spacing.padding

Documentation

To use, update to the latest master version and add the following to a widget frontmatter:

[design.spacing]
  # Customize the section spacing. Order is top, right, bottom, left.
  padding = ["20px", "0", "20px", "0"]
enhancement needs investigation

Most helpful comment

Yes, spacing and font size would be nice to have in config!

Currently, I have this in my custom.css to reduce the spacing:

.home-section {
    padding: 30px 0 30px 0;
  }

And for font, I have a local copy of font files in data/fonts folder:

# Font size
font_size = "16"
font_size_small = "12"

BUT did not like the resulting smaller font in nav bar: so another tweak in custom.css:

nav#navbar-main li {
   font-size: 16px;
  }

All 2 comments

Yes, spacing and font size would be nice to have in config!

Currently, I have this in my custom.css to reduce the spacing:

.home-section {
    padding: 30px 0 30px 0;
  }

And for font, I have a local copy of font files in data/fonts folder:

# Font size
font_size = "16"
font_size_small = "12"

BUT did not like the resulting smaller font in nav bar: so another tweak in custom.css:

nav#navbar-main li {
   font-size: 16px;
  }

Being able to customize spacing would be a very nice feature!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

somnathrakshit picture somnathrakshit  路  3Comments

Framartin picture Framartin  路  4Comments

gcushen picture gcushen  路  3Comments

jooyoungseo picture jooyoungseo  路  3Comments

henningninneh picture henningninneh  路  3Comments