tag ui rtl support
This commit is contained in:
parent
12319a9402
commit
c8288fc506
|
@ -24,12 +24,35 @@
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
text-decoration: none !important;
|
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 {
|
&__text {
|
||||||
border-top-left-radius: 0.175rem;
|
|
||||||
border-bottom-left-radius: 0.175rem;
|
|
||||||
|
|
||||||
@include on-event {
|
@include on-event {
|
||||||
text-decoration: underline !important;
|
text-decoration: underline !important;
|
||||||
}
|
}
|
||||||
|
@ -39,10 +62,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__num {
|
&__num {
|
||||||
padding: 0.125rem 0.25rem;
|
|
||||||
border-top-right-radius: 0.175rem;
|
|
||||||
border-bottom-right-radius: 0.175rem;
|
|
||||||
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('taxo-num-color');
|
color: themed('taxo-num-color');
|
||||||
background-color: themed('taxo-num-background-color');
|
background-color: themed('taxo-num-background-color');
|
||||||
|
@ -70,28 +89,52 @@
|
||||||
|
|
||||||
.is-tags {
|
.is-tags {
|
||||||
border-radius: 0.175rem;
|
border-radius: 0.175rem;
|
||||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('taxo-tags-color');
|
color: themed('taxo-tags-color');
|
||||||
background-color: themed('taxo-tags-background-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 {
|
.is-categories {
|
||||||
border-radius: 0.175rem;
|
border-radius: 0.175rem;
|
||||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('taxo-categories-color');
|
color: themed('taxo-categories-color');
|
||||||
background-color: themed('taxo-categories-background-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 {
|
.is-series {
|
||||||
border-radius: 0.175rem;
|
border-radius: 0.175rem;
|
||||||
padding: 0.125rem 0 0.125rem 0.25rem;
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('taxo-series-color');
|
color: themed('taxo-series-color');
|
||||||
background-color: themed('taxo-series-background-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 }}
|
{{ range $index, $element := .Site.Taxonomies.categories }}
|
||||||
{{ if $index }}
|
{{ if $index }}
|
||||||
<span class="tag">
|
<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">
|
<span class="taxo__text">
|
||||||
{{ $element.Page.Title }}
|
{{ $element.Page.Title }}
|
||||||
</span>
|
</span>
|
||||||
<span class="taxo__num">
|
<span class="taxo__num" dir="auto">
|
||||||
{{ printf "%#v" (len $element) }}
|
{{ printf "%#v" (len $element) }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
{{ range $index, $element := .Site.Taxonomies.series }}
|
{{ range $index, $element := .Site.Taxonomies.series }}
|
||||||
{{ if $index }}
|
{{ if $index }}
|
||||||
<span class="tag">
|
<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">
|
<span class="taxo__text">
|
||||||
{{ $element.Page.Title }}
|
{{ $element.Page.Title }}
|
||||||
</span>
|
</span>
|
||||||
<span class="taxo__num">
|
<span class="taxo__num" dir="auto">
|
||||||
{{ printf "%#v" (len $element) }}
|
{{ printf "%#v" (len $element) }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
{{ range $index, $element := .Site.Taxonomies.tags }}
|
{{ range $index, $element := .Site.Taxonomies.tags }}
|
||||||
{{ if $index }}
|
{{ if $index }}
|
||||||
<span class="tag">
|
<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">
|
<span class="taxo__text">
|
||||||
{{ $element.Page.Title }}
|
{{ $element.Page.Title }}
|
||||||
</span>
|
</span>
|
||||||
<span class="taxo__num">
|
<span class="taxo__num" dir="auto">
|
||||||
{{ printf "%#v" (len $element) }}
|
{{ printf "%#v" (len $element) }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue