Skip to content

Commit

Permalink
fix: mdpi laptop container padding (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukicenturi authored Aug 1, 2023
1 parent 2f4c0ed commit 2f0114a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

.container {
@apply px-4;
@apply px-4 md:px-12 xl:px-16;
}

.fade-enter-active, .fade-leave-active {
Expand Down
2 changes: 1 addition & 1 deletion components/NavigationMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { t } = useI18n();
</script>

<template>
<div class="flex space-x-4 flex-wrap justify-center">
<div class="flex space-x-3 xl:space-x-4 flex-wrap justify-center">
<ButtonLink size="lg" to="/" highlight-exact-active>{{
t('navigation_menu.home')
}}</ButtonLink>
Expand Down
5 changes: 3 additions & 2 deletions components/download/DownloadHeading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ const css = useCssModule();
@apply flex flex-col space-y-4 mb-16;
.title {
@apply text-rui-light-primary text-h6;
@apply text-rui-light-primary text-h6 font-medium;
}
.description {
@apply text-rui-text text-h3;
@apply text-rui-text text-h4 md:text-h3;
@apply font-normal #{!important};
}
}
Expand Down
24 changes: 13 additions & 11 deletions components/download/DownloadPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ scanImages();
<img :src="image" alt=" " class="w-full" />
</SwiperSlide>
</Carousel>
<div :class="css.controls">
<CarouselControls
v-if="swiper"
v-model:swiper="swiper"
:active-index="activeIndex"
:pages="pages"
/>
<div :class="css.preview">
{{ t('download.preview') }}
<div class="container relative">
<div :class="css.controls">
<CarouselControls
v-if="swiper"
v-model:swiper="swiper"
:active-index="activeIndex"
:pages="pages"
/>
<div :class="css.preview">
{{ t('download.preview') }}
</div>
</div>
</div>
</div>
Expand All @@ -82,10 +84,10 @@ scanImages();
}
.controls {
@apply flex flex-col absolute -bottom-[2.8125rem] z-10 -left-2 -right-2 items-center justify-center;
@apply flex flex-col absolute -bottom-[1.75rem] md:-bottom-[3rem] z-10 left-0 right-0 md:-left-6 md:-right-6 items-center justify-center;
.preview {
@apply px-8 py-6 rounded-xl border border-black/[.12] bg-white text-h4;
@apply px-4 py-3 md:px-8 md:py-6 rounded-xl border border-black/[.12] bg-white text-h5 md:text-h4 font-bold;
box-shadow: 4px 32px 80px 0 rgba(191, 194, 203, 0.24);
}
}
Expand Down

0 comments on commit 2f0114a

Please sign in to comment.