Skip to content
Snippets Groups Projects
Commit 21c9d9d4 authored by Midhun Suresh's avatar Midhun Suresh
Browse files

Style start button

parent 059b180b
No related branches found
No related tags found
No related merge requests found
#chatterbox { #chatterbox {
position: absolute; position: absolute;
width: 500px;
bottom: 0; bottom: 0;
right: 0; right: 0;
} }
...@@ -18,6 +17,24 @@ todo: this style should actually be in hydrogen-web ...@@ -18,6 +17,24 @@ todo: this style should actually be in hydrogen-web
left: 0; left: 0;
} }
.StartChat {
width: 32px;
height: 32px;
border: none;
margin: 5px;
background: no-repeat center url('./ui/res/chat-bubbles.svg'), #295dbd;
border-radius: 2px;
cursor: pointer;
}
.hydrogen {
background-color: transparent !important;
}
.hydrogen :not(.StartChat) {
background-color: white;
}
body { body {
background-color: #205a634d; background-color: #205a634d;
} }
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.90964 11.5297C9.09231 11.5297 11.6724 8.94865 11.6724 5.76483C11.6724 2.581 9.09231 0 5.90964 0C2.72697 0 0.146904 2.581 0.146904 5.76483C0.146904 6.65678 0.3494 7.50142 0.710912 8.25525L0.0648767 10.3556C-0.171716 11.1248 0.550948 11.8442 1.31906 11.6041L3.39724 10.9544C4.15657 11.323 5.00898 11.5297 5.90964 11.5297Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.03851 12.8449C5.70399 13.1151 6.4314 13.2638 7.19345 13.2638C10.3676 13.2638 13.5 10.6832 13.5 7.49979C13.5 6.63255 13.2676 5.81005 12.8651 5.07227C14.6487 6.05071 15.8583 7.94999 15.8583 10.1326C15.8583 11.0243 15.6564 11.8688 15.2959 12.6224L15.9404 14.7232C16.1765 15.4926 15.4533 16.2114 14.6854 15.9708L12.6155 15.322C11.8585 15.6902 11.0088 15.8966 10.111 15.8966C7.91459 15.8966 6.00594 14.661 5.03851 12.8449Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>
...@@ -23,6 +23,6 @@ export class RootView extends TemplateView<RootViewModel> { ...@@ -23,6 +23,6 @@ export class RootView extends TemplateView<RootViewModel> {
class StartView extends TemplateView<RootViewModel> { class StartView extends TemplateView<RootViewModel> {
render(t: Builder<RootViewModel>, vm: RootViewModel) { render(t: Builder<RootViewModel>, vm: RootViewModel) {
return t.button({ className: "StartChat", onClick: () => vm.start() }, "Start Chat"); return t.button({ className: "StartChat", onClick: () => vm.start() });
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment