|
|
.community-translator { |
|
|
position: fixed; |
|
|
bottom: 66px; |
|
|
right: 24px; |
|
|
border-radius: 27px; |
|
|
background: var(--color-primary); |
|
|
cursor: pointer; |
|
|
padding: 4px; |
|
|
font-size: $font-body-small; |
|
|
z-index: z-index("root", ".community-translator"); |
|
|
|
|
|
&.is-active { |
|
|
background: var(--color-accent); |
|
|
} |
|
|
|
|
|
&.is-incompatible { |
|
|
background: var(--color-neutral-5); |
|
|
border: 1px solid var(--color-neutral-10); |
|
|
} |
|
|
} |
|
|
|
|
|
.community-translator__button { |
|
|
align-items: center; |
|
|
color: var(--color-text-inverted); |
|
|
text-decoration: none; |
|
|
outline: 0; |
|
|
display: flex; |
|
|
cursor: pointer; |
|
|
|
|
|
&:hover { |
|
|
color: var(--color-text-inverted); |
|
|
|
|
|
.community-translator__text { |
|
|
transition: all 0.15s ease-in-out; |
|
|
width: auto; |
|
|
margin-right: 6px; |
|
|
padding: 0 2px; |
|
|
} |
|
|
} |
|
|
|
|
|
.is-incompatible & { |
|
|
color: var(--color-neutral-20); |
|
|
} |
|
|
} |
|
|
|
|
|
.community-translator__badge { |
|
|
position: absolute; |
|
|
left: 50%; |
|
|
top: -8px; |
|
|
padding: 1px 3px; |
|
|
border: 1px solid var(--color-neutral-10); |
|
|
border-radius: 2px; |
|
|
background: var(--color-neutral-5); |
|
|
color: var(--color-neutral-20); |
|
|
font-size: 0.6em; |
|
|
text-transform: uppercase; |
|
|
white-space: nowrap; |
|
|
transform: translateX(-50%); |
|
|
} |
|
|
|
|
|
.community-translator__text { |
|
|
width: 0; |
|
|
overflow: hidden; |
|
|
white-space: nowrap; |
|
|
} |
|
|
|
|
|
|
|
|
body { |
|
|
.webui-popover { |
|
|
border-radius: 2px; |
|
|
padding: 0; |
|
|
text-align: inherit; |
|
|
border-color: var(--color-neutral-10); |
|
|
z-index: z-index("root", "body .webui-popover"); |
|
|
|
|
|
.webui-popover-title { |
|
|
background-color: var(--color-neutral-10); |
|
|
border-color: var(--color-neutral-0); |
|
|
|
|
|
border-radius: 1px 1px 0 0; |
|
|
} |
|
|
|
|
|
&.top, |
|
|
&.top-right, |
|
|
&.top-left { |
|
|
.arrow { |
|
|
border-top-color: var(--color-neutral-10); |
|
|
} |
|
|
} |
|
|
|
|
|
&.right, |
|
|
&.right-top, |
|
|
&.right-bottom { |
|
|
.arrow { |
|
|
border-right-color: var(--color-neutral-10); |
|
|
} |
|
|
} |
|
|
|
|
|
&.left, |
|
|
&.left-top, |
|
|
&.left-bottom { |
|
|
.arrow { |
|
|
border-left-color: var(--color-neutral-10); |
|
|
} |
|
|
} |
|
|
|
|
|
&.bottom, |
|
|
&.bottom-right, |
|
|
&.bottom-left { |
|
|
.arrow { |
|
|
border-bottom-color: var(--color-neutral-10); |
|
|
&::after { |
|
|
border-bottom-color: var(--color-neutral-10); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.community-translator__modal { |
|
|
max-width: 400px; |
|
|
} |
|
|
|
|
|
.community-translator__highlight { |
|
|
position: absolute; |
|
|
left: 0; |
|
|
top: 0; |
|
|
z-index: 1000; |
|
|
margin: -10px; |
|
|
padding: 10px; |
|
|
outline: 1000vw solid rgba(0, 0, 0, 0.5); |
|
|
box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.25); |
|
|
pointer-events: none; |
|
|
transition: all 0.2s; |
|
|
} |
|
|
|
|
|
.community-translator__bar { |
|
|
z-index: 1000; |
|
|
background: var(--studio-orange); |
|
|
border-color: var(--studio-orange-80); |
|
|
|
|
|
&-form { |
|
|
flex: 1 1 auto; |
|
|
display: flex; |
|
|
flex-flow: row nowrap; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
padding: 4px 8px; |
|
|
|
|
|
.button { |
|
|
flex: 0 0 auto; |
|
|
margin-left: 8px; |
|
|
} |
|
|
|
|
|
.form-text-input { |
|
|
max-width: 500px; |
|
|
} |
|
|
} |
|
|
|
|
|
&-label { |
|
|
flex: 0 0 auto; |
|
|
margin-right: 8px; |
|
|
} |
|
|
} |
|
|
|
|
|
.has-deliverable-highlighted { |
|
|
|
|
|
.translator-translatable { |
|
|
text-shadow: none !important; |
|
|
} |
|
|
|
|
|
#notices, |
|
|
.environment-badge, |
|
|
.community-translator { |
|
|
display: none !important; |
|
|
} |
|
|
} |
|
|
|