Plugin Update: CSS Tools (Free Version)

whats the version on your CSS Tools? I have just tried it on mobile, custom, fixed, in debug and run and i get no errors, the width is perfectly inline with bubbles but i also get the height and orientation…

In terms of targeting css classes, would it be possible to target the one highlighted instead of the group inside the RG?

So basically the cell in the RG. I think I mentioned this before, maybe I just need to be patient and wait for the PRO tools!

Sorry, you’re right, I hadn’t upgraded to the latest version…

As for the first question – is screen height a possibility? I can still only get returned the page height.

dont worry ive got it covered i just havent made it to the rg issue as yet, I got an email from emmanuel last to hand up my plugins for beta testing of the bubble store so ive been bouncing between everything trying to split who/what plugins are staying with me and whats migrating. the thing is too its far more adventurous for me to put the effort into CSS Tools Pro, here let me show you something hang on.

yes i will add this, although arnt you better off knowing the are the user can see as in the browser not the screen?

wont be much longer

ok tell me if you can come up with a few uses for this…

1st up - mouse or mobile touch fyi.

that cool but… next up

image

a case… lets go on mouse/touch hold -

this one looks good -
image

Thought this was going to be part of CSS Pro?

image
something to grab…

now the element floats with the mouse… and we hover over little white box with this

and
little white box greets us,

ive got a few things to change around but you get the point


drag anything

this is all css tools, the detection element all those actions… you could even use the add class action and add sorting so to a list of anything without a repeating group… i get people dont want to have to code as much as they get thats what gives them bubble, so im going to keep bridging gaps.

oh here before i have to run,


:slight_smile:

I have updated CSS Tools,

What New:

  • You can now target ID’s & Classes. This means you can provide a class name and change multiple elements across element types and the same time with the one action. You need to be aware that this is in no way intended for beginners and randomly picking names or classes out of the debug console is not going end well. that being said backups are not just for backing up… there also for stuffing up, and learning something is better than running away.

  • As always dynamic is key, so most things are dynamic even if i don’t see a use case for it someone will. You will notice Unique Id’s on the elements, this is mainly for cases of repeating groups, See here

  • There is a new element, Find DAD… its bridges the gap between element and its parent. not its direct parent, not its invisible didnt know that was there parent containing parent but the container you place it on - eg. place it in a group, the actual group is the reference. What does the element do though? it allows you to ADD/REMOVE class names to the element without having any information about it. -

EDIT:

Just place any old values in the properties window, these will be removed next update and no longer reference the code at all…

The above is back in the picture so we can auto run the element as we cannot reference the element once the repeating group eats it… this way as your page loads the RG will get the class you put in the initial properties.

  • I will be removing the resize element action so this is your heads up if you would rather prepare than get caught when you update next, to resize instantly just use resize over time and set the time to 0.

Twist & Shout! - Well that seemed to do the trick… couple of little tweaks on that button and we have our selves a pretty cool reason to dig our old apps up…

@petter Regarding your need for the screen size, if i push these values out as states like the others will this do? how often do you need these values? do i need to poll them on resize or just page load? the values marked in red are cool if you need to know the locations of a multi screen setup…

Actual Screen Height & Width have now been added @petter.

Please note that bubble pushed an update last night that restricts property labels to the one line meaning just about everyone of my plugins will now need an update (there is now an information label that can be added) so while I get around to that remember that the new update for css tools requires you to prefix the element id, so if your targeting an element’s id you must include the hash eg.

#myElementId

and if targeting a class, a period,

.myClassName

image
something to grab…

now the element floats with the mouse… and we hover over little white box with this
imageimage.png757x429 14.5 KB
and
little white box greets us,
imageimage.png523x503 13.6 KB
ive got a few things to change around but you get the point
bgbg.gif1199x584 615 KB
drag anything
this is all css tools, the detection element all those actions… you could even use the add class action and add sorting so to a list of anything without a repeating group… i get people dont want to have to code as much as they get thats what gives them bubble, so im going to keep bridging gaps.

oh here before i have to run,
imageimage.png463x643 16.7 KB
:slight_smile:

I’m a bit confused here… Is this still the CSS plugin or another? There are so many at this point I’m losing track.

I’ve read somewhere else others had problems with implementing the CSS tools plugin inside a RG and I’m not sure I’ve read about a solution yet? I played around with the updated version, but couldnt get it to work how I need it.

So to sum it all up, I’d like to know if the following is possible currently:

Add CSS tools to a group inside a RG cell to conditionally change the cell’s height.
Mouse drag and drop elements inside a page and if so, as part of which plugin?

Thanks a bunch!

this is all css tools, except the point and click stuff I showed the other night, that is pro (this is what I do for a living so I have to hold something for pro… people don’t buy semi-pro :-))

I have solved the rg issue in about 4 posts but nobody seems to connect the dots so after dinner I will make a demo app. the gif above is me doing exactly what your asking minus point and click.

I noticed the Twist and Should gif, but if I look closely I see the RG’s height affected but not the cells? I guess that should be possible too then.

And sorry about the not getting it earlier :slight_smile:

Also, I still want to pay for CSS and Print Pro as soon as the features I need have been implemented. I think you are close!

Oh I noticed a ‘find dad’ additional element… let me have a closer look at that :stuck_out_tongue:

pm me your email mate, ive got something for you…

Hi @jarrad, I get the impression that this and your other plugins are great additions to Bubble, but I struggle to understand them and I think they and you would benefit from some good, well-documented examples. Take this css tools plugin for example, like others above I have added it and it is not immediately clear to me how to use it, even after reading your responses above.

If you can spare some time, I would request/suggest a concise step by step guide for one or more use cases. My use case by the way, is that I have a main group in which I place other small groups and I want the main group’s height to shrink to the height of the each child as the child is made visible with workflows. Is this possible and if so how? What is the unique id property - is the exposed id of the element I want to control with the css tool?

I’ll keep playing with it and perhaps I’ll figure it out anyway, but it would help me, and I think aid wider adoption of your plugins if you had a few very clear step by step guides.

EDIT: By the way, I know @jarrad is super busy, so if anyone else can show an example of how they’ve used this plugin, I would really appreciate it.

@jarrad has been of great help to me with some of this stuff and I plan to create a for-dummies-tutorial of implementing this in a repeating group. But I agree with you. There are a lot gems but it is not always clear what the possibilities are. Much like Bubble itself, until you see a live example you appreciate the added value!

My specific use case was that I need the repeating group to shrink for certain entries and stay default for others. So I think it sounds similar to your use case.