Jason
June 4, 2021, 4:09pm
1
Hi all,
I’ve been starting to look into CSS usage in Glide and how we can better serve you. I would love if y’all could help me with this task by doing a few things.
Give me a description of what you are using CSS for.
Give me some before and after screenshots of what your CSS does. If it adds motion an movie would be amazing.
If you are open to it, include your CSS snippet as an inline code block.
Keep it short! I want to gather a large gallery and it will really really help me actually understand and better service everyones need if everyone really tries to keep things on topic and pithy.
Jason
20 Likes
@Lucas_Pires and me have a library of codes on Notion. If Lucas hasn’t sent it over by morning my time I will include it here. Thank you for taking the time to look into this!
5 Likes
You should find more than you need here thanks to @Uzo
3 Likes
oh wow, @jason you’re really opening a HUGE pandoras box here
gee, where to start…
I use CSS a lot for tables. Here is a recent example that I posted (includes a short video and the CSS/HTML used):
Sure!
One thing that isn’t obvious from the screen shot is that two of those tables are collapsable:
That’s done in the usual way, using HTML <details><summary> tags. Although getting it to play nicely with the tables was a bit fiddly.
Anyway… I used HTML Table Styler ▦ CSS Generator | 𝗗𝗜𝗩𝗧𝗔𝗕𝗟𝗘.𝗖𝗢𝗠 to come up with the basic table structure and CSS, and then butchered the CSS until I got it looking how I wanted. My CSS-fu is not very strong, so I suspect there is a lot of bloat the…
I also use CSS a lot for hiding stuff and controlling user flow. Hiding the back “button”, etc
I’ve also used CSS for generating a customised calendar view for displaying a shift roster (thanks to some awesome help from @Jeff_Hager )
Here we go…
Some of the styling is still a bit wonky, but that’s easy fixed.
I only have the roster for a single month right now, so I actually created two tmp-Calendar columns, then used and ITE to check the status of the relation to the roster sheet. If it’s empty, show a blank calendar, otherwise show the selected workers calendar.
This is what my new roster sheet looks like…
[Screen Shot 2021-01-27 at 1.03.41 AM]
And in case you're interested, here is the code I wrote…
That’s just a couple of examples off the top of my head. This is going to be a really long thread
3 Likes
Oh man… this would be awesome if we could use CSS the right way. Super exciting to hear that its being looked at!
I use CSS mainly to style buttons, implement full background images, change the color of fonts, change padding/margins. In addition, I give users the ability to modify their color choices for their buttons and background opacity.
Before:
After:
<div class="background"></div>
<pre><span><style>
.background {
position: fixed;
margin-top:0;
height: 100%;
width: 100%;
top:0;
right:0;
left: 0%;
z-index:-100;
opacity: .3;
background-image: url("URL");
background-size: cover;
background-position: center center;
}
<pre><span><style>
[data-test="app-summary"] > div > div > div > div {
color: #FFF; }
.hUuORH.hUuORH {
padding: 20px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
border-bottom-right-radius: 0px;
border-bottom-left-radius: 0px;
border-bottom: 0px;
margin: 0px 16px 0px 20px;
justify-content: left;
text-align: left;
font-size: 1.1rem;
font-weight: 700;
}
<pre><span><style>
[data-test="app-summary"] > div > div > div {
color: #FFF;
}
.hUuORH.hUuORH {
padding: 20px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
border-bottom-right-radius: 0px;
border-bottom-left-radius: 0px;
border-bottom: 1px;
margin: 0px 16px 0px 20px;
justify-content: left;
}
<pre><span><style>
.hUuORH.hUuORH {
color: #TEXT !important;
background-color: #BACKGROUND !important;
border-color: #BORDER !important;
padding: 20px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
border-bottom-right-radius: 0px;
border-bottom-left-radius: 0px;
border-bottom: 0px;
margin: 0px 16px 0px 20px;
justify-content: left;
text-align: left;
font-size: 1.1rem;
font-weight: 700;
}
[data-test="app-tag-overlay"] {
background-color: #BACKGROUND;
color: #TEXT;
}
17 Likes
Jason
June 4, 2021, 4:24pm
7
If everyone could do their best to emulate Joes format that would be amazing.
3 Likes
Uzo
June 4, 2021, 4:38pm
8
And I got so addicted to CSS, that there is not a single element in that screen… originally from Glide…LOL.
6 Likes
This is great, @Jason ! But i have many as @ThinhDinh said. Where do I start from?
2 Likes
Jason
June 4, 2021, 5:24pm
10
Just start posting. Go wild
1 Like
Uzo
June 4, 2021, 5:27pm
11
please post codes with proper targeting, so it will work on any device and OS, people are using them without releasing, that is not working for users on deferent devices than yours.
1 Like
They are, but they’re majority to use in mobile
1 Like
Jason
June 4, 2021, 5:31pm
13
At the moment I really just need a large sampling of what people are using. I need the visuals and the code. I want to see what yall are doing, try to figure out how I can make it less prone to insane breakages, and provide better functionality, etc.
3 Likes
Jason
June 4, 2021, 5:36pm
15
Oh yeah I have been digging into that I was hoping to find even more from the rest of the community.
Uzo
June 4, 2021, 5:40pm
16
tones of samples and discussion there:
Hello,
Glide community
With some glider we want to make a showcase with all the Most Beautiful Design App. Specially the App with a innovant or Nice Design !
If you think your App Match the topic be free to comment with some explanation of your app
Regard
Stan
Manu.n
June 4, 2021, 6:08pm
20
Hello @Jason
Personally I use CSS to supplement or create objects that I need (or at the request of some Glide users).
Here are my few observations (with my small level in CSS):
it is quite difficult to make a “responsive” CSS (rwd?!) for the 3 screens: phone, tablet, desktop
I also often have surprises between rendering under the editor, desktop or on the mobile, probably a lack of knowledge on my part on the problems of cross-platform PWA.
It would be nice to publish a guide to good or bad practices (so as not to disrupt the entire application).
Finally The Most Important (for me): As now we can name the components,
is it possible to have class or id names in relation to the names. it would then be easy to identify.
Here are some recent examples:
Calendar
Hello,
Despite the offer of components provided by the Glide team, I made, for my personal needs, a modal date picker. Something similar to the “Date” component but with a visualization of my data. I stupidly call it: “PickCalendar”. It exists with or without the images.
I also added a no modal calendar / schedule tabs with full pictures, single pictures or no picture.
I used the @Jeff_Hager calendar example, which I have to thank very much, as the basis for the structure and the like.
Here …
Message box
Hello,
I needed a MessageBox, and since it doesn’t exist in glide, I did it with CSS.
You can adapt it to your needs.
For the demo, click on the “floating button” to make it appear.
When the “MsgBox” is visible, you normally can’t click anything else.
Here is a small demo application.
EDIT : I retrieve a part of CSS in the community (but I no longer have the author), I just adapted with buttons.
Edit text
Hello, @erik
If you are interested, here is a small example.
You must adapt the number in each “nth-child (…)” according to the order of the components.
Be careful, if you change the visibility of the components, this trick no longer works (or badly!)
Test on Chrome / Windows 10 & Android
[image]
The CSS
<pre><span><style>
/* Text Entry (2nd component) */
div[id*='screenScrollView'] > div > :nth-child(2) {
margin-left:-5px;
width:50%;
height:70px;
}
/* Number Entry (3eme component) */
…
Choice
Hello,
a bit to replace the component “Choice” but it could be personalized. I made this CSS this morning
[image]
Here is a small demo.
Demo
bonjour @SantiagoPerez
something like that ???
[image]
<pre><span><style>
/* Choice 1 (2nd component) */
div[id*='screenScrollView'] > div > :nth-child(2) {
margin-left:-5px;
width:150px;
}
/* Choice 2 (3eme component) */
div[id*='screenScrollView'] > div > :nth-child(3) {
margin-top:-97px;
margin-left:115px;
width:150px;
}
/* Choice 3 (4eme component) */
div[id*='screenScrollView'] > div > :nth-child(4) {
margin-top:-97px;
margin-left:235px;
width:150px;
}
</style></span></pre>
EDIT: I…
multi choice
Hello
I’ve been tinkering with Glide since August 2020. From the start I have been waiting for a multiple selection “Choice”, I know the team has a lot of work to do and that my request will eventually be available.
But in the meantime I made an alternative solution (like “CSS Customizable Selection ”)
and I took the opportunity to integrate the “Trebuchet Method ” of @Lucas_Pires (thank you lucas)
[image]
Demo
Date picker
Courtesy of @Manu.n - star work!
Existing UX for picker
[Screenshot 2021-05-19 at 10.48.55]
and the Manu way
[Screenshot 2021-05-19 at 17.23.36]
<pre><span><style>
/* Month (Mai 2021) */
.MuiPickersSlideTransition-transitionContainer > * {
font-size: 1.5em !important;
margin-top:-5px;
}
/* Year & Day */
.MuiPickersToolbarText-toolbarTxt {
font-size: 2.125rem;
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
font-weight: 400;
line-height: 1.235;
letter-spacing: 0.00735em;
}
/*…
other
just for Laughs,
isn’t that a carousel ???
ok it’s not funny !!!
Hello,
my original idea was to create tooltips for the floating buttons.
Because despite many icons available, it is not always easy for some users.
Except that I forgot that it doesn’t work with a mobile , so I made a version with additional text.
Well, it still works in desktop mode.
This is not ideal if you are using visibility. But hey in the meantime, it can still be used.
[image]
<pre><span><style>
.fab-target > :hover:nth-chi…
That’s all for the moment !!
10 Likes