Read the statement by Michael Teeuw here.
Way to change horizontal or vertical tiling for regions?
-
I am working on a project where I want to have 7-9 modules stacked either horizontally or vertically.
By default, modules stack vertically. So, if you have three “weather” modules for London, New York, and Toronto, they will look like this:
London Weather
New York Weather
Toronto WeatherThis would make sense on a vertical/portrait screen, where stacked makes sense. However, if you have a horizontal/landscape screen, you might run out of space, and it might look weird. Having them side by side might make more sense, like this:
London Weather | New York Weather | Toronto WeatherI spent a non-trivial amount of time trying to override the main.css file’s “flex-drection” settings using the custom.css, but I was unable to do so. I ended up breaking the cardinal rule and modified a file that could be overwritten by future updates.
Would it be possible to have somewhere that could be changed in the config.js? Or, is there an easy way to override using custom.css that I was just too brain-fogged to see?
Thank you.
-
@sdetweil That does work. Looking back, I did try that, but I wonder if maybe I had a typo in the region name or something.
Makes things side-by-side as you say (for my usage with upper_third region):
.region.upper.third .container { flex-direction: row; }Thanks, as always, for all the hard work and all the kind help!
-
@joey I did this before in css, I’ll have to look for it later,
But basically change the direction from column to rowOriginal
.region .container { display: flex; flex-direction: column; }Override in custom.css
.region.top.left .container { flex-direction: row; }Then put all those in the top-left position
-
@sdetweil That does work. Looking back, I did try that, but I wonder if maybe I had a typo in the region name or something.
Makes things side-by-side as you say (for my usage with upper_third region):
.region.upper.third .container { flex-direction: row; }Thanks, as always, for all the hard work and all the kind help!
-
S sdetweil has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login