Browse Source

default placemants and widths for CEimage

master
Dom SP 3 years ago
parent
commit
d10bcf449f
2 changed files with 30 additions and 2 deletions
  1. +1
    -1
      app/modules/filesinfolders.php
  2. +29
    -1
      rsc/sass/_freaCMSfeatures.scss

+ 1
- 1
app/modules/filesinfolders.php View File

@@ -585,7 +585,7 @@ class FilesInFolders {
if( in_array($request[2],array('left','right','full'))) {
$class = $request[2];
} else {
$class = 'left';
$class = 'full';
}
$img = new \Image($image);
$ratio = ($img->width() >= $img->height())

+ 29
- 1
rsc/sass/_freaCMSfeatures.scss View File

@@ -44,8 +44,36 @@ a.content_element_box {
grid-template-columns:50% 50%;
}

// lightbox -----------------------
// page
.content_element_page {
&:after {
content: "";
display: block;
clear: both;
}
}

// image
.content_element_image {
width: 60%;
&.left {
float: left;
}
&.right {
float: right;
}
&.full {
width:100%;
}
img {
width: 100%;
}
}



// lightbox -----------------------
.featherlight .featherlight-content {
background: none;
overflow: visible;

Loading…
Cancel
Save