Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tailwind sb-documentation style : max-width + table and image #68

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
}
Loading