next-ucap-messenger/projects/ucap-webmessenger-ui/src/lib/components/translation-section.component.scss
2020-02-14 15:56:08 +09:00

101 lines
2.0 KiB
SCSS

$tablet-l-width: 1024px;
$tablet-s-width: 768px;
.translation-preview {
position: relative;
display: flex;
flex-flow: row;
justify-items: flex-end;
color: #ffffff;
.translation-section {
display: flex;
flex: 1 1 auto;
font-size: 1em;
.translate-text {
margin: 14px 20px 14px 30px;
max-height: 100px;
word-wrap: break-word;
white-space: pre-wrap;
word-break: break-word;
overflow-y: auto;
display: flex;
flex: 1 1 auto;
@media screen and (max-width: #{$tablet-s-width}),
(max-height: 600px) {
margin: 10px;
}
}
.btn-translation-send {
align-self: center;
stroke: #ffffff;
width: 40px;
height: 40px;
min-width: 40px;
border: 2px solid #ffffff;
border-radius: 50%;
margin-right: 10px;
padding: 0;
line-height: 1;
}
.btn-close-translatebox {
height: 100%;
stroke: #ffffff;
border: none;
display: flex;
justify-content: center;
justify-items: center;
margin-left: auto;
svg {
width: 40px;
}
}
}
}
.translationForm {
position: relative;
display: flex;
padding: 0 2vw;
justify-items: flex-end;
align-content: space-between;
.text-language {
display: inline-flex;
margin-right: 20px;
font-weight: 600;
font-size: 1em;
justify-content: center;
align-items: center;
margin-right: 20px;
}
@media screen and (max-width: #{$tablet-s-width}) {
padding: 10px 20px 4px;
.text-language {
display: none;
}
}
.select-language {
display: inline-flex;
width: 300px;
flex: 0 1 auto;
margin-right: 20px;
font-size: 1em;
@media screen and (max-width: #{$tablet-s-width}),
(max-height: 600px) {
width: 50%;
}
}
.mat-slide-toggle {
display: inline-flex;
width: 120px;
height: unset;
&.simpleview {
margin-right: 20px;
margin-left: auto;
}
&.preview {
}
}
}