ocrcc-chatbox/src/components/_chat.scss

121 lines
2.2 KiB
SCSS
Raw Normal View History

2020-02-01 05:30:58 +00:00
@import url('https://fonts.googleapis.com/css?family=Assistant&display=swap');
#ocrcc-chatbox {
font-family: $theme-font;
display: flex;
flex-direction: column;
2020-02-14 16:38:20 +00:00
height: 60vh;
max-height: 100vh;
min-height: 180px;
2020-02-02 03:11:46 +00:00
border: 1px solid $theme-color;
2020-02-01 05:30:58 +00:00
2020-02-16 23:31:50 +00:00
a {
color: inherit;
}
2020-02-01 05:30:58 +00:00
.message-window {
background-color: $light-color;
2020-02-14 16:38:20 +00:00
flex: 1 1 auto;
2020-02-01 05:30:58 +00:00
padding: 0.5rem;
overflow: auto;
display: flex;
flex-direction: column-reverse;
2020-02-04 06:13:47 +00:00
justify-content: space-between;
}
.notices {
color: $dark-color;
font-size: 0.9rem;
2020-02-16 23:31:50 +00:00
> div {
2020-02-23 21:57:16 +00:00
margin-top: 0.5rem;
margin-bottom: 0.5rem;
2020-02-16 23:31:50 +00:00
}
2020-02-01 05:30:58 +00:00
}
.message {
.sender {
font-weight: bold;
color: $theme-color;
}
.text {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
width: fit-content;
2020-02-23 21:57:16 +00:00
}
&.from-bot {
color: $dark-color;
font-size: 0.9rem;
2020-02-01 05:30:58 +00:00
}
&.from-me {
display: flex;
justify-content: flex-end;
.text {
2020-02-23 21:57:16 +00:00
border: 1px solid $theme-color;
2020-02-01 05:30:58 +00:00
background-color: $theme-color;
color: $white;
border-radius: 15px 15px 0 15px;
margin-left: 10%;
2020-02-23 21:57:16 +00:00
padding: 0.5rem 0.75rem;
2020-02-01 05:30:58 +00:00
}
}
&.from-support {
display: flex;
justify-content: flex-start;
.text {
2020-02-23 21:57:16 +00:00
border: 1px solid $theme-color;
2020-02-01 05:30:58 +00:00
background-color: $white;
color: $dark-color;
border-radius: 15px 15px 15px 0;
margin-right: 10%;
2020-02-23 21:57:16 +00:00
padding: 0.5rem 0.75rem;
2020-02-01 05:30:58 +00:00
}
}
}
.input-window {
flex: 0 0 auto;
form {
display: flex;
align-items: center;
margin-bottom: 0;
2020-02-02 03:11:46 +00:00
border-top: 1px solid $theme-color;
2020-02-01 05:30:58 +00:00
}
input[type="text"] {
font-size: 1rem;
padding: 0.5rem 1rem;
border: none;
flex: 1 0 auto;
border: none;
color: $dark-color;
font-family: $theme-font;
&:focus {
border: none;
}
}
input[type="submit"] {
background-color: $theme-color;
height: 100%;
padding: 0.5rem 1rem;
font-size: 1rem;
color: $white;
font-weight: bold;
border: none;
font-family: $theme-font;
cursor: pointer;
}
}
2020-02-14 16:38:20 +00:00
2020-02-01 05:30:58 +00:00
}