Closed maxheld83 closed 8 years ago
again, I took out the right panel as per #54, hope that doesn't screw things up.
The tile modules were developed for the archive
layouts, that's why they're broken on this page with the media
layout. I haven't fleshed them out to be used everywhere so you'll need to do some work to get them looking right.
It's likely related to thin gray line in your other issue and probably needs to clear the floats set on the tiles.
thanks. I've no switched the page to the archive
layout, and gotten rid of the thin gray line in #59, but the layout is still out of whack as in the above (changing the layout between article
, archive
or media
doesn't change anything).
Could you point me to the place, where I'd need to adjust (clear the floats) this?
Is the repo public somewhere? It's hard to troubleshoot CSS issues without seeing it in action.
Tiles really aren't all that portable at the moment and only work in the archive examples I include with the starter. Same goes for the home splash page stuff. I built that for the demo and haven't really documented it since it's not at all ready for use. Unless you're comfortable hacking away at the CSS to make things work.
Sorry, the website is public at http://www.maxheld.de and the repo at https://github.com/maxheld83/maxheld83.github.io.
I've switched all the sites with tiles
to archive
, but that hasn't solved the problem.
I'm also staying away from the home
layout as you advised (for now).
I might be wrong, but it seems to me that the problem not only affects manual tiles
stuff (as in the splash page), but also tiles created by {% include post-grid.html %}
.
Like in the below:
### Recently
{% for post in site.posts limit:4 %}
{% include post-grid.html %}
{% endfor %}
Lirum larum
I would expect that the Lirum larum
starts a completely new line after the grid, but that isn't so.
I understand that the tiles functionality is undocumented but would appreciate any pointer as to where to start to fix this problem.
Guess I really have to learn CSS.
Couple of things going on here you can fix.
The Recently <h3>
heading needs clear: both;
on it to clear the tiles above.
Secondly. The tiles after the heading need to be wrapped in a <div class="tiles"
>` which should help with any other issues.
Third. "Lirum larum" needs a clear on it too. If you're not already using browser Dev Tools I strongly encourage you to. I was able to do all of these edits in browser to figure out the issues. It's a good way to troubleshoot before messing with your actual stylesheets and layouts.
The better solution would be to add a clearfix to .tiles
so it auto clears an elements that come before or after it. I can't remember if I included a Sass mixin to do it, but if not check out this blog post on the details.
fantastic, thanks so much.
And yes, you did include a mixin to that effect, it's in (ships with?) /bourbon/addons
:
@mixin clearfix {
&:after {
content:"";
display:table;
clear:both
}
}
Here's what I ended up doing to solve my problem:
tiles
<div class="tiles">
{% for post in site.posts limit:4 %}
{% include post-grid.html %}
{% endfor %}
</div><!-- /.tiles -->
appended to _tiles.scss
.clearfix {
@include clearfix;
}
and then called whenever I use the tiles class:
<div class="tiles clearfix">
...
At this point in my CSS learning curve, I'm sort of like a chimp who randomly bangs away at the keyboard and sometimes, by random chance, finds something that works, so this is probably somehow egregiously stupid, but it get's the job done.
Thanks for the pointers!
Will start using browser debug.
I've used some
tile
s on a page (same as in thehome
example ongh-pages
), and would now like to add untiled, normal-width content below the tiles.I expected that just closing the div with
</div><!-- /.tiles -->
would do the trick, but it's not.I apologise in advance if this is an ignorant question, lacking the necessary CSS knowledge.
Here's the page (never mind the content)
This is what it looks like:
I'd like the stuff circled in red to begin a new "line" instead, not fill in the short tiles.