generated from openedx/frontend-template-application
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9209182
commit 7da8c9c
Showing
2 changed files
with
18 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
@use '../../utils/variables'; | ||
|
||
.divider { | ||
width: fit-content; | ||
max-width: 70%; | ||
border-radius: 10px; | ||
divider { | ||
display: flex; | ||
flex-direction: row; | ||
font-size: 15px; | ||
|
||
&.user { | ||
background: variables.$dark-green; | ||
color: white; | ||
} | ||
|
||
&.assistant { | ||
background: #F2F0EF; | ||
} | ||
} | ||
|
||
// bootstrap automatically adds a bottom margin of 1rem, | ||
// which we do not need for the chat messages | ||
.message p { | ||
margin-bottom: 0rem; | ||
divider:before, divider:after{ | ||
content: ""; | ||
flex: 1 1; | ||
border-bottom: 1px solid; | ||
margin: auto; | ||
} | ||
|
||
.time { | ||
font-size: 10px; | ||
divider:before { | ||
margin-right: 10px; | ||
margin-left: 10px | ||
} | ||
divider:after { | ||
margin-right: 10px; | ||
margin-left: 10px | ||
} |
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