Skip to content

Commit

Permalink
Merge pull request #2810 from brkcvn/master
Browse files Browse the repository at this point in the history
Tailwind class name controlled for javascript file
  • Loading branch information
brkcvn committed Dec 12, 2022
2 parents e0a855c + 167b9c4 commit e873248
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
11 changes: 11 additions & 0 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,17 @@ button, input, optgroup, select, textarea{
margin-left: unset !important;
}

/* width of container, custom choose */

@media (min-width: 640px){

[custom-half]{
grid-column: span 3 / span 3 !important;
}
}

/* width of container, custom choose */

*, ::before, ::after{
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
Expand Down
6 changes: 2 additions & 4 deletions resources/assets/js/views/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,11 @@ const app = new Vue({
},

onSmallWidthColumn(item) {
this.$refs[item].$el.classList.remove('sm:col-span-6');
this.$refs[item].$el.classList.add('sm:col-span-3');
this.$refs[item].$el.setAttribute('custom-half', true);
},

onFullWidthColumn(item) {
this.$refs[item].$el.classList.add('sm:col-span-6');
this.$refs[item].$el.classList.remove('sm:col-span-3');
this.$refs[item].$el.removeAttribute('custom-half');
},

settingsInvoice() {
Expand Down
6 changes: 6 additions & 0 deletions resources/assets/sass/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@
#button-monthly {
margin-left: unset !important;
}

/* width of container, custom choose */
[custom-half] {
@apply sm:col-span-3 !important;
}
/* width of container, custom choose */
}

/* menu */
Expand Down

0 comments on commit e873248

Please sign in to comment.