Skip to content

Commit

Permalink
Merge pull request #374 from CakeDC/master
Browse files Browse the repository at this point in the history
Fix image responsive
  • Loading branch information
steinkel authored Nov 29, 2023
2 parents 86499f6 + 8756889 commit bc0ce2b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/element/Showcase/cases/case.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
?>
<?php if ($project->website): ?>
<div class="col-sm-12 showcase-cases ptb-30">
<div class="col-sm-4 <?= $index % 2 === 1 ? 'col-sm-push-8' : '' ?>">
<div class="col-sm-4 image-center <?= $index % 2 === 1 ? 'col-sm-push-8' : '' ?>">
<a href="<?= $this->App->externalLink($project->website); ?>" target="_blank" aria-label="<?= $project->title ?>">
<?= $this->Showcase->image($project->screen_monitor_images[0], [
'class' => 'img-responsive'
Expand Down
15 changes: 15 additions & 0 deletions webroot/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -485,3 +485,18 @@ li.language a {
.bg-white {
background-color: white;
}

@media (max-width: 767px) {
.showcase-page .showcase-cases .img-responsive {
display: inline;
}
.showcase-page .showcase-cases .image-center {
text-align: center;
}
#expertise .box-services-c {
text-align: center;
}
#expertise .box-services-c .btn.btn-home {
float: none !important;
}
}

0 comments on commit bc0ce2b

Please sign in to comment.