'name' => __('Footer Column 2', 'ccv'),
'id' => 'sidebar-footer-2'
] + $config);
+ register_sidebar([
+ 'name' => __('Footer Column 3', 'ccv'),
+ 'id' => 'sidebar-footer-3'
+ ] + $config);
register_sidebar([
'name' => __('Footer Copyright', 'ccv'),
'id' => 'sidebar-footer-copyright'
// Apply spacing between elements but not before first one
// Ref: https://alistapart.com/article/axiomatic-css-and-lobotomized-owls/
-.spaced > * + *
- margin-top: 1.5em
-.spaced-lg > * + *
- margin-top: 2em
+@responsive
+ .spaced > * + *
+ margin-top: 1.5em
+ .spaced-lg > * + *
+ margin-top: 2em
-.spaced-horizontal > * + *
- margin-left: 0.75em
+ .spaced-horizontal > * + *
+ margin-left: 0.75em
// Generate utility classes for padding/margin based on vw units
// This will generate classes like pt-1v, pt-2v, pr-1v etc.
+$breakpoint-footer = 1024px
+
.site-footer
+
+ &-cols
+ @apply flex
+ constrain(padding-bottom, 5vw)
+
+ +below($breakpoint-footer)
+ @apply flex-col
+
+ // Spacing between column blocks
+ > * + *
+ margin-top: 2em
+
+ &-col
+ @apply w-1/3
+ constrain(padding-left, 10vw)
+ constrain(padding-right, 5vw)
+
+ +below($breakpoint-footer)
+ @apply w-full
+
+ +below(500px)
+ padding-left: 35px // Matches capped 5vw on other sections
+
+ > * + *
+ margin-top: 1.5em
+
+
a:not(.btn)
&:hover
@apply text-pink
+
+ img
+ display: inline-block
<footer class="site-footer bg-purple-dark text-white antialiased pt-2v pb-1v">
<div class="container">
- <div class="flex pb-2v sm:flex-col-reverse">
- <div class="w-1/2 pl-4v sm:pl-2v sm:w-full sm:pt-8">
+ <div class="site-footer-cols">
+ <div class="site-footer-col">
@php(dynamic_sidebar('sidebar-footer-1'))
</div>
- <div class="w-1/2 pl-4v sm:pl-2v pr-2v sm:w-full">
- @php(dynamic_sidebar('sidebar-footer-2'))
+ <div class="site-footer-col">
+ @php(dynamic_sidebar('sidebar-footer-2'))
+ </div>
+ <div class="site-footer-col">
+ @php(dynamic_sidebar('sidebar-footer-3'))
</div>
</div>
'italic',
'mt-2',
'mb-6',
+ 'mr-3',
'mr-6',
'float-left',
+ 'inline-block',
'xs:block',
'xs:float-none',
'xs:mx-auto',