Skip to content

Commit

Permalink
style: move styles from HTML to CSS for better organization
Browse files Browse the repository at this point in the history
- Transferred styles related to the x-cloak directive, input, select, and badge components from settingsBase.html to custom.css.
- This change improves the separation of concerns by consolidating styles in a dedicated CSS file, enhancing maintainability and readability of the HTML structure.
  • Loading branch information
tphakala committed Jan 14, 2025
1 parent 14e6a68 commit ec4bc1e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
24 changes: 24 additions & 0 deletions assets/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Add at the top of the file */
[x-cloak=""] {
display: none !important;
}

/* Force page scrolling behavior */
html, body {
height: 100%;
Expand Down Expand Up @@ -548,4 +553,23 @@ thead.sticky-header {
display: flex;
align-items: center;
justify-content: center;
}

/* Settings Base Styles */
.input {
border-radius: 0.3rem;
}

.select {
border-radius: 0.3rem;
}

.badge.badge-primary.badge-sm.changed-badge {
opacity: 1;
transition: opacity 0.3s ease-out;
display: flex;
align-items: center;
justify-content: center;
margin-top: 0.125rem;
height: 1rem;
}
25 changes: 0 additions & 25 deletions views/settings/settingsBase.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,31 +77,6 @@
}
};
</script>
<style>
[x-cloak] {
display: none !important;
}

.input {
border-radius: 0.3rem;
}

.select {
border-radius: 0.3rem;
}

.badge.badge-primary.badge-sm.changed-badge {
opacity: 1;
transition: opacity 0.3s ease-out;
display: flex;
align-items: center;
justify-content: center;
margin-top: 0.125rem;
/* mt-0.5 */
height: 1rem;
/* h-4 */
}
</style>
<div class="col-span-12" x-data="{
notifications: [],
hasChanges: false,
Expand Down

0 comments on commit ec4bc1e

Please sign in to comment.