Merge branch 'main' of github.com:craftzdog/chat-bubbles-for-yt

This commit is contained in:
Takuya Matsuyama 2023-02-27 09:25:26 +09:00
commit a71e89dae9
3 changed files with 25 additions and 25 deletions

View file

@ -15,7 +15,7 @@
} }
.bubble.input > div { .bubble.input > div {
background-color: #eee; background-color: var(--bubble-background-color);
font-size: 32px; font-size: 32px;
min-width: 30px; min-width: 30px;
} }

View file

@ -1,19 +1,17 @@
.bubble { .bubble {
width: 100%; width: 100%;
color: var(--bubble-color);
} }
.bubble-content { .bubble-content {
max-width: 600px; background-color: var(--bubble-background-color);
display: inline-block;
border-radius: 30px; border-radius: 30px;
padding: 12px 20px; display: inline-block;
margin-top: 5px;
margin-bottom: 5px; margin-bottom: 5px;
}
.bubble-content {
margin-right: 25%; margin-right: 25%;
background-color: #eee; margin-top: 5px;
max-width: 600px;
padding: 12px 20px;
position: relative; position: relative;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
@ -27,19 +25,19 @@
left: -12px; left: -12px;
height: 26px; height: 26px;
width: 30px; width: 30px;
background: #eee; background: var(--bubble-background-color);
border-bottom-right-radius: 20px; border-bottom-right-radius: 20px;
} }
.bubble:last-child .bubble-content:after, .bubble:last-child .bubble-content:after,
.bubble:nth-last-child(2) .bubble-content:after { .bubble:nth-last-child(2) .bubble-content:after {
content: ''; background: var(--background-color);
position: absolute;
z-index: 1;
bottom: 0;
left: -15px;
width: 15px;
height: 27px;
background: #00a000;
border-bottom-right-radius: 15px; border-bottom-right-radius: 15px;
bottom: 0;
content: '';
height: 27px;
left: -15px;
position: absolute;
width: 15px;
z-index: 1;
} }

View file

@ -1,8 +1,15 @@
:root{
--bubble-background-color: #eee;
--bubble-color: #000;
--background-color: #00a000
}
html, html,
body, body,
#root { #root {
width: 100%; width: 100vw;
height: 100%; height: 100vh;
} }
body { body {
@ -14,8 +21,3 @@ body {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
background-color: black; background-color: black;
} }
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}