6 years ago
4
Topic

Hello everybody,

I'm having some troubles with Seblod's default seb_blog template. I was able to set up a list and change the appereance of the individual items by overriding the seb_one template when using it for the items. What I'm trying to do now is to put a thin line between the list items. Simply adding the line after each item in the override of the seb_one template does not work because I don't want it to appear after the last item. 

Any ideas how to do this?

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
3
Level 1

you should do this using css, add bottom margin, than use selectors like :last-child or :last-of-type, to remove bottom margin from last item,

6 years ago
0
Level 2

Sounds like a good idea. Gonna try when I have time. Thank you very much!

6 years ago
1
Level 2

Alright, I had time to try it out but there is one problem left: each listitem (that I customized with position-overriding the seb_one template) is encapsulated by an absolutely ridiculous amount of unnecessary containers caused by the seb_blog template. Because of that, the :last-child css-selector does not work because each listitem is the last one in its own container. I think I now need a way to get rid of those extra containers for the :last-child selector to work.

Any ideas on how to do this or different suggestions?

4229 Posts
Kadministrator
6 years ago
0
Level 3

Seb blog is an old template, you should use a combination of seb_list + minima for items. Then you can lower amount of markup further down by setting default variation to None and Markup to None.

Get a Book for SEBLOD