forked from noxious/client
Convert chat to tailwind
This commit is contained in:
parent
5dd8664c34
commit
5e9814fe92
@ -1,43 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="chat-wrapper">
|
<div class="chat-wrapper w-full h-full flex justify-start items-center">
|
||||||
<input placeholder="Type something..." />
|
<input class="max-w-[750px] w-full h-[51px] rounded-lg text-xl px-[24px] py-0 bg-white bg-opacity-85 border-2 border-solid border-white text-gray-200 bg-[url('/assets/icons/submit-icon.svg')] bg-no-repeat bg-30px" placeholder="Type something..." />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts"></script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '@/assets/scss/main';
|
|
||||||
|
|
||||||
.chat-wrapper {
|
.chat-wrapper {
|
||||||
width: 100%;
|
|
||||||
height: 100px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-start;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
input {
|
input {
|
||||||
max-width: 750px;
|
// @TODO: find Tailwind alternative as calc() doesnt work
|
||||||
width: 100%;
|
|
||||||
height: 51px;
|
|
||||||
border-radius: 8px;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
padding: 0 24px;
|
|
||||||
background-color: rgba($white, 0.85);
|
|
||||||
border: 2px solid $white;
|
|
||||||
color: $gray-2;
|
|
||||||
background-image: url('/assets/icons/submit-icon.svg');
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: 30px;
|
|
||||||
background-position: calc(100% - 25px) center;
|
background-position: calc(100% - 25px) center;
|
||||||
|
|
||||||
&::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
left: 500px;
|
|
||||||
width: 30px;
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user