bulma icon indicating copy to clipboard operation
bulma copied to clipboard

Support for sticky footer

Open soc opened this issue 10 years ago • 61 comments

It would be nice if Bulma had built-in support for "sticky footers" as described in https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/.

soc avatar Feb 06 '16 07:02 soc

+1 this is a must have!

ibrahimyu avatar Feb 18 '16 15:02 ibrahimyu

Yeah, so this requires a class on the html or body, and an additional container like .main or something. It's a tricky one because it's not a separate component but a collection of things. I might add it though.

jgthms avatar Feb 29 '16 19:02 jgthms

Any news on that?

guilhermedecampo avatar Jul 13 '16 17:07 guilhermedecampo

trying to do the same but not working :c

joaoeffting avatar Jul 19 '16 23:07 joaoeffting

@joaoeffting try out...

layout.jsx

<div className={styles.site}>
  <Header/>
  <main className={styles.site__content}>
    // my-content
  </main>
  <Footer />
</div>

layout.styl

.site
  display flex
  min-height 100vh
  flex-direction column

.site__content
  flex 1

guilhermedecampo avatar Jul 22 '16 14:07 guilhermedecampo

yeah.. it would be nice to have a sticky and might a always visible as well. I mean, when you have infinite scroll and still want a fixed footer in your page.

Thanks!

evertramos avatar Dec 04 '16 12:12 evertramos

There is a pull request to add this in at #366

VizuaaLOG avatar Dec 06 '16 13:12 VizuaaLOG

@guilhermedecampo solution works well. Just use a wrapper div around the content block that is just above the footer.

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
  
#wrapper {
  flex: 1;
}

richeklein avatar Mar 08 '17 15:03 richeklein

@jgthms I'm probably missing something, why were this and #366 closed?

jgillich avatar Apr 08 '17 18:04 jgillich

A Sticky footer by default would still be greatly useful

benbrittain avatar May 28 '17 02:05 benbrittain

@jgillich @jgthms I'm also wondering why this was closed.

toymachiner62 avatar May 31 '17 03:05 toymachiner62

.fix-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    overflow:hidden;
}

edg-l avatar Jun 08 '17 15:06 edg-l

I'm using Bulma and echo what other people have mentioned that a sticky footer class="" would be great. I've used, this simple solution, https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ which works great.

obfusticatedcode avatar Jun 11 '17 21:06 obfusticatedcode

+1

solbreslin avatar Aug 31 '17 15:08 solbreslin

Please add sticky class for footer!

lobanovkirill avatar Oct 15 '17 13:10 lobanovkirill

+1

The solution mentioned by @obfusticatedcode works flawless but having it built in would be more beautiful

BenBao93 avatar Oct 20 '17 11:10 BenBao93

+1

rvalery avatar Dec 14 '17 16:12 rvalery

+1

dikaio avatar Dec 15 '17 08:12 dikaio

Stop with the +1, they don't do anything. Use reactions.

jgillich avatar Dec 15 '17 12:12 jgillich

@jgillich. Yes, that just made an enormous difference...

dikaio avatar Dec 15 '17 17:12 dikaio