tag ui rtl support
This commit is contained in:
parent
12319a9402
commit
c8288fc506
|
@ -24,12 +24,35 @@
|
|||
|
||||
&__link {
|
||||
text-decoration: none !important;
|
||||
|
||||
&[data-dir="ltr"] {
|
||||
.taxo__text {
|
||||
border-top-left-radius: 0.175rem;
|
||||
border-bottom-left-radius: 0.175rem;
|
||||
}
|
||||
|
||||
.taxo__num {
|
||||
padding: 0.125rem 0.25rem;
|
||||
border-top-right-radius: 0.175rem;
|
||||
border-bottom-right-radius: 0.175rem;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-dir="rtl"] {
|
||||
.taxo__text {
|
||||
border-top-right-radius: 0.175rem;
|
||||
border-bottom-right-radius: 0.175rem;
|
||||
}
|
||||
|
||||
.taxo__num {
|
||||
padding: 0.125rem 0.25rem;
|
||||
border-top-left-radius: 0.175rem;
|
||||
border-bottom-left-radius: 0.175rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__text {
|
||||
border-top-left-radius: 0.175rem;
|
||||
border-bottom-left-radius: 0.175rem;
|
||||
|
||||
@include on-event {
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
@ -39,10 +62,6 @@
|
|||
}
|
||||
|
||||
&__num {
|
||||
padding: 0.125rem 0.25rem;
|
||||
border-top-right-radius: 0.175rem;
|
||||
border-bottom-right-radius: 0.175rem;
|
||||
|
||||
@include themify($themes) {
|
||||
color: themed('taxo-num-color');
|
||||
background-color: themed('taxo-num-background-color');
|
||||
|
@ -70,28 +89,52 @@
|
|||
|
||||
.is-tags {
|
||||
border-radius: 0.175rem;
|
||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
||||
|
||||
@include themify($themes) {
|
||||
color: themed('taxo-tags-color');
|
||||
background-color: themed('taxo-tags-background-color');
|
||||
}
|
||||
}
|
||||
|
||||
&[data-dir="ltr"] {
|
||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
||||
}
|
||||
|
||||
&[data-dir="rtl"] {
|
||||
padding: 0.125rem 0.25rem 0.125rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
.is-categories {
|
||||
border-radius: 0.175rem;
|
||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
||||
|
||||
@include themify($themes) {
|
||||
color: themed('taxo-categories-color');
|
||||
background-color: themed('taxo-categories-background-color');
|
||||
}
|
||||
|
||||
&[data-dir="ltr"] {
|
||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
||||
}
|
||||
|
||||
&[data-dir="rtl"] {
|
||||
padding: 0.125rem 0.25rem 0.125rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
.is-series {
|
||||
border-radius: 0.175rem;
|
||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
||||
|
||||
@include themify($themes) {
|
||||
color: themed('taxo-series-color');
|
||||
background-color: themed('taxo-series-background-color');
|
||||
}
|
||||
|
||||
&[data-dir="ltr"] {
|
||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
||||
}
|
||||
|
||||
&[data-dir="rtl"] {
|
||||
padding: 0.125rem 0.25rem 0.125rem 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9,11 +9,11 @@
|
|||
{{ range $index, $element := .Site.Taxonomies.categories }}
|
||||
{{ if $index }}
|
||||
<span class="tag">
|
||||
<a href="{{ $element.Page.RelPermalink }}" class="is-categories taxo__link">
|
||||
<a href="{{ $element.Page.RelPermalink }}" class="is-categories taxo__link" data-dir="{{ if eq ($.Param "languagedir") "rtl" }}rtl{{ else }}ltr{{ end }}">
|
||||
<span class="taxo__text">
|
||||
{{ $element.Page.Title }}
|
||||
</span>
|
||||
<span class="taxo__num">
|
||||
<span class="taxo__num" dir="auto">
|
||||
{{ printf "%#v" (len $element) }}
|
||||
</span>
|
||||
</a>
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
{{ range $index, $element := .Site.Taxonomies.series }}
|
||||
{{ if $index }}
|
||||
<span class="tag">
|
||||
<a href="{{ $element.Page.RelPermalink }}" class="is-series taxo__link">
|
||||
<a href="{{ $element.Page.RelPermalink }}" class="is-series taxo__link" data-dir="{{ if eq ($.Param "languagedir") "rtl" }}rtl{{ else }}ltr{{ end }}">
|
||||
<span class="taxo__text">
|
||||
{{ $element.Page.Title }}
|
||||
</span>
|
||||
<span class="taxo__num">
|
||||
<span class="taxo__num" dir="auto">
|
||||
{{ printf "%#v" (len $element) }}
|
||||
</span>
|
||||
</a>
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
{{ range $index, $element := .Site.Taxonomies.tags }}
|
||||
{{ if $index }}
|
||||
<span class="tag">
|
||||
<a href="{{ $element.Page.RelPermalink }}" class="is-tags taxo__link">
|
||||
<a href="{{ $element.Page.RelPermalink }}" class="is-tags taxo__link" data-dir="{{ if eq ($.Param "languagedir") "rtl" }}rtl{{ else }}ltr{{ end }}">
|
||||
<span class="taxo__text">
|
||||
{{ $element.Page.Title }}
|
||||
</span>
|
||||
<span class="taxo__num">
|
||||
<span class="taxo__num" dir="auto">
|
||||
{{ printf "%#v" (len $element) }}
|
||||
</span>
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue