mirror of
https://github.com/imfing/hextra.git
synced 2025-06-19 18:01:17 -04:00
feat: add badge shortcode (#457)
* feat: move badge to a separate partial * feat: badge shortcode * docs: add badge shortcode examples * chore: generate css * docs: add spaces between badges
This commit is contained in:
@ -1176,6 +1176,9 @@ video {
|
||||
.hx-text-4xl {
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
.hx-text-\[\.65rem\] {
|
||||
font-size: .65rem;
|
||||
}
|
||||
.hx-text-\[10px\] {
|
||||
font-size: 10px;
|
||||
}
|
||||
@ -2269,7 +2272,6 @@ article details > summary::before {
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
z-index: 10;
|
||||
font-size: .65rem;
|
||||
}
|
||||
.steps h3 {
|
||||
counter-increment: step;
|
||||
@ -2594,6 +2596,10 @@ nav .search-wrapper {
|
||||
overflow: auto;
|
||||
font-size: .75rem;
|
||||
}
|
||||
.hextra-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
html {
|
||||
font-size: 1rem;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
3
assets/css/components/badge.css
Normal file
3
assets/css/components/badge.css
Normal file
@ -0,0 +1,3 @@
|
||||
.hextra-badge {
|
||||
@apply hx-inline-flex hx-items-center;
|
||||
}
|
@ -38,5 +38,4 @@
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
z-index: 10;
|
||||
font-size: .65rem;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@
|
||||
@import "components/code-copy.css";
|
||||
@import "components/hextra/feature-grid.css";
|
||||
@import "components/jupyter.css";
|
||||
@import "components/badge.css";
|
||||
|
||||
html {
|
||||
@apply hx-text-base hx-antialiased;
|
||||
|
Reference in New Issue
Block a user