Skip to content

Commit

Permalink
added for slider block
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiras authored and jonas committed Nov 6, 2024
1 parent 90b0473 commit e50af6d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
9 changes: 1 addition & 8 deletions assets/theme/controllers/SwiperTeaserController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,11 @@ export default class extends Controller {
{
breakpoint: 780,
settings: {
slidesToShow: 2,
slidesToShow: 1,
centerMode:true,
slidesToScroll: 1,
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
});
}
Expand Down
6 changes: 3 additions & 3 deletions assets/theme/styles/blocks/jobs.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.block-jobs {
.jobs-grid {
.flex {
display: flex;gap: 51px;
.left {
flex: 1;
flex: 10;
.label {
border: 1px solid #171717;
.span {
Expand All @@ -26,7 +26,7 @@
}
}
}
.right {flex: 2;
.right {flex: 21;
.items {
border-bottom: 2px solid black;
.type {padding: 1.5rem 0;@include typoOverline;}
Expand Down
7 changes: 2 additions & 5 deletions assets/theme/styles/blocks/swipe-teaser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@
.theme-container{
.grid {
.slick-slide{
.slick-active{
margin-right: 55px;
margin-left: 0;
}
margin: 0 27.5px;
.media-wrapper{
position: relative;padding-bottom: 55.5%;
}
max-width: 472px;
display: block;
img {display: block;@include imgCover;}
}
.slick-list{overflow: visible;margin: 0;padding: 0;
.slick-list{overflow: hidden;margin: 0;padding: 0;
&.draggable{
padding:0!important;
}
Expand Down
2 changes: 1 addition & 1 deletion templates/theme/block/jobs.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="block-jobs" data-controller="jobs">
<div class="theme-container">
<div class="jobs-grid" data-jobs-target="grid" >
<div class="flex" data-jobs-target="grid" >
<div class="left">
<div class="label" data-jobs-target="borderContainer">
<div class="span">
Expand Down

0 comments on commit e50af6d

Please sign in to comment.