Skip to content

Commit

Permalink
Tweaking styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Dec 13, 2024
1 parent 9d2dbe3 commit eb13d1d
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 2 deletions.
68 changes: 66 additions & 2 deletions assets/css/_tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,71 @@
}

#tmpl-single blockquote {
@apply my-1
@apply my-1 p-4 bg-gray-100 dark:bg-black border-l-blue-700 dark:border-l-blue-300 border-l-4
}

#tmpl-single blockquote p {
@apply mt-1 text-sm/6 text-gray-500 not-italic font-normal
@apply mt-1 text-sm/5 text-gray-500 dark:text-gray-300 not-italic font-normal
}

#tmpl-single blockquote.alert {
border-width: 1px 1px 1px 5px;
border-style: solid;
padding: 1rem;
margin: 1rem 0;
}

#tmpl-single blockquote.alert p::before,
#tmpl-single blockquote.alert p::after {
content: "";
}

#tmpl-single blockquote.alert p {
@apply m-0 py-1
}

#tmpl-single blockquote.alert p.alert-heading {
@apply text-base/4 font-semibold py-2 px-0 m-0
}

#tmpl-single blockquote.alert.alert-caution {
@apply bg-rose-50 dark:bg-rose-950 border-rose-700 dark:border-rose-300
}

#tmpl-single blockquote.alert.alert-caution p {
@apply text-rose-700 dark:text-rose-300
}

#tmpl-single blockquote.alert.alert-important {
@apply bg-fuchsia-50 dark:bg-fuchsia-950 border-fuchsia-700 dark:border-fuchsia-300
}

#tmpl-single blockquote.alert.alert-important p {
@apply text-fuchsia-700 dark:text-fuchsia-300
}

#tmpl-single blockquote.alert.alert-note {
@apply bg-blue-50 dark:bg-blue-950 border-blue-700 dark:border-blue-300
}

#tmpl-single blockquote.alert.alert-note p {
@apply text-blue-700 dark:text-blue-300
}

#tmpl-single blockquote.alert.alert-tip {
@apply bg-emerald-50 dark:bg-emerald-950 border-emerald-700 dark:border-emerald-300
}

#tmpl-single blockquote.alert.alert-tip p {
@apply text-emerald-700 dark:text-emerald-300
}

#tmpl-single blockquote.alert.alert-warning {
@apply bg-amber-50 dark:bg-amber-950 border-amber-700 dark:border-amber-300
}

#tmpl-single blockquote.alert.alert-warning p {
@apply text-amber-700 dark:text-amber-300
}

#tmpl-single div.footnotes * {
Expand All @@ -66,6 +126,10 @@
@apply inline-block m-0 p-0 max-w-none object-scale-down h-[1rem] align-middle;
}

.table-question-mark {
@apply h-5 w-5 inline-block text-blue-700 dark:text-blue-300;
}

.ui-link {
@apply text-indigo-600 hover:text-blue-400 underline decoration-dotted hover:decoration-solid underline-offset-4;
}
Expand Down
20 changes: 20 additions & 0 deletions layouts/_default/_markup/render-blockquote.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ $emoji := dict
"caution" "heroicons/solid/exclamation-triangle"
"important" "heroicons/solid/check-circle"
"note" "heroicons/solid/information-circle"
"tip" "heroicons/solid/light-bulb"
"warning" "heroicons/solid/exclamation-triangle"
}}

{{ if eq .Type "alert" }}
<blockquote class="alert alert-{{ .AlertType }}">
<p class="alert-heading">
{{ partial (printf "%s.svg" (index $emoji .AlertType)) (dict "class" "h-5 w-5 inline-block align-middle") }}{{ with .AlertTitle }}{{ . }}{{ else }}{{ .AlertType | upper }}{{ end }}
</p>
{{ .Text }}
</blockquote>
{{ else }}
<blockquote>
{{ .Text }}
</blockquote>
{{ end }}
2 changes: 2 additions & 0 deletions layouts/shortcodes/param-kind.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Authentication signature
{{- else if eq $kind "encryption-algo" -}}
Encryption algorithm
{{- else if eq $kind "mode" -}}
Mode of operation
{{- else if eq $kind "hash" -}}
Hashing function
{{- end -}}

0 comments on commit eb13d1d

Please sign in to comment.