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 4ba24e8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG_fix_documentation_css.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Fixed
- Fix tailwind sb-documentation style : max-width + table and image max-width/transform
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 4ba24e8

Please sign in to comment.