Permalink
Browse files

Flux Layout - fix bug in boxes + 100% column

Fix bug in boxes definition (a value was hard-coded that shouldn’t be - didn’t break anything!) Also, add full width column definition - useful if your doing variable based dynamic code definitions.
  • Loading branch information...
1 parent 3d2673b commit 2d0aa2b38c6484bcc2dd71d316d321e7fcb3d888 @Jonnyauk committed Jan 5, 2017
Showing with 10 additions and 3 deletions.
  1. +10 −3 wf-content/css/wf-css-flux-layout.php
@@ -277,11 +277,18 @@ function columns() {
. $this->minify;
echo '.row-' . rtrim($this->columns_prepend, '-') . ' > div:last-child { margin-left: ' . $this->columns_gutter / 2 . '%; margin-right: 0; }' . $this->minify;
- echo '.row-' . rtrim($this->columns_prepend, '-') . ' > div:first-child { margin-left: 0; margin-right: ' . $this->columns_gutter / 2 . '%; }' . $this->minify;
+ echo '.row-' . rtrim($this->columns_prepend, '-') . ' > div:first-child { margin-left: 0; margin-right: ' . $this->columns_gutter / 2 . '%; }' . $this->minify . $this->minify;
foreach ( $this->columns as $size_r ) {
- if ( intval($size_r) < 101 ) {
+ if ( $size_r == 1 ){
+
+ echo '.' . $this->columns_prepend . '1-1'
+ . ', .' . $this->columns_prepend . $this->columns_basic
+ . ', .' . $this->columns_prepend . 'full'
+ .' { width:100%; }' . $this->minify . $this->minify;
+
+ } elseif ( intval($size_r) < 101 ) {
$nice_size_c = $this->nice_size_def($size_r);
@@ -372,7 +379,7 @@ function relative_loops() {
echo '.' . $this->class_prepend . '1-1'
. ', .' . $this->class_prepend . $this->columns_basic
- . ', .box-full'
+ . ', .' . $this->class_prepend . 'full'
.' { width:100%; }' . $this->minify;
} else {

0 comments on commit 2d0aa2b

Please sign in to comment.