Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical Alignment - Feature Request #17

Open
ibweb opened this issue Jan 11, 2021 · 10 comments
Open

Vertical Alignment - Feature Request #17

ibweb opened this issue Jan 11, 2021 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@ibweb
Copy link

ibweb commented Jan 11, 2021

Would it be possible to add an option for Vertical Alignment for the content on the FlipCard items?

By default, all content is aligned to the top which makes sense. However, our goal is if we have three FlipCard items next to each other (i.e. 3 column) with slightly varying length and have them matched height, we would like to have an option to align the content vertically to the middle instead of top.

Let me know if there's any possibility for this.

@forrestkirby forrestkirby self-assigned this Jan 11, 2021
@forrestkirby
Copy link
Owner

Hi ibweb,

did you already take a look at #4? Does that suits you needs?

Kind regards
Thomas

@ibweb
Copy link
Author

ibweb commented Jan 11, 2021

@forrestkirby I apologize as I missed that item. Thanks for pointing it out so graciously.
While #4 would likely get the visual functionality we are looking for, we need the ability to set this per flipcard element.
Meaning on a single website, we may have some flipcards needing top alignment and others requiring middle vertical alignment.
As a result, we'd prefer it be a dropdown selection item within the element itself (similar to Yootheme Pro's other elements that allow for vertical alignment changes).

@forrestkirby forrestkirby added the enhancement New feature or request label Jan 11, 2021
@forrestkirby
Copy link
Owner

Thanks for making this clear. And the setting would be the same for both – the flipcard front and the back? Or do you see any need to set it differently for the front than for the back?

@ibweb
Copy link
Author

ibweb commented Jan 11, 2021

@forrestkirby I think in 90% of cases it would be the same on both sides. However, I could see how having the independent options would be valuable for us and other designers if it's realistic from a programming perspective.

@forrestkirby
Copy link
Owner

forrestkirby commented Jan 19, 2021

I was thinking about this and came to the conclusion that I still haven’t completely understood how exactly the desired outcome should look like, so I created some mockups. In all of these layouts, there is a row with three columns and the option Match height has been checked. Is any of these matching what you had in mind?

@ibweb
Copy link
Author

ibweb commented Feb 2, 2021

@forrestkirby Option 2 is definitely what we had in mind as the option that you can toggle to for "Middle" instead of Top. This is what we were hoping for.
Option 1 is also very intriguing, and I could see it could be useful in some pretty unique scenarios as well.
I don't suppose you have an easy/practical way to make both of them as additional options, correct?

@forrestkirby
Copy link
Owner

Option 1 can be achieved if you set the vertical alignment of the first column to Middle.

Here’s a sample layout.

Option 2 will probably require an additional container to work which might impose issues with the layout or styling. I will take a look at it, but can’t make any promise.

@ibweb
Copy link
Author

ibweb commented Feb 4, 2021

That makes sense how to produce option 1, thank you for the explanation.
Option 2 is definitely what we had in mind, and I recognize that will be a lot harder. Let me know what you come up with and if you think it will be realistic.
Thanks for looking into this!

@grabit
Copy link

grabit commented Aug 4, 2021

This feature is really interesting.

We have cards with a huge photo on the front and we want to center the back in the middle as all the content in placed in the el-card-back div we can't use vertical-along: middle for it.

@ibweb
Copy link
Author

ibweb commented Mar 24, 2023

@forrestkirby did you up discovering a solution on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants