-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Showing
8 changed files
with
513 additions
and
408 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.chat { | ||
&-bubble { | ||
@apply rounded-box; | ||
min-height: 2.75rem; | ||
min-width: 2.75rem; | ||
|
||
/* default */ | ||
& { | ||
@apply bg-neutral text-neutral-content; | ||
} | ||
|
||
/* brand colors */ | ||
&-primary { | ||
@apply bg-primary text-primary-content; | ||
} | ||
&-secondary { | ||
@apply bg-secondary text-secondary-content; | ||
} | ||
&-accent { | ||
@apply bg-accent text-accent-content; | ||
} | ||
|
||
/* state colors */ | ||
&-info { | ||
@apply bg-info text-info-content; | ||
} | ||
&-success { | ||
@apply bg-success text-success-content; | ||
} | ||
&-warning { | ||
@apply bg-warning text-warning-content; | ||
} | ||
&-error { | ||
@apply bg-error text-error-content; | ||
} | ||
} | ||
|
||
&-start .chat-bubble { | ||
@apply rounded-bl-none; | ||
&:before { | ||
left: -0.75rem; | ||
} | ||
} | ||
|
||
&-end .chat-bubble { | ||
@apply rounded-br-none; | ||
&:before { | ||
left: 100%; | ||
} | ||
} | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.chat { | ||
@apply grid grid-cols-2 gap-x-3 py-1; | ||
&-image { | ||
@apply self-end row-span-2; | ||
} | ||
&-header { | ||
@apply text-sm row-start-1; | ||
} | ||
&-footer { | ||
@apply text-sm row-start-3; | ||
} | ||
&-bubble { | ||
@apply block w-fit px-4 py-2 relative; | ||
max-width: 90%; | ||
&:before { | ||
@apply w-3 h-3 absolute bottom-0; | ||
background-color: inherit; | ||
content: ""; | ||
mask-size: contain; | ||
mask-repeat: no-repeat; | ||
mask-position: center; | ||
} | ||
} | ||
&-start { | ||
@apply place-items-start; | ||
grid-template-columns: auto 1fr; | ||
.chat-header { | ||
@apply col-start-2; | ||
} | ||
.chat-footer { | ||
@apply col-start-2; | ||
} | ||
.chat-image { | ||
@apply col-start-1; | ||
} | ||
.chat-bubble { | ||
@apply col-start-2; | ||
&:before { | ||
mask-image: url("data:image/svg+xml,%3csvg width='3' height='3' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m 0 3 L 3 3 L 3 0 C 3 1 1 3 0 3'/%3e%3c/svg%3e"); | ||
} | ||
} | ||
} | ||
&-end { | ||
@apply place-items-end; | ||
grid-template-columns: 1fr auto; | ||
.chat-header { | ||
@apply col-start-1; | ||
} | ||
.chat-footer { | ||
@apply col-start-1; | ||
} | ||
.chat-image { | ||
@apply col-start-2; | ||
} | ||
.chat-bubble { | ||
@apply col-start-1; | ||
&:before { | ||
mask-image: url("data:image/svg+xml,%3csvg width='3' height='3' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m 0 3 L 1 3 L 3 3 C 2 3 0 1 0 0'/%3e%3c/svg%3e"); | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.