.pll-switcher {
display: block;
box-sizing: border-box;
width: 100%;
} .pll-switcher ul {
padding: 0;
margin: 0;
list-style: none;
line-height: normal;
}
.pll-switcher li {
margin: 0;
} .pll-layout-dropdown,
.pll-switcher-inner {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: flex-start;
background-color: inherit;
}
.pll-switcher-inner {
box-sizing: border-box;
width: fit-content;
gap: 0;
padding: 0 .25em;
position: relative;
}
.pll-switcher .pll-switcher-inner > a {
width: auto;
max-width: none;
padding: .25em;
color: inherit;
text-decoration: none;
z-index: 1;
}
.pll-switcher-inner .pll-submenu-toggle {
width: auto;
height: auto;
padding: .2em;
border: none;
line-height: 0;
font-size: inherit;
background-color: transparent !important; color: currentColor !important;
}
.pll-switcher-inner .pll-submenu-toggle:focus {
outline-offset: inherit;
}
.pll-switcher-inner .pll-submenu-toggle svg {
display: block;
width: .6em;
height: .6em;
margin: 0;
}
.pll-switcher-inner .pll-submenu-toggle svg path {
stroke: currentColor;
}
.pll-switcher-inner:hover .pll-submenu-toggle:not([aria-expanded]) svg,
.pll-switcher-inner .pll-submenu-toggle[aria-expanded="true"] svg {
transform: rotate(180deg);
}
.pll-switcher-inner ul {
display: flex;
flex-direction: column;
align-items: stretch;
position: absolute;
z-index: 2;
width: 0;
height: 0;
left: 0;
right: auto;
top: 100%;
border: 1px solid rgba(0, 0, 0, .15);
background-color: var(--pll-dropdown-background-color, #fff);
color: inherit;
visibility: hidden;
overflow: hidden;
opacity: 0;
}
.wp-block-polylang-language-switcher.has-background .pll-switcher-inner ul {
background-color: var(--pll-dropdown-background-color, inherit); }
.pll-switcher-inner:hover .pll-submenu-toggle:not([aria-expanded]) + ul,
.pll-switcher-inner .pll-submenu-toggle[aria-expanded="true"] + ul {
width: auto;
height: auto;
min-width: 200px;
visibility: visible;
overflow: visible;
opacity: 1;
} .pll-layout-vertical ul {
display: flex;
flex-direction: column;
}
.pll-layout-horizontal ul,
.pll-layout-select {
display: flex;
flex-direction: row;
flex-wrap: wrap;
} .pll-alignment-left.pll-layout-horizontal ul,
.pll-alignment-left.pll-layout-select,
.pll-alignment-left.pll-layout-dropdown {
justify-content: flex-start; }
.pll-alignment-center.pll-layout-horizontal ul,
.pll-alignment-center.pll-layout-select,
.pll-alignment-center.pll-layout-dropdown {
justify-content: center;
}
.pll-alignment-right.pll-layout-horizontal ul,
.pll-alignment-right.pll-layout-select,
.pll-alignment-right.pll-layout-dropdown {
justify-content: flex-end;
}
.pll-alignment-stretched .pll-switcher-inner {
width: 100%;
}
.pll-alignment-stretched.pll-layout-horizontal ul,
.pll-alignment-stretched.pll-layout-select {
align-items: stretch;
}
.pll-alignment-stretched.pll-layout-dropdown {
flex-direction: row;
flex-wrap: wrap;
align-items: stretch;
}
.pll-alignment-stretched.pll-layout-horizontal li,
.pll-alignment-stretched.pll-layout-select select,
.pll-alignment-stretched .pll-switcher-inner > a {
flex-grow: 1;
} .pll-alignment-center.pll-layout-dropdown ul {
left: 50%;
right: auto;
transform: translateX(-50%);
}
.pll-alignment-right.pll-layout-dropdown ul {
left: auto;
right: 0;
}
.pll-alignment-stretched.pll-layout-dropdown ul {
left: 0;
right: 0;
} .pll-switcher a {
display: flex;
align-items: center;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 0.25em .5em;
}
:root .pll-layout-dropdown ul a,
:root .pll-layout-dropdown ul a span {
color: var(--pll-dropdown-text-color, #000); }
:root .pll-layout-dropdown.has-text-color ul a,
:root .pll-layout-dropdown.has-text-color ul a span {
color: var(--pll-dropdown-text-color, inherit); } .pll-alignment-center a,
.pll-alignment-stretched.pll-layout-horizontal a {
justify-content: center;
}
.pll-alignment-left a {
justify-content: flex-start;
}
.pll-alignment-right a {
justify-content: flex-end;
}.wp-block-navigation .wp-block-polylang-navigation-language-switcher {
align-self: center;
}
.wp-block-polylang-navigation-language-switcher :is( a, .wp-block-navigation-item__content ) {
display: inline-flex;
align-items: center;
width: auto;
max-width: none;
vertical-align: middle;
}
.wp-block-polylang-navigation-language-switcher :is( a, .wp-block-navigation-item__content ):has( .pll-switcher-flag ) {
line-height: 0;
}
.wp-block-polylang-navigation-language-switcher .pll-switcher-label,
.wp-block-polylang-navigation-language-switcher .wp-block-navigation-item__label {
display: inline-flex;
align-items: center;
width: auto;
line-height: normal;
}
.wp-block-polylang-navigation-language-switcher .pll-switcher-flag {
display: flex;
align-items: center;
}