번역 수정중

This commit is contained in:
khk 2020-01-08 20:42:14 +09:00
parent 68b971f93b
commit 6fde3b5f22
11 changed files with 183 additions and 105 deletions

View File

@ -13,6 +13,10 @@
display: flex;
justify-content: center;
justify-items: center;
img {
width: 100px;
height: 100px;
}
}
.app-title {

View File

@ -41,7 +41,7 @@
<button
mat-icon-button
aria-label="chats button"
class="responsive-chats-button"
class="bg-warn-color chat-timer"
*ngIf="!!roomInfo && roomInfo.isTimeRoom"
>
<mat-icon>timer</mat-icon>
@ -88,7 +88,7 @@
*ngIf="roomInfo && roomInfo.isTimeRoom"
class="room-type text-accent-color "
>
<span class="bg-accent-dark"
<span class="bg-accent-darkest"
>{{ getConvertTimer(roomInfo.timeRoomInterval) }} </span
>{{ 'chat.isRoomTypeSecret' | translate }}
</div>

View File

@ -42,8 +42,7 @@
justify-items: center;
padding: 10px 20px;
.profile-img {
margin-right: 16px;
margin-right: 10px;
.responsive-chats-button {
display: none;
line-height: normal;
@ -141,6 +140,10 @@
width: 100%;
}
}
}
.translation-section {
display: flex;
flex-flow: column;
.translation-container {
position: absolute;
@ -148,6 +151,8 @@
left: 0;
width: 100%;
background-color: transparent;
background-color: rgba(250, 255, 255, 0.8);
border-top: 1px solid;
.translation-zone {
position: absolute;
@ -166,3 +171,17 @@
}
}
}
::ng-deep .chat-header {
.profile-img {
.chat-timer {
.mat-button-wrapper {
.mat-icon {
line-height: normal;
color: #ffffff;
transform: translateY(-3px);
}
}
}
}
}

View File

