HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

Change width in the home page? #487

Closed giabaio closed 6 years ago

giabaio commented 6 years ago

I'm just starting playing around with the theme, which is super cool, actually!

I have managed to increase the width of the pages, but I can't figure out how to increase (say, to 80%) the home page. Is there an easy way to do so? Thanks Gianluca

gcushen commented 6 years ago

You would need to use custom CSS (refer to Academic's documentation website). Then you can try something similar to:

.container {
    width: 80% !important;
}
giabaio commented 6 years ago

Great --- thanks! I'm fiddling with the theme and it's very interesting. Not sure I found what I like, but your answer is very helpful. Many thanks!

JOduMonT commented 3 years ago

@gcushen I added

.container {
    width: 80% !important;
}

inside ./assets/scss/custom.scss and serve the website with hugo serve but I don't see any difference.

but it work when I add this in my custom.scss it is the right way ??

@media (min-width: 576px) {.container-sm, .container {max-width: 80%; }}
@media (min-width: 768px) {.container-md, .container-sm, .container {max-width: 80%;}}
@media (min-width: 992px) {.container-lg, .container-md, .container-sm, .container {max-width: 80%;}}
@media (min-width: 1200px) {.container-xl, .container-lg, .container-md, .container-sm, .container {max-width: 80%;}}

also if I try .container {max-width: 80% !important;} the navbar don't align with the content