Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Release v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hxtree committed May 15, 2020
1 parent 56397ca commit ed46d16
Show file tree
Hide file tree
Showing 21 changed files with 1,356 additions and 1,482 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ All releases must adhere to [SemVer 2](https://semver.org/) naming convention an
>PATCH version - when you make backwards compatible bug fixes.
## LivingMarkup [Unreleased]

## LivingMarkup 1.5.1
* Added: PNG image resize [#2b7b323](https://github.com/hxtree/LivingMarkup/commit/2b7b323bd882ff0ad5ae9a937d0f8a1449b862a1)
* Fixed: JPG image resize [#2b7b323](https://github.com/hxtree/LivingMarkup/commit/2b7b323bd882ff0ad5ae9a937d0f8a1449b862a1)
* Added: Image offset / focal point [#56397ca](https://github.com/hxtree/LivingMarkup/commit/56397ca7546b24291f63487ecb930e01398e66c3)
* Added: Custom SCSS build [#56397ca](https://github.com/hxtree/LivingMarkup/commit/56397ca7546b24291f63487ecb930e01398e66c3)

## LivingMarkup 1.5.0
Released: 2019-05-11. Notable changes:
Expand All @@ -25,4 +29,4 @@ Released: 2019-05-11. Notable changes:
## LivingMarkup 1.4.1
Released: 2019-03-29. Notable changes:

* Updated: Started following Semantic Versioning 2 properly [#74724ce](https://github.com/hxtree/LivingMarkup/commit/00c7ad18fe09465c864a6bb5a20618fbd7ce8e83)
* Updated: Started following Semantic Versioning 2 properly [#74724ce](https://github.com/hxtree/LivingMarkup/commit/00c7ad18fe09465c864a6bb5a20618fbd7ce8e83)
10 changes: 5 additions & 5 deletions app/modules/custom/Partials/Breadcrumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ public function onRender()
];

$out = '<!-- Breadcrumb -->' . PHP_EOL;
$out .= '<div class="breadcrumb">';
$out .= '<ul>';
$out .= '<nav aria-label="breadcrumb">';
$out .= '<ol class="breadcrumb mb-0">';
foreach ($pages as $page) {
$out .= '<li>';
$out .= '<li class="breadcrumb-item active" aria-current="page">';
$out .= '<span class="separator">' . $this->separator . '</span> ';
$out .= '<a href="' . $page['href'] . '">';
$out .= $page['title'];
$out .= '</a>';
$out .= '</li>';
}
$out .= '</ul>';
$out .= '</div>';
$out .= '</ol>';
$out .= '</nav>';
return $out;
}
}
6 changes: 0 additions & 6 deletions app/modules/custom/Partials/HeaderDefault.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ public function onRender()
LivingMarkup
</a>
</nav>
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item active" aria-current="page">Home</li>
</ol>
</nav>
HTML;
}
}
26 changes: 26 additions & 0 deletions assets/scss/_hero-image.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* This file is part of the LivingMarkup package.
*
* (c) Matthew Heroux <matthewheroux@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

// crop at 1440x600
.hero-image {
width: 100%;
height: 400px;
position: relative;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}

// crop at 1260x630
.front-page {
.hero-image {
width: 100%;
min-height: 50vw;
}
}
8 changes: 1 addition & 7 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
* file that was distributed with this source code.
*/

.hero-image {
height: 400px;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
width: 100%;
}
@import "hero-image";

@import "bootstrap.scss";
12 changes: 7 additions & 5 deletions bin/SassCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@

try {
$scss = new Compiler();
$scss->setImportPaths('vendor/twbs/bootstrap/scss/');

$scss->setFormatter("ScssPhp\ScssPhp\Formatter\Compressed");

// start out with bootstrap
$output = $scss->compile('@import "bootstrap.scss";');
// set root import path and add additional paths
$scss->setImportPaths('assets/scss/');
$scss->addImportPath('vendor/twbs/bootstrap/scss/');

// compile
$output = $scss->compile('@import "main.scss";');

// save file contents
// save
file_put_contents($path, $output);

} catch (\Exception $e) {
Expand Down
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,11 @@
"php-cs-fixer fix --rules=@PSR2 --using-cache=no app/",
"php-cs-fixer fix --rules=@PSR2 --using-cache=no src/",
"php-cs-fixer fix --rules=@PSR2 --using-cache=no test/",
"rm -rf public/assets/css/bootstrap",
"cp -R vendor/twbs/bootstrap/dist/css/ public/assets/css/bootstrap",
"php bin/SassCompiler.php",
"rm -rf public/assets/js/bootstrap",
"cp -R vendor/twbs/bootstrap/dist/js/ public/assets/js/bootstrap",
"rm -rf public/assets/js/jquery/*",
"cp vendor/components/jquery/jquery.min.js public/assets/js/jquery/jquery.min.js",
"php bin/SassCompiler.php"
"cp vendor/components/jquery/jquery.min.js public/assets/js/jquery/jquery.min.js"
],
"test": [
"phpunit --colors=always"
Expand Down
Loading

0 comments on commit ed46d16

Please sign in to comment.