@ -91,7 +91,7 @@ $aquaBlue-daesang: (
50: #f9feff,
//#e0f7fa,
/* 100: #b2ebf2,*/ 100: #ebfdff,
200: #65e4f5,
/*200: #65e4f5,*/ 200: #a7f3fd,
//#80deea,
300: #4dd0e1,
400: #26c6da,
@ -200,14 +200,17 @@ $daesang-grey: (
background: mat-color($accent, 600);
color: mat-color($primary, default-contrast);
}
.bg-accent-brightest {
background: mat-color($accent, 50);
color: mat-color($primary, $dark-primary-text);
}
.bg-accent-light {
background: mat-color($accent, 300) !important;
color: mat-color($primary, default-contrast);
}
.bg-accent-bright {
background-color: mat-color($accent, 100);
}
.bg-accent-brightest {
background: mat-color($accent, 50);
color: mat-color($primary, $dark-primary-text);
}
.bg-accent-color {
background: mat-color($accent);
color: mat-color($accent, default-contrast);
@ -236,6 +239,9 @@ $daesang-grey: (
.border-primary-color {
border: 1px solid mat-color($primary);
}
.border-accent-bright {
border-color: mat-color($accent, 300);
}
.border-accent-color {
border: 1px solid mat-color($accent);
}
@ -409,7 +415,14 @@ $daesang-grey: (
}
.chat-search-frame {
.chat-search {
background-color: mat-color($accent, 600, 0.7);
//background-color: mat-color($accent, 600, 0.7);
background-color: mat-color($accent, 800, 0.8);
}
}
.translationForm {
background-color: mat-color($accent, 200, 0.5);
}
.translation-preview {
background-color: mat-color($accent, 800, 0.8);
}
}

View File

@ -6,7 +6,7 @@
width: 100%;
height: 100%;
flex: 1;
padding: 20px 30px;
padding: 10px 30px 20px;
.add-option {
display: inline-flex;
margin-right: 20px;
@ -31,8 +31,13 @@ textarea[name='message'] {
.mat-form-field-underline {
background-color: none;
}
.send-message-button {
::ng-deep .send-message-button {
margin-left: 20px;
.mat-button-wrapper {
display: flex;
justify-content: center;
justify-items: center;
}
i {
display: inline-block;
width: 40px;

View File

@ -9,11 +9,11 @@
}
}
.language {
padding: 2px 6px;
padding: 0px 6px 4px;
background-color: #222222;
margin-right: 6px;
border-radius: 2px;
font-size: 11px;
font-size: 1em;
color: #fff;
margin-right: 10px;
}

View File

@ -9,12 +9,6 @@ $meBox-bg: #ffffff;
flex-direction: column;
}
.information-msg {
/* width: 100%;
height: 100%;
text-align: center;
background-color: rgba(0, 0, 0, 0.1);
padding: 10px;
margin: 10px 0;*/
width: 100%;
}
@ -66,40 +60,6 @@ $meBox-bg: #ffffff;
color: #333333;
margin-bottom: 6px;
}
/*.bubble {
border: 1px solid $otherBox-line;
font-weight: 900;
position: relative;
background-color: $otherBox-bg;
border-radius: 4px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
word-break: break-all;
word-wrap: break-word;
&:before {
content: '';
width: 0px;
height: 0px;
position: absolute;
border-left: 6px solid transparent;
border-right: 6px solid $otherBox-line;
border-top: 6px solid $otherBox-line;
border-bottom: 6px solid transparent;
left: -12px;
top: 4px;
}
&:after {
content: '';
width: 0px;
height: 0px;
position: absolute;
border-left: 6px solid transparent;
border-right: 6px solid $otherBox-bg;
border-top: 6px solid $otherBox-bg;
border-bottom: 6px solid transparent;
left: -10px;
top: 5px;
}
}*/
.bubble {
border-radius: 0 10px 10px 10px;
font-weight: 900;
@ -188,6 +148,7 @@ $meBox-bg: #ffffff;
button {
height: 100%;
width: 100%;
line-height: 2em;
border-radius: 100px;
.mat-button-wrapper {
justify-items: center;

View File

@ -4,7 +4,7 @@
justify-items: center;
.search-form {
flex-flow: row;
padding: 0 10px 0 20px;
padding: 0 0 0 20px;
flex: 1 1 auto;
form {
display: flex;

View File

@ -26,18 +26,23 @@
.work-status {
&.morning-off {
background-color: #11845d;
//background-color: #11845d;
background-color: #30ad82;
}
&.afternoon-off {
background-color: #875acb;
//background-color: #875acb;
background-color: #976fd4;
}
&.day-off {
//background-color: #2b98eb;
background-color: #2b98eb;
}
&.long-time {
background-color: #c72f20;
//background-color: #c72f20;
background-color: #ea4737;
}
&.leave-of-absence {
background-color: #e7853e;
// background-color: #e7853e;
background-color: #ffa25e;
}
}

View File

@ -10,14 +10,36 @@
<span class="translation-section">
{{ translationPreviewInfo.previewInfo.translation }}
</span>
<button
mat-stroked-button
(click)="onClickSendTranslationMessage(translationPreviewInfo)"
>
{{ 'chat.send' | translate }}
</button>
<span class="btn-close">
<div class="btns">
<button
mat-stroked-button
(click)="onClickSendTranslationMessage(translationPreviewInfo)"
>
{{ 'chat.send' | translate }}
</button>
<button
class="btn-close-translatebox bg-accent-dark"
aria-label="Close"
(click)="onClickTranslationCancel()"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-x"
>
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
<!--<span class="btn-close">
<button
mat-button
matSuffix
@ -27,14 +49,18 @@
>
<mat-icon>close</mat-icon>
</button>
</span>
</span>-->
</div>
<div>
<form name="translationForm" [formGroup]="translationForm">
<mat-form-field>
<mat-label>{{
'common.translations.targetLanguage' | translate
}}</mat-label>
<form
name="translationForm"
[formGroup]="translationForm"
class="translationForm "
>
<mat-label class="text-language">
{{ 'common.translations.targetLanguage' | translate }}</mat-label
>
<mat-form-field class="select-language">
<mat-select
formControlName="destType"
(selectionChange)="onChangeSelection($event)"
@ -47,14 +73,17 @@
</mat-option>
</mat-select>
</mat-form-field>
<div _ngcontent-xkt-c1="" class="app-layout-native-title-bar-spacer"></div>
<mat-slide-toggle
labelPosition="before"
class="simpleview"
[checked]="simpleView"
(change)="onChangToggleSimpleview($event)"
>{{ 'common.translations.simpleView' | translate }}</mat-slide-toggle
>
<mat-slide-toggle
labelPosition="before"
class="preview"
[checked]="preView"
(change)="onChangTogglePreview($event)"
>{{ 'common.translations.preview' | translate }}</mat-slide-toggle

View File

@ -1,34 +1,76 @@
.sticker-selector {
border-top: 1px solid #cccccc;
// .sticker-item-box {
// flex-wrap: wrap;
// padding: 20px 20px 0;
// overflow: auto;
// }
}
// .sticker-item {
// width: 60px;
// margin-bottom: 20px;
// display: inline-flex;
// cursor: pointer;
// }
.selected-sticker {
.translation-preview {
position: relative;
height: 100px;
padding: 20px;
text-align: right;
background-color: rgba(0, 0, 0, 0.4);
// img {
// margin-right: 40px;
// }
// .btn-close {
// position: absolute;
// top: 2px;
// right: 20px;
// width: 40px;
// height: 40px;
// color: #ffffff;
// }
display: flex;
flex-flow: row;
justify-items: flex-end;
align-items: center;
color: #ffffff;
.translation-section {
display: flex;
flex: 1 1 auto;
font-size: 1.1em;
padding: 0 20px 0 40px;
}
.btns {
display: flex;
flex-flow: row;
margin-left: auto;
height: 100%;
button {
&.btn-send {
width: 80px;
background-color: #ffffff;
color: #333333;
}
&.btn-close-translatebox {
width: 3em;
height: 100%;
stroke: #ffffff;
border: none;
display: flex;
justify-content: center;
justify-items: center;
margin-left: auto;
}
}
}
}
::ng-deep .translationForm {
position: relative;
display: flex;
padding: 0 40px;
justify-items: flex-end;
align-content: space-between;
/*background-color: rgba(30, 167, 185, 0.1);
border-top: 1px solid rgba(30, 167, 185, 0.3);
border-bottom: 1px solid rgba(30, 167, 185, 0.3);*/
.text-language {
display: inline-flex;
margin-right: 20px;
font-weight: 600;
font-size: 1em;
justify-content: center;
align-items: center;
margin-right: 20px;
}
.select-language {
display: inline-flex;
width: 300px;
flex: 0 1 auto;
margin-right: 20px;
.mat-form-field-wrapper {
width: 100%;
}
}
.mat-slide-toggle {
display: inline-flex;
width: 120px;
height: unset;
&.simpleview {
margin-right: 20px;
margin-left: auto;
}
&.preview {
}
}
}