redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

New Field: Body Background

Open sandrobilbeisi opened this issue 12 years ago • 27 comments

Hey dudes !

I'm kicking off 2014 with a new Redux Field : Body Background !

This particular field is specifically meant to style a page background I'm working on another one that styles DIVs

Supports background-color, which acts as fallback for missing or unsupported image

background-image is optional and when set , it enables sub-fields for

  • background-repeat
  • background-position
  • background-attachment

as well as the CSS3 properties

  • background-size (still buggy)
  • background-origin

has a large preview area on top rather than on bottom like typography works well on desktop and mobile down to width 640px

I still have to finish a few details, such as the possibility to disable options: right now you get all of them...

It still doesn't have support for gradients, though

sandrobilbeisi avatar Dec 31 '13 15:12 sandrobilbeisi

Haha. I have one too I am finishing up. Didn't think of a preview though. Want me to send you my code? Lol. You could finish it up as I fix folds today.

dovy avatar Dec 31 '13 15:12 dovy

Ok, lookee ... screen shot 2013-12-31 at 4 41 27 pm

sandrobilbeisi avatar Dec 31 '13 16:12 sandrobilbeisi

Mobile resolution

screen shot 2013-12-31 at 4 44 17 pm

sandrobilbeisi avatar Dec 31 '13 16:12 sandrobilbeisi

N I c e. Just get it ready, do a pull, and I'll add any extra stuff I may have. You're awesome. We needed it.

dovy avatar Dec 31 '13 16:12 dovy

only color screen shot 2013-12-31 at 4 46 32 pm

sandrobilbeisi avatar Dec 31 '13 16:12 sandrobilbeisi

Just a suggestion: Table those three options at the bottom so they line up properly. :)

kprovance avatar Dec 31 '13 16:12 kprovance

ok @kprovance !

Dovy can push his version and I can send a pull request

we'll merge the two different versions later, based on feedback

sandrobilbeisi avatar Dec 31 '13 16:12 sandrobilbeisi

@sandrobilbeisi just push yours when you're ready. ;). I'll merge it up.

dovy avatar Dec 31 '13 16:12 dovy

Okey Dokey

sandrobilbeisi avatar Dec 31 '13 16:12 sandrobilbeisi

Awesome work.

dovy avatar Dec 31 '13 16:12 dovy

I'm waiting... :P

dovy avatar Dec 31 '13 19:12 dovy

And waiting... haha.

dovy avatar Jan 01 '14 05:01 dovy

Still waiting. Sheesh. The new year has come and gone. You got me all excited for nothing.

Any ETA?

dovy avatar Jan 02 '14 05:01 dovy

Sorry for that, I'll upload today ... I was busy with friends and family up to late last night

got a whole bunch of aunts and cousins who came over from other towns

On Thu, Jan 2, 2014 at 6:29 AM, Dovy Paukstys [email protected]:

Still waiting. Sheesh. The new year has come and gone. You got me all excited for nothing.

Any ETA?

— Reply to this email directly or view it on GitHubhttps://github.com/ReduxFramework/ReduxFramework/issues/471#issuecomment-31438354 .

sandrobilbeisi avatar Jan 02 '14 07:01 sandrobilbeisi

Oh I see how it is, family first eigh? What is this, open source? hah. J/K.

Thanks for your effort.

dovy avatar Jan 02 '14 08:01 dovy

Almost there, still trying to nail a sanitization / validation bug

sandrobilbeisi avatar Jan 02 '14 14:01 sandrobilbeisi

Oh those are always fun! hah.

dovy avatar Jan 02 '14 22:01 dovy

Ok, I've fixed the pesky general sanitization bug an I've made some much needed UI improvements

done:

  • supports SVG ( hashtag layer targeting aka SVG sprites not yet supported )
  • fixed a few annoying bugs ( I think I've discovered a bug in the way the reset section feature works )
  • cosmetic improvements
  • iPad / Samsung G3 testing and improvements to the entablement
  • restored the semi-broken preview

left to do:

  • background-size validation and sub-field disclosure (this is one of the first redux fields to have sub-sub-fields !)
  • vendor-prefixed css output
  • cosmetic adjustments

future stuff (I'll build another field) :

  • group_field-style behavior for multiple backgrounds
  • gradients and rgba-multi-gradients (processor intensive)

sandrobilbeisi avatar Jan 03 '14 08:01 sandrobilbeisi

First pull request for body background #495

sandrobilbeisi avatar Jan 04 '14 22:01 sandrobilbeisi

This version works reliably I have ripped out a few things that weren't working properly I will add them in the next push/pull to the repo

there are a few things to be done:

  • Localization support
  • css output
  • background-position sizes support
  • background-size sizes support

screen shot 2014-01-04 at 11 51 15 pm

sandrobilbeisi avatar Jan 04 '14 22:01 sandrobilbeisi