Skip to content

Commit

Permalink
Fix tabs layout
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaSinek committed Jan 16, 2025
1 parent 8e6e836 commit 2db2dfb
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions app/javascript/stylesheets/custom/basics.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
@layer base {
.pagy {
.pagy {
@apply flex space-x-1 font-semibold text-sm text-gray-500;

a:not(.gap) {
@apply block rounded-lg px-3 py-1 bg-gray-200;

&:hover {
@apply bg-gray-300;
}
&:not([href]) { /* disabled links */

&:not([href]) {
/* disabled links */
@apply text-gray-300 bg-gray-100 cursor-default;
}

&.current {
@apply text-white bg-gray-400;
}
}

label {
@apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;

input {
@apply bg-gray-100 border-none rounded-md;
}
}
}

pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
white-space: pre-wrap;
/* css-3 */
white-space: -moz-pre-wrap;
/* Mozilla, since 1999 */
white-space: -pre-wrap;
/* Opera 4-6 */
white-space: -o-pre-wrap;
/* Opera 7 */
word-wrap: break-word;
/* Internet Explorer 5.5+ */
}

body {
Expand Down Expand Up @@ -78,22 +91,10 @@
}

.tab-active {
@apply bg-white
text-gray-700
border-2
border-white
rounded-t-lg
border-b-0
relative
top-[2px];
@apply bg-white text-gray-700 border-2 border-white rounded-t-lg border-b-0 relative top-[2px];
}

.tab-inactive {
@apply text-gray-400
border-b-2
border-transparent
hover:text-gray-200
hover:border-b-2
hover:border-b-ruby;
@apply text-white border-2 border-transparent rounded-t-lg border-b-0 relative hover:bg-[#ac3b61] hover:border-[#ac3b61] transform transition-transform duration-200 hover:scale-[1.02];
}
}

0 comments on commit 2db2dfb

Please sign in to comment.