Created
March 8, 2023 02:45
-
-
Save verfasor/deaddfb765705cca632ebf97ac56c9bb to your computer and use it in GitHub Desktop.
mwai-ios-dark.css
This file contains hidden or 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
` | |
/* mwai iOS-like chat bubble (dark mode) */ | |
.mwai-conversation { | |
padding: 5px; | |
overflow: hidden !important; | |
} | |
.mwai-chat .mwai-ai code { | |
padding-bottom:20px; | |
font-size:.85rem; | |
font-family:monospace !important; | |
/*scrollbar-color: #666 #343541;*/ | |
} | |
.mwai-name-text { | |
display: none; | |
} | |
.mwai-conversation { | |
display: flex; | |
flex-direction: column; | |
} | |
.mwai-chat .mwai-ai, | |
.mwai-chat .mwai-user { | |
max-width: 265px; | |
word-wrap: break-word; | |
position: relative; | |
&:before, &:after { | |
content: ""; | |
position: absolute !important; | |
bottom: 0; | |
height: 25px; | |
} | |
} | |
.mwai-chat .mwai-ai { | |
align-self: flex-start; | |
} | |
.mwai-chat .mwai-user { | |
align-self: flex-end; | |
} | |
.mwai-chat .mwai-ai { | |
background-color: #333!important; | |
position: relative; | |
border-radius: 20px; | |
padding: 9px 15px !important; | |
margin-top: 15px; | |
margin-bottom: 15px; | |
display: inline-block; | |
} | |
.mwai-chat .mwai-ai::before { | |
content: ""; | |
position: absolute; | |
z-index: 0; | |
bottom: 0; | |
left: -7px; | |
height: 20px; | |
width: 20px; | |
background: #333333; | |
border-bottom-right-radius: 15px; | |
} | |
.mwai-chat .mwai-ai::after { | |
content: ""; | |
position: absolute; | |
z-index: 1; | |
bottom: 0; | |
left: -10px; | |
width: 10px; | |
height: 20px; | |
background: #121212; | |
border-bottom-right-radius: 10px; | |
} | |
.mwai-chat .mwai-user { | |
background: #0B93F6 !important; | |
background-attachment: scroll; | |
background-attachment: fixed; | |
position: relative; | |
border-radius: 20px; | |
padding: 9px 15px !important; | |
margin-top: 15px; | |
margin-bottom: 15px; | |
display: inline-block; | |
} | |
.mwai-chat .mwai-user::before { | |
content: ""; | |
position: absolute; | |
z-index: 0; | |
bottom: 0; | |
right: -8px; | |
height: 20px; | |
width: 20px; | |
background: #0b93f6 !important; | |
background-attachment: scroll; | |
background-attachment: fixed; | |
border-bottom-left-radius: 15px; | |
} | |
.mwai-chat .mwai-user::after { | |
content: ""; | |
position: absolute; | |
z-index: 1; | |
bottom: 0; | |
right: -10px; | |
width: 10px; | |
height: 20px; | |
background: #121212; | |
border-bottom-left-radius: 10px; | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment