-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from mrbot-ai/fix/css-scoping
Fix/css scoping
- Loading branch information
Showing
10 changed files
with
170 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 13 additions & 11 deletions
24
...onents/Widget/components/Conversation/components/Messages/components/ImgReply/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
@import "variables.scss"; | ||
@import "common.scss"; | ||
|
||
.image-details { | ||
object-fit: scale-down; | ||
max-width: 100%; | ||
margin-top: 10px; | ||
.conversation-container { | ||
.image-details { | ||
object-fit: scale-down; | ||
max-width: 100%; | ||
margin-top: 10px; | ||
} | ||
|
||
.image-frame { | ||
object-position: 0 0; | ||
object-fit: cover; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
|
||
.image-frame { | ||
object-position: 0 0; | ||
object-fit: cover; | ||
width: 100%; | ||
height: 100%; | ||
} |
71 changes: 38 additions & 33 deletions
71
...ponents/Widget/components/Conversation/components/Messages/components/Message/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,47 @@ | ||
@import "variables.scss"; | ||
@import "common.scss"; | ||
|
||
.message { | ||
margin: 10px; | ||
display: flex; | ||
font-size: 14px; | ||
font-family: $roboto; | ||
|
||
.markdown { | ||
p { | ||
margin: 0; | ||
.conversation-container { | ||
|
||
.message { | ||
margin: 10px; | ||
display: flex; | ||
font-size: 14px; | ||
font-family: $roboto; | ||
|
||
.markdown { | ||
p { | ||
margin: 0; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.client { | ||
@include message-bubble($blue-1, $white); | ||
margin-left: auto; | ||
overflow-wrap: break-word; | ||
|
||
a { | ||
color: $turqois-1; | ||
|
||
.client { | ||
@include message-bubble($blue-1, $white); | ||
margin-left: auto; | ||
overflow-wrap: break-word; | ||
|
||
a { | ||
color: $turqois-1; | ||
} | ||
} | ||
|
||
.response { | ||
@include message-bubble($grey-2, #000); | ||
overflow-wrap: break-word; | ||
} | ||
|
||
/* For markdown elements created with default styles */ | ||
.message-text { | ||
margin: 0; | ||
} | ||
|
||
.avatar { | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 100%; | ||
margin-right: 10px; | ||
} | ||
} | ||
|
||
.response { | ||
@include message-bubble($grey-2, #000); | ||
overflow-wrap: break-word; | ||
} | ||
|
||
/* For markdown elements created with default styles */ | ||
.message-text { | ||
margin: 0; | ||
} | ||
|
||
.avatar { | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 100%; | ||
margin-right: 10px; | ||
} |
89 changes: 47 additions & 42 deletions
89
...ents/Widget/components/Conversation/components/Messages/components/QuickReply/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,54 @@ | ||
@import "variables.scss"; | ||
@import "common.scss"; | ||
|
||
.replies { | ||
margin: 10px; | ||
display: flex; | ||
flex-wrap: wrap; | ||
overflow: auto; | ||
font-size: 14px; | ||
font-family: $roboto; | ||
} | ||
.conversation-container { | ||
|
||
.reply { | ||
display: -webkit-box; | ||
display: -webkit-flex; | ||
display: -moz-box; | ||
display: -ms-flexbox; | ||
display: flex; | ||
-webkit-flex-align: center; | ||
-ms-flex-align: center; | ||
-webkit-align-items: center; | ||
align-items: center; | ||
border-color: $blue-2; | ||
border-radius: 15px; | ||
border-width: 1px; | ||
color: $blue-2; | ||
border-style: solid; | ||
padding-right: 8px; | ||
padding-left: 8px; | ||
padding-bottom: 4px; | ||
padding-top: 4px; | ||
max-width: 215px; | ||
min-height: 1.7em; | ||
text-align: center; | ||
font-family: $roboto; | ||
cursor: pointer; | ||
margin: 0.25em; | ||
} | ||
.replies { | ||
margin: 10px; | ||
display: flex; | ||
flex-wrap: wrap; | ||
overflow: auto; | ||
font-size: 14px; | ||
font-family: $roboto; | ||
} | ||
|
||
.reply { | ||
display: -webkit-box; | ||
display: -webkit-flex; | ||
display: -moz-box; | ||
display: -ms-flexbox; | ||
display: flex; | ||
-webkit-flex-align: center; | ||
-ms-flex-align: center; | ||
-webkit-align-items: center; | ||
align-items: center; | ||
border-color: $blue-2; | ||
border-radius: 15px; | ||
border-width: 1px; | ||
color: $blue-2; | ||
border-style: solid; | ||
padding-right: 8px; | ||
padding-left: 8px; | ||
padding-bottom: 4px; | ||
padding-top: 4px; | ||
max-width: 215px; | ||
min-height: 1.7em; | ||
text-align: center; | ||
font-family: $roboto; | ||
cursor: pointer; | ||
margin: 0.25em; | ||
} | ||
|
||
.response { | ||
@include message-bubble($grey-2, #000); | ||
} | ||
|
||
.avatar { | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 100%; | ||
margin-right: 10px; | ||
} | ||
|
||
.response { | ||
@include message-bubble($grey-2, #000); | ||
} | ||
|
||
.avatar { | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 100%; | ||
margin-right: 10px; | ||
} |
33 changes: 18 additions & 15 deletions
33
...ponents/Widget/components/Conversation/components/Messages/components/Snippet/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
@import "variables.scss"; | ||
@import "common.scss"; | ||
|
||
.snippet { | ||
@include message-bubble($grey-2, #000); | ||
.conversation-container { | ||
.snippet { | ||
@include message-bubble($grey-2, #000); | ||
} | ||
|
||
.snippet-title { | ||
margin: 0; | ||
} | ||
|
||
.snippet-details { | ||
border-left: 2px solid $green-1; | ||
margin-top: 5px; | ||
padding-left: 10px; | ||
} | ||
|
||
.link { | ||
font-family: $roboto; | ||
} | ||
} | ||
|
||
.snippet-title { | ||
margin: 0; | ||
} | ||
|
||
.snippet-details { | ||
border-left: 2px solid $green-1; | ||
margin-top: 5px; | ||
padding-left: 10px; | ||
} | ||
|
||
.link { | ||
font-family: $roboto; | ||
} |
13 changes: 8 additions & 5 deletions
13
...onents/Widget/components/Conversation/components/Messages/components/VidReply/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
@import "variables.scss"; | ||
@import "common.scss"; | ||
|
||
.videoFrame { | ||
width: 300px; | ||
height: 200px; | ||
margin-top: 10px; | ||
border: none; | ||
.conversation-container { | ||
.videoFrame { | ||
width: 300px; | ||
height: 200px; | ||
margin-top: 10px; | ||
border: none; | ||
} | ||
} | ||
|
74 changes: 39 additions & 35 deletions
74
src/components/Widget/components/Conversation/components/Sender/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,49 @@ | ||
@import "variables.scss"; | ||
|
||
.sender { | ||
align-items: center; | ||
display: flex; | ||
background-color: $grey-2; | ||
height: 45px; | ||
padding: 5px; | ||
} | ||
|
||
.new-message { | ||
font-size: 0.9em; | ||
width: 100%; | ||
border: 0; | ||
background-color: $grey-2; | ||
height: 30px; | ||
padding-left: 15px; | ||
|
||
&:focus { | ||
outline: none; | ||
.conversation-container { | ||
.sender { | ||
align-items: center; | ||
display: flex; | ||
background-color: $grey-2; | ||
height: 45px; | ||
padding: 5px; | ||
} | ||
|
||
.new-message { | ||
font-size: 0.9em; | ||
width: 100%; | ||
border: 0; | ||
background-color: $grey-2; | ||
height: 30px; | ||
padding-left: 15px; | ||
|
||
&:focus { | ||
outline: none; | ||
} | ||
} | ||
|
||
|
||
.send { | ||
background: $grey-2; | ||
border: 0; | ||
|
||
.send-icon { | ||
height: 25px; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 800px) { | ||
.sender { | ||
border-radius: 0; | ||
flex-shrink: 0; | ||
} | ||
} | ||
|
||
} | ||
|
||
.widget-embedded { | ||
.sender { | ||
flex: 0, 0, auto; | ||
height: 60px; | ||
} | ||
} | ||
|
||
.send { | ||
background: $grey-2; | ||
border: 0; | ||
|
||
.send-icon { | ||
height: 25px; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 800px) { | ||
.sender { | ||
border-radius: 0; | ||
flex-shrink: 0; | ||
} | ||
} | ||
} |