Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: replaced .container.is-fluid #9279

Closed
wants to merge 13 commits into from
9 changes: 0 additions & 9 deletions assets/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,12 @@ body {
}
}

.container.is-fluid {
padding-left: $fluid-container-padding;
padding-right: $fluid-container-padding;
}

@include mobile {
.column-padding {
padding-left: 10px !important;
padding-right: 10px !important;
margin: 0 -12px !important;
}
.container.is-fluid {
padding-left: $fluid-container-padding-mobile;
padding-right: $fluid-container-padding-mobile;
}
}

/* move to global */
Expand Down
2 changes: 1 addition & 1 deletion components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:class="{
'is-active': isMobileNavbarOpen,
}">
<div class="container items-center" :class="{ 'is-fluid': !isTouch }">
<div class="w-full items-center px-5 lg:px-10">
<!-- BRAND -->
<div class="navbar-brand">
<nuxt-link to="/" class="navbar-item logo nuxt-link-active">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="collection-banner-shadow"></div>

<section class="h-full py-8">
<div class="container is-fluid collection-banner-content">
<div class="w-full px-5 md:px-10 collection-banner-content">
<div class="lg:flex-1">
<div class="flex flex-col items-start">
<div class="collection-banner-avatar">
Expand Down
2 changes: 1 addition & 1 deletion components/collection/drop/DropContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@model-value="isLoading = false" />
<CountdownTimer />
<hr class="text-color my-0" />
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<div class="columns is-desktop">
<div class="column is-half-desktop mobile-padding">
<UnlockableCollectionInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<section class="h-[368px] lg:h-full">
<div
class="relative w-full mx-auto px-[1.25rem] md:px-[2.5rem] min-[1440px]:max-w-[1440px] h-full flex justify-end items-start flex-col md:justify-between md:items-end md:flex-row">
class="relative w-full mx-auto px-5 md:px-10 min-[1440px]:max-w-[1440px] h-full flex justify-end items-start flex-col md:justify-between md:items-end md:flex-row">
<div class="flex flex-col items-start max-md:mb-8 md:h-[212px]">
<div class="collection-banner-avatar">
<NuxtImg
Expand Down
2 changes: 1 addition & 1 deletion components/collection/unlockable/UnlockableContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@model-value="isLoading = false" />
<CountdownTimer />
<hr class="text-color my-0" />
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<div class="columns is-desktop">
<div class="column is-half-desktop mobile-padding">
<UnlockableCollectionInfo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="container is-fluid flex border-t justify-between items-center py-3 mt-7">
class="w-full px-5 md:px-10 flex border-t justify-between items-center py-3 mt-7">
<div class="flex items-center">
<img
width="42"
Expand Down
2 changes: 1 addition & 1 deletion components/collection/voteDrop/DropContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@model-value="isLoading = false" />
<CountdownTimer />
<hr class="text-color my-0" />
<div class="container is-fluid pb-4">
<div class="w-full px-5 md:px-10 pb-4">
<div class="columns is-desktop">
<div class="column is-half-desktop mobile-padding">
<UnlockableCollectionInfo
Expand Down
10 changes: 5 additions & 5 deletions components/landing/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<template v-if="showCarousel">
<!-- top collections -->
<section v-if="showTopCollections" class="py-8 instance">
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<LandingTopCollections class="my-5" />
</div>
</section>

<section class="py-8 instance">
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<!-- generative -->
<LazyCarouselTypeGenerative />
</div>
Expand All @@ -22,14 +22,14 @@
<!-- email signup banner -->
<transition name="slide">
<section v-if="showSignupBanner" class="py-5 instance">
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<LandingSignupBanner class="my-4" />
</div>
</section>
</transition>

<section class="py-8 instance">
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<!-- latest sales -->
<LazyCarouselTypeLatestSales />

Expand All @@ -40,7 +40,7 @@
</template>

<section class="py-8 instance instance-accent">
<div class="container is-fluid footer-landing-container">
<div class="w-full px-5 md:px-10">
<LazyLandingFeaturedArticles />
</div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions components/profile/ProfileDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>
</div>
</NeoModal>
<div class="container is-fluid py-7 border-b">
<div class="w-full px-5 md:px-10 py-7 border-b">
<div class="columns is-centered">
<div class="column is-half text-center">
<div class="container image is-64x64 mb-2">
Expand Down Expand Up @@ -133,7 +133,7 @@
</div>
</div>

<div class="container is-fluid pb-6">
<div class="w-full px-5 md:px-10 pb-6">
<div
v-if="[ProfileTab.OWNED, ProfileTab.CREATED].includes(activeTab)"
class="flex-grow">
Expand Down
2 changes: 1 addition & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="min-h-full flex flex-col is-clipped">
<Navbar />
<main class="flex-grow py-8">
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<Error
v-if="$nuxt.isOffline"
:has-img="false"
Expand Down
8 changes: 4 additions & 4 deletions layouts/explore-layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
<div v-if="isCollection">
<CollectionBanner />
<section class="pt-5">
<div class="container is-fluid mobile-padding">
<div class="w-full px-5 md:px-10 mobile-padding">
<CollectionInfo />
<hr class="mb-0" />
</div>
</section>
</div>
<section class="py-7 px-0">
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<h1 v-if="isExplore" class="title">{{ getExploreTitle }}</h1>
<ExploreTabsFilterSort />
</div>
Expand Down Expand Up @@ -66,8 +66,8 @@ useHead({
})

const isExplore = computed(() => route.path.includes('/explore'))
const isCollection = computed(
() => route.name?.toString().includes('prefix-collection-id'),
const isCollection = computed(() =>
route.name?.toString().includes('prefix-collection-id'),
)

const getExploreTitle = computed(() => {
Expand Down
5 changes: 1 addition & 4 deletions layouts/gallery-item-layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="min-h-full flex flex-col is-clipped">
<Navbar />
<main class="flex-grow py-8">
<div class="container" :class="{ 'is-fluid': !isFullHD }">
<div class="w-full px-5 min-[1440px]:px-10">
<Error
v-if="$nuxt.isOffline"
:has-img="false"
Expand Down Expand Up @@ -30,7 +30,4 @@ useHead({
},
],
})

const { width } = useWindowSize()
const isFullHD = computed(() => width.value >= 1440)
</script>
2 changes: 1 addition & 1 deletion layouts/no-footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="min-h-full flex flex-col is-clipped">
<Navbar />
<main class="flex-grow py-8">
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<Error
v-if="$nuxt.isOffline"
:has-img="false"
Expand Down
2 changes: 1 addition & 1 deletion layouts/teleport-layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="min-h-full flex flex-col is-clipped">
<Navbar />
<main class="flex-grow">
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<Error
v-if="$nuxt.isOffline"
:has-img="false"
Expand Down
2 changes: 1 addition & 1 deletion pages/[prefix]/collection/[id]/activity.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="container is-fluid"
class="w-full px-5 md:px-10"
:class="{ 'sidebar-padding-left': isSidebarOpen }">
<CollectionActivity />
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/[prefix]/collection/[id]/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="container is-fluid"
class="w-full px-5 md:px-10"
:class="{ 'sidebar-padding-left': isSidebarOpen }">
<Items :key="collectionid" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/[prefix]/explore/collectibles.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="container is-fluid">
<div class="w-full px-5 md:px-10">
<CollectionGridWithBreadcrumbs />
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion pages/[prefix]/explore/items.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="container is-fluid"
class="w-full px-5 md:px-10"
:class="{ 'sidebar-padding-left': isSidebarOpen }">
<Items />
</div>
Expand Down
Loading