Ruby shortcode and some new ruby CSS styles
This commit is contained in:
parent
51d9a5b61f
commit
ec96e17acd
2 changed files with 25 additions and 0 deletions
|
@ -133,6 +133,10 @@ a.hover-only:hover {
|
|||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
a rt {
|
||||
color: var(--html-color);
|
||||
}
|
||||
|
||||
article.two-column {
|
||||
columns: 2;
|
||||
}
|
||||
|
@ -273,6 +277,12 @@ h1, h2, h3, h4, h5, h6 {
|
|||
line-height: var(--body-header-line-height);
|
||||
}
|
||||
|
||||
:is(h1, h2, h3, h4, h5, h6) rt {
|
||||
font-family: var(--font-family-body);
|
||||
font-weight: normal;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h1.site {
|
||||
color: rgb(var(--mid-blue));
|
||||
font-size: 2.5em;
|
||||
|
@ -584,6 +594,20 @@ footer > .tags > .chevron:hover {
|
|||
background-color: inherit;
|
||||
}
|
||||
|
||||
rt {
|
||||
color: rgba(var(--black), 0.5);
|
||||
transition: 0.3s;
|
||||
}
|
||||
ruby:hover rt {
|
||||
color: inherit;
|
||||
transition: 0.3s;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
rt {
|
||||
color: rgba(var(--white), 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
border: 1px solid var(--separator-color);
|
||||
border-collapse: collapse;
|
||||
|
|
1
layouts/shortcodes/ruby.html
Normal file
1
layouts/shortcodes/ruby.html
Normal file
|
@ -0,0 +1 @@
|
|||
<ruby {{ with .Get 1 }}lang="{{ . }}"{{ end }}>{{- .Inner }} <rp>(</rp><rt {{ with .Get 2 }}lang="{{ . }}"{{ end }}>{{- .Get 0 -}}</rt><rp>)</rp></ruby>{{- "" -}}
|
Loading…
Add table
Add a link
Reference in a new issue