Skip to content

Commit

Permalink
clean & theme
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisben committed Nov 22, 2024
1 parent 1ac81d3 commit 6becb9f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 35 deletions.
3 changes: 2 additions & 1 deletion assets/sass/_configuration.sass
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ $footer-background-color: transparent
$lightbox-overlay-color: $color-background
$lightbox-backdrop: none

$block-gallery-carousel-max-height: calc(100vh - #{pxToRem(100)})
$block-gallery-carousel-height: calc(100vh - #{pxToRem(100)})
$block-gallery-carousel-height-desktop: $block-gallery-carousel-height
$block-gallery-carousel-background: transparent

$block-chapter-layout-accent-background: black
Expand Down
39 changes: 16 additions & 23 deletions assets/sass/_style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -37,37 +37,33 @@
margin-top: $spacing-5
padding-bottom: $spacing-3

.block-gallery--carousel .splide__slide:last-child
padding-right: 0
.block-gallery--carousel
@include in-page-with-sidebar
padding-top: $spacing-2
.slider
--slider-transition-opacity-duration: 0s
.gallery:not(.slider-list)
figure + figure
margin-top: $spacing-3

@include media-breakpoint-down(desktop)
.block-gallery.block-gallery--carousel
.splide
&__slide + .splide__slide
margin-top: $spacing-1
figure
margin-right: 0
picture img
max-width: 100%
.splide__track
margin-right: 0
.footer-credit
padding-top: $spacing-7
&, a
color: #666666 !important

@include media-breakpoint-up(desktop)
.block-gallery.block-gallery--carousel
.block-content
padding-left: 0 !important
.splide__arrows
.slider-arrows
padding-top: 0
.splide__slide
transition: 0s !important
&:not(.is-active)
.slider-slide
&:not(.is-current)
opacity: 0 !important
.slider-arrows
button
padding-bottom: $spacing-2
padding-top: $spacing-2
figcaption
margin-left: space(20)
margin-left: space(30)
position: absolute
z-index: 0
.page__home
Expand Down Expand Up @@ -151,9 +147,6 @@

.block-gallery
padding-top: pxToRem(50) !important
.splide__slide
opacity: 0
transition: opacity 0.3s
.is-active
opacity: 1
.is-moving
Expand Down
15 changes: 5 additions & 10 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,13 @@ params:
active: false
blocks:
gallery:
splide:
speed: 0
arrows: true
autoplay: false
type: loop
autoHeight: true
breakpoints:
'992':
destroy: true
slider:
transition: 0
disable:
mobile: true
image_sizes:
design_system:
lightbox:
disabled: true
debug:
productionUrl: "https://www.lilianaoust.fr"
productionUrl: "https://www.lilianaoust.fr"
2 changes: 1 addition & 1 deletion themes/osuny
Submodule osuny updated 65 files
+0 −170 assets/js/theme/blocks/draggableBlocks.js
+15 −32 assets/js/theme/blocks/timeline.js
+1 −1 assets/js/theme/body.js
+0 −12 assets/js/theme/components/carousel.js
+0 −36 assets/js/theme/components/carousel/arrows.js
+0 −121 assets/js/theme/components/carousel/autoplayer.js
+0 −179 assets/js/theme/components/carousel/carousel.js
+0 −24 assets/js/theme/components/carousel/classes.js
+0 −39 assets/js/theme/components/carousel/config.js
+0 −12 assets/js/theme/components/carousel/events.js
+0 −95 assets/js/theme/components/carousel/manager.js
+0 −40 assets/js/theme/components/carousel/pagination.js
+0 −42 assets/js/theme/components/carousel/paginationButton.js
+0 −69 assets/js/theme/components/carousel/slide.js
+0 −120 assets/js/theme/components/carousel/slider.js
+0 −45 assets/js/theme/components/events.js
+0 −22 assets/js/theme/components/utils.js
+14 −3 assets/js/theme/design-system/Lightbox.js
+4 −0 assets/js/theme/design-system/Popup.js
+164 −0 assets/js/theme/design-system/TouchControl.js
+1 −1 assets/js/theme/design-system/accordion.js
+7 −10 assets/js/theme/design-system/extendables.js
+45 −0 assets/js/theme/design-system/sliders/Arrows.js
+78 −0 assets/js/theme/design-system/sliders/Autoplayer.js
+88 −0 assets/js/theme/design-system/sliders/Factory.js
+50 −0 assets/js/theme/design-system/sliders/Pagination.js
+218 −0 assets/js/theme/design-system/sliders/Slider.js
+6 −0 assets/js/theme/design-system/sliders/index.js
+7 −7 assets/js/theme/index.js
+20 −0 assets/js/theme/polyfills/ElementClosest.js
+9 −0 assets/js/theme/polyfills/NodeListForEach.js
+2 −0 assets/js/theme/polyfills/index.js
+36 −21 assets/js/theme/utils/a11y.js
+8 −0 assets/js/theme/utils/realViewportHeight.js
+42 −6 assets/js/theme/utils/utils.js
+11 −22 assets/sass/_theme/blocks/gallery.sass
+37 −44 assets/sass/_theme/blocks/posts.sass
+14 −12 assets/sass/_theme/blocks/testimonials.sass
+18 −27 assets/sass/_theme/blocks/timeline.sass
+0 −173 assets/sass/_theme/components/carousel.sass
+28 −9 assets/sass/_theme/components/lightbox.sass
+97 −0 assets/sass/_theme/components/slider.sass
+3 −2 assets/sass/_theme/configuration/blocks.sass
+10 −2 assets/sass/_theme/configuration/components.sass
+1 −0 assets/sass/_theme/design-system/layout.sass
+10 −11 assets/sass/_theme/design-system/print.sass
+1 −1 assets/sass/_theme/hugo-osuny.sass
+0 −44 assets/sass/_theme/utils/blocks.sass
+3 −0 assets/sass/_theme/utils/sizes.sass
+23 −0 bin/dev.js
+12 −2 bin/osuny.js
+7 −11 config.yaml
+11 −11 i18n/en.yml
+10 −10 i18n/fr.yml
+10 −10 i18n/pt.yml
+0 −63 layouts/partials/blocks/templates/carousel.html
+21 −10 layouts/partials/blocks/templates/gallery.html
+0 −7 layouts/partials/blocks/templates/gallery/carousel-image.html
+0 −29 layouts/partials/blocks/templates/gallery/images.html
+11 −11 layouts/partials/blocks/templates/posts/carousel.html
+5 −13 layouts/partials/blocks/templates/testimonials.html
+1 −18 layouts/partials/blocks/templates/timeline.html
+18 −9 layouts/partials/blocks/templates/timeline/horizontal.html
+1 −1 layouts/partials/commons/image-figure.html
+17 −12 layouts/partials/footer/js.html

0 comments on commit 6becb9f

Please sign in to comment.