Skip to content

Commit 46a6341

Browse files
committed
remove mixin, add in global
1 parent 130f9af commit 46a6341

File tree

4 files changed

+11
-22
lines changed

4 files changed

+11
-22
lines changed

components/rmrk/Gallery/CollectionItem.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</div>
5959
</div>
6060

61-
<b-tabs position="is-centered" v-model="activeTab" class="tabs-container-collection">
61+
<b-tabs position="is-centered" v-model="activeTab" class="tabs-container-mobile">
6262
<b-tab-item label="Collection" value="collection">
6363
<Search v-bind.sync="searchQuery">
6464
<Layout class="mr-5" />
@@ -371,15 +371,8 @@ export default class CollectionItem extends mixins(ChainMixin, PrefixMixin) {
371371
</script>
372372

373373
<style lang="scss">
374-
@import '@/styles/mixins';
375374
376375
.collection__image img {
377376
color: transparent;
378377
}
379-
380-
.tabs-container-collection {
381-
.tab-content {
382-
@include tabs-mobile-padding;
383-
}
384-
}
385378
</style>

pages/rmrk/u/_id.vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
<b-tabs
4848
:class="{ 'invisible-tab': sharingVisible }"
49-
class="tabs-container-profile"
49+
class="tabs-container-mobile"
5050
v-model="activeTab"
5151
destroy-on-hide
5252
expanded
@@ -404,12 +404,4 @@ export default class Profile extends mixins(PrefixMixin) {
404404
}
405405
</style>
406406

407-
<style lang="scss">
408-
@import '@/styles/mixins';
409-
.tabs-container-profile{
410-
.tab-content {
411-
@include tabs-mobile-padding;
412-
}
413-
}
414-
</style>
415407

styles/global.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ body {
155155
.message.is-primary .message-body {
156156
color: $primary-light !important;
157157
}
158+
.tabs-container-mobile {
159+
.tab-content {
160+
@media screen and (max-width: 1023px) {
161+
padding: 1rem 0;
162+
}
163+
}
164+
}
158165
}
159166

160167
// global CSS for page transitions
@@ -183,4 +190,6 @@ body {
183190
padding: 0.75rem !important;
184191
}
185192
}
193+
186194
}
195+

styles/mixins.scss

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)