Skip to content

Commit

Permalink
Fix tailwind sb-documentation style : max-width + table and image max…
Browse files Browse the repository at this point in the history
…-width/transform
  • Loading branch information
mathieu-ducrot committed Aug 2, 2024
1 parent fc1f1a7 commit 2f9a3ae
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions assets/styles/_documentation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

// Tailwind custom Smartbooster prose styles
.sb-documentation {
max-width: 100%;
@apply prose prose-a:text-info prose-a:no-underline hover:prose-a:underline hover:prose-a:text-info max-w-none inline-block;
h1, h2, h3, h4 {
a {
Expand All @@ -42,4 +43,20 @@
@apply block;
}
}
table {
@apply border-collapse border border-slate-400 border-solid;
}
thead th {
@apply bg-slate-100 font-semibold;
}
th, td {
@apply px-2 py-2 border border-slate-300 border-solid;
}
img {
height: auto;
max-width: 100%;
&:hover {
transform: scale(1.25);
}
}
}

0 comments on commit 2f9a3ae

Please sign in to comment.