extends partials/page-templates/_layout.pug
include partials/mixins-demo/_nav-text.pug

block append variables
  -var active_nav_item = "text"
  -var sidebar = true
  -var page_title = "Lists"

mixin nested-list-elements()
  li The fist nested element
  li The second nested element with a lot of text so that it wraps onto multiple lines and stille looks nice.

mixin list-elements(nested = false, ordered = false)
  li A short text 
  li A text that is a little longer
    if nested
      if ordered 
        ol
          +nested-list-elements()
      else
        ul
          +nested-list-elements()
  li Very long text that goes over several lines to demonostrate how things wrap while still looking quite nice.

block content
  .page__content__block
    h1 
      strong Lists
      | 
      | with or without order
    h2 An unordered list  
    ul 
      +list-elements
    
    h2 An ordered list 
    ol
      +list-elements
      
    h2 A definition list
    dl.dl
      dt A thing
      dd And a description of that thing.
      dt An other thing
      dd That also has a description.
      dt A really long and complicated thing
      dd That also needs a much longer and more complicated definition with a lot of words. Because we all know that more words, makes you seem more wise. Or not. 
      dt A thing with a large description
      dd.dl__description--large A large description
    
    h2 Dense lists  
    p List can also be made more dense by skiping the vertical space between each item.
    ul.list--dense
      +list-elements
    
    ol.list--dense
      +list-elements
      
    h2 Nested lists
    p You can nest one list into another.
    
    h3 Nested unordered list
    ul
      +list-elements(true, false)
    
    h3 Nested ordered list  
    ol
      +list-elements(true, true) 
    
    h3 Ordered list with an unordered list inside
    ol
      +list-elements(true, false)  
    
    h3 Unordered list with an ordered list inside 
    ul
      +list-elements(true, true)      
      
    h2 Nested and dense lists
    p A nested list can also be dense.
    
    ul.list--dense
      +list-elements(true, false)
      
    ol.list--dense
      +list-elements(true, true)   
      
      
    
  
      
  

block sidebar 

  +text-nav("lists")
    
    
    
  
