Comments (5)
Specifying mobile and tablet specific column widths like in Bootstrap is not currently possible. Bootstrap isn't used in the project, however I am interested in supporting something like this so long as it can be achieved without adversely affecting people who have no use for this level of control.
What you can do in Tailor at the moment:
- Specify custom classes for both rows and columns.
- Select the breakpoint at which columns collapse into a single column.
One factor to overcome is that columns in Tailor are added and resized using drag and drop. I'm putting together a free advanced extension for more advanced features that not everyone will be interested in to avoid "feature bloat" in the core plugin. Perhaps a couple of settings could be added through that to control the individual column widths on various screen sizes.
Interested to get your thoughts on what this could realistically look like in the context of Tailor.
from tailor.
Is it possible for the Tailor canvas to know which device preview "mode" you're currently in? Could the drag-to-resize columns (and classes) be set and saved per "device mode"?
That way you could set your column widths for desktop (a typical default view when working in Tailor) and then switch the view mode to tablet, resize the columns, and both settings would be saved. This way editing is always done in context with the device you're styling for, and doesn't add clutter to the settings screens.
The output would necessarily be something like Bootstrap's sm-6 md-8
classes but it would get the job done.
from tailor.
I like the idea, although suspect that it may suffer from some problems (e.g., dragging to resize collapsed columns). Responsive settings of this sort are planned to be part of an upcoming free extension, so I will put some thought into how this could/should work.
Really keen to get feedback from you (and anyone reading this)!
from tailor.
Tailor 1.7.4 introduces both nested and responsive columns. Enjoy.
from tailor.
@andrew-worsfold Thanks for improve the column element that now uses percentage instead of 12 grid.
However I think it would be awesome if there is a field to manually enter the width because I have a little problem resizing the column using the mouse to get the exact width for example 1/3 column currently I get 33.4% which should be 33.3333333333%
I know it very tiny difference between 33.4% and 33.3333333333% but the displayed result quite make a big difference with 33.3333333333% I get 370px which is perfect pixel but with 33.4% I get only 369.45px, some of image inside becomes blurry because the column size is lower than 370px
Another benefit of adding column width field is ability to set different column widths on mobile and tablet. Now I take a sidebar as example I want to have a 1/3 (33.3333333333%) on desktop/tablet and I want to make it full width on mobile devices. Here is what I get currently:
Look at the mobile view, the content is narrowed than the sidebar that looks a bit weird though. I know there is a visibility options which can be used to hide it on phones but that's not the point.
I look forward to hear your though on it.
EDIT: Forgot to mention that the mobile view is using 480px instead of 320px
from tailor.
Related Issues (20)
- Move inline css to a file? HOT 1
- Percent sign (%) character in URL breaks button element
- Box Title Does not center correctly
- [Concept] Tree Shaking Frontend CSS & Stylesheets a lot
- Clone and modify the Section Element
- "Minimum screen size" option not available for "Posts" element
- Dynamic content element: Inner HTML revert back to placeholder HOT 2
- Responsive Issues for Carousel Element HOT 1
- WPML Support HOT 1
- Extend responsive breakpoint
- Gracefully handle WP Engine's Heartbeat API blocking HOT 1
- Columns not rendering properly in theme / on site HOT 1
- Unable to close editing box on Wordpress 4.9 HOT 14
- Interested in taking on this project
- Elements model window css problem
- editor doesn't start on sandstorm.io wordpress
- Post title reverts to `_post_title` HOT 3
- Extending: New $atts not found in php using Sample Extension HOT 1
- How to make text mode HOT 1
- Tailor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailor.