by
tim » Sun Jun 12, 2016 11:16 pm
@KK wrote: Could you please test and let me know how the changes you suggested affect the layout when the default Couch logo is in place?
When you get down to the smallest screen sizes, then the buttons overlap the logo. You can test this on the desktop by resizing the window.
This theme seems to be somewhat lacking when it comes to the smallest screen sizes. The min-width:480px style makes it overflow the screen on most smartphones. I know it's tricky, but I think that a breakpoint below 480px is needed for this theme. The smallest Apple phones have a device-width of 320px, the big ones are 375px. Android is all over the map, but tends to fall in the 360-400px range.
I added the following media query to my custom style sheet for smartphone screens. It's very preliminary. I haven't had time to give this too much attention yet. My process was to simply search for "
min-width:4" and override those styles. I've done only minimal testing on the desktop and with a large-ish phone screen.
- Code: Select all
@media(max-width:480px){
body{min-width:auto;}
#settings-panel>.panel-body>.field>.dropdown{min-width:auto;}
.dropdown{width:auto;min-width:auto;}
.panel-body>.field>.dropdown{min-width:auto;}
.col-title,.col-original-page{min-width:auto;}
#simple-page{min-width:auto;}
#simple-wrap{width:94%;}
}
Like I said, the buttons overlap the logo below about 380px. Personally, I'm willing to tolerate that compromise. There could well be other problems I haven't encountered yet.
EDIT: Sorry, I was unaware of the discussion that took place between @KK's question and now. Just missed seeing it. Nonetheless, I think my contribution still fits within the context of the discussion. -Tim