2023-03-07 17:38:06 +03:00
|
|
|
.status-translation-block {
|
|
|
|
margin: 8px 0 0;
|
|
|
|
padding: 0;
|
|
|
|
font-size: 90%;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
.status-translation-block summary {
|
|
|
|
list-style: none;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.status-translation-block summary::-webkit-details-marker {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.status-translation-block summary button {
|
|
|
|
border-radius: 8px;
|
|
|
|
border: 1px solid var(--outline-color);
|
|
|
|
padding: 8px;
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
font-size: 12px;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
|
|
|
.status-translation-block summary button:is(:hover, :focus) {
|
|
|
|
color: var(--text-color);
|
|
|
|
filter: none !important;
|
|
|
|
}
|
|
|
|
.status-translation-block details:not([open]) .detected {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
/* .status-translation-block details summary button:active, */
|
|
|
|
.status-translation-block details[open] summary button {
|
|
|
|
/* color: var(--text-color); */
|
|
|
|
/* background-color: var(--bg-faded-color); */
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-bottom: 0;
|
|
|
|
margin-bottom: -1px;
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to top left,
|
|
|
|
var(--bg-color) 50%,
|
|
|
|
var(--bg-faded-blur-color)
|
|
|
|
);
|
|
|
|
box-shadow: inset 0 0 0 1px var(--bg-color);
|
|
|
|
}
|
|
|
|
.status-translation-block .translated-block {
|
|
|
|
border: 1px solid var(--outline-color);
|
|
|
|
line-height: 1.3;
|
|
|
|
border-radius: 0 8px 8px 8px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 8px;
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to bottom right,
|
|
|
|
var(--bg-color),
|
|
|
|
var(--bg-faded-blur-color)
|
|
|
|
);
|
|
|
|
white-space: pre-wrap;
|
|
|
|
box-shadow: inset 0 0 0 1px var(--bg-color),
|
|
|
|
0 1px 5px -2px var(--drop-shadow-color);
|
|
|
|
text-shadow: 0 1px var(--bg-color);
|
|
|
|
}
|
2023-03-21 15:47:55 +03:00
|
|
|
.status-translation-block .translated-block .translation-info {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 8px;
|
|
|
|
}
|
2023-03-07 17:38:06 +03:00
|
|
|
.status-translation-block .translated-block .translation-info * {
|
|
|
|
vertical-align: middle;
|
2023-03-21 15:47:55 +03:00
|
|
|
flex-shrink: 0;
|
2023-03-07 17:38:06 +03:00
|
|
|
}
|
|
|
|
.status-translation-block .translated-source-select {
|
|
|
|
appearance: none;
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 4px 8px;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 8px;
|
|
|
|
background-color: var(--bg-faded-color);
|
|
|
|
color: inherit;
|
|
|
|
width: min-content;
|
2023-03-21 15:47:55 +03:00
|
|
|
min-width: 2em;
|
|
|
|
flex-shrink: 1 !important;
|
2023-03-07 17:38:06 +03:00
|
|
|
}
|
|
|
|
.status-translation-block .translated-block output {
|
|
|
|
display: block;
|
2023-03-31 04:44:12 +03:00
|
|
|
margin-top: 0.75em;
|
2023-11-02 08:00:07 +03:00
|
|
|
text-wrap: pretty;
|
2023-03-07 17:38:06 +03:00
|
|
|
}
|
|
|
|
.status-translation-block
|
|
|
|
.translated-block
|
|
|
|
output.translated-pronunciation-content {
|
|
|
|
opacity: 0.75;
|
2023-03-31 04:44:12 +03:00
|
|
|
padding-top: 0.75em;
|
|
|
|
border-top: var(--hairline-width) solid var(--outline-color);
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 3;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
2023-03-31 09:09:21 +03:00
|
|
|
mask-image: linear-gradient(to bottom, black 3em, transparent);
|
2023-03-31 04:44:12 +03:00
|
|
|
}
|
|
|
|
.status-translation-block
|
|
|
|
.translated-block
|
2023-03-31 09:09:21 +03:00
|
|
|
output.translated-pronunciation-content.expand {
|
2023-03-31 04:44:12 +03:00
|
|
|
display: block;
|
|
|
|
-webkit-line-clamp: unset;
|
|
|
|
-webkit-box-orient: unset;
|
|
|
|
overflow: visible;
|
|
|
|
mask-image: none;
|
2023-03-07 17:38:06 +03:00
|
|
|
}
|
2023-07-18 08:31:26 +03:00
|
|
|
|
|
|
|
/* MINI */
|
|
|
|
|
|
|
|
.status-translation-block-mini {
|
|
|
|
display: flex;
|
|
|
|
margin: 8px 0 0;
|
|
|
|
padding: 8px 0 0;
|
|
|
|
font-size: 90%;
|
|
|
|
border-top: var(--hairline-width) solid var(--outline-color);
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
gap: 8px;
|
|
|
|
transition: color 0.3s ease-in-out;
|
|
|
|
}
|
|
|
|
.status-translation-block-mini .icon {
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
.status:is(:hover, :active) .status-translation-block-mini {
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|