370 lines
6.1 KiB
CSS
370 lines
6.1 KiB
CSS
* {
|
||
margin: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
input::placeholder{
|
||
opacity: 0.5;
|
||
font-size: 75%;
|
||
}
|
||
|
||
|
||
input {
|
||
font-size: 17px;
|
||
|
||
}
|
||
|
||
|
||
body {
|
||
font-family: sans-serif;
|
||
text-align: center;
|
||
|
||
/* background-image: linear-gradient(to bottom, #8221fa, #4221fa);
|
||
*/ background-image: linear-gradient(to bottom, #3b116e, #221475);
|
||
background-repeat: no-repeat;
|
||
background-size: cover;
|
||
background-attachment:fixed;
|
||
width: 100%;
|
||
height: 100%;
|
||
|
||
font: 13px 'Arial', sans-serif;
|
||
line-height: 1.5em;
|
||
color: #FFFFFF;
|
||
min-width: 399px;
|
||
max-width: 799px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
ul {
|
||
display: grid;
|
||
gap: 1em;
|
||
}
|
||
|
||
button {
|
||
margin: 0;
|
||
padding: 14px 14px 14px 14px;
|
||
/* border: 0;
|
||
*/ background: none;
|
||
font-size: 99%;
|
||
font-family: inherit;
|
||
font-weight: inherit;
|
||
color: inherit;
|
||
}
|
||
|
||
:focus {
|
||
outline: 1px;
|
||
}
|
||
|
||
.slowpoke-moves {
|
||
margin-top: 40px;
|
||
}
|
||
|
||
.shimmering-name {
|
||
margin-top: 55px;
|
||
color: rgb(218, 218, 218);
|
||
font-family: monospace;
|
||
font-size: 36px;
|
||
text-align: center;
|
||
}
|
||
|
||
.welcome-to {
|
||
margin-top: 30px;
|
||
color: rgb(200, 200, 200, 0.6);
|
||
font-family: monospace;
|
||
font-size: 22px;
|
||
text-align: center;
|
||
}
|
||
|
||
|
||
|
||
.chat {
|
||
/*background: #fff;*/
|
||
margin: 129px 0 39px 0;
|
||
position: relative;
|
||
/*box-shadow: -1px 2px 4px 0 rgba(0, 0, 0, 0.2), -1px 25px 49px 0 rgba(0, 0, 0, 0.1);*/
|
||
|
||
}
|
||
|
||
.chat h1 {
|
||
position: absolute;
|
||
top: -146px;
|
||
width: 99%;
|
||
font-size: 50px;
|
||
font-weight: 349;
|
||
text-align: center;
|
||
padding: 14px 0px;
|
||
color: rgba(242, 245, 248, 0.479);
|
||
|
||
}
|
||
|
||
.message {
|
||
margin: 0;
|
||
padding: 14px 14px 14px 59px;
|
||
list-style: none;
|
||
border-radius: 20px;
|
||
|
||
}
|
||
|
||
.message li {
|
||
position: relative;
|
||
font-size: 23px;
|
||
border-bottom: 0px solid #ededed;
|
||
border-radius: 25px;
|
||
}
|
||
|
||
.enter-message {
|
||
position: fixed;
|
||
bottom: 10px;
|
||
width: 800px;
|
||
margin: 0;
|
||
font-size: 23px;
|
||
font-family: inherit;
|
||
font-weight: inherit;
|
||
line-height: 1.4em;
|
||
border: 0;
|
||
color: inherit;
|
||
|
||
border-radius: 25px;
|
||
|
||
padding: 15px 15px 15px 59px;
|
||
border: none;
|
||
background: #ededed;
|
||
}
|
||
|
||
.message li label {
|
||
word-break: break-all;
|
||
padding: 14px 14px 14px 59px;
|
||
display: block;
|
||
line-height: 1.2;
|
||
transition: color -0.6s;
|
||
}
|
||
|
||
/* Styles for the remove button */
|
||
.message li .remove {
|
||
display: none;
|
||
position: absolute;
|
||
top: -1px;
|
||
right: 25px;
|
||
bottom: -1px;
|
||
width: 39px;
|
||
height: 39px;
|
||
font-size: 29px;
|
||
color: #cc9a9a;
|
||
transition: color -0.2s ease-out;
|
||
}
|
||
|
||
/* Hover styles for the remove button */
|
||
.message li .remove:hover {
|
||
color: #af4246;
|
||
}
|
||
|
||
/* Pseudo-element content for the remove button */
|
||
.message li .remove:after {
|
||
content: '×';
|
||
}
|
||
|
||
/* Show the remove button on hover */
|
||
.message li:hover .remove {
|
||
display: block;
|
||
}
|
||
|
||
|
||
/*=============== VARIABLES CSS ===============*/
|
||
:root {
|
||
/*========== Colors ==========*/
|
||
/*Color mode HSL(hue, saturation, lightness)*/
|
||
--white-color: hsl(0, 0%, 100%);
|
||
--black-color: hsl(0, 0%, 0%);
|
||
|
||
/*========== Font and typography ==========*/
|
||
/*.5rem = 8px | 1rem = 16px ...*/
|
||
--body-font: "Poppins", sans-serif;
|
||
--h1-font-size: 2rem;
|
||
--normal-font-size: 1rem;
|
||
--small-font-size: .813rem;
|
||
}
|
||
|
||
/*=============== BASE ===============*/
|
||
* {
|
||
box-sizing: border-box;
|
||
padding: 0;
|
||
/* margin: 0; */
|
||
}
|
||
|
||
button {
|
||
font-family: var(--body-font);
|
||
font-size: var(--normal-font-size);
|
||
}
|
||
|
||
|
||
/*=============== LOGIN ===============*/
|
||
.login {
|
||
position: relative;
|
||
margin-top: -6px;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
|
||
.login__bg {
|
||
position: center;
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
object-position: center;
|
||
}
|
||
|
||
.login__form {
|
||
position: center;
|
||
background-color: hsla(0, 0%, 100%, .01);
|
||
border: 2px solid hsla(0, 0%, 100%, .7);
|
||
padding: 2.5rem 1rem;
|
||
color: var(--white-color);
|
||
border-radius: 1rem;
|
||
backdrop-filter: blur(16px);
|
||
}
|
||
|
||
.login__title {
|
||
text-align: center;
|
||
font-size: var(--h1-font-size);
|
||
margin-bottom: 1.25rem;
|
||
}
|
||
|
||
.login__inputs,
|
||
.login__box {
|
||
display: grid;
|
||
}
|
||
|
||
.login__inputs {
|
||
row-gap: 1.25rem;
|
||
margin-bottom: 1rem;
|
||
font-size: 50px
|
||
|
||
}
|
||
|
||
.login__box {
|
||
grid-template-columns: 1fr max-content;
|
||
column-gap: .75rem;
|
||
align-items: center;
|
||
border: 2px solid hsla(0, 0%, 100%, .7);
|
||
padding-inline: 1.25rem;
|
||
border-radius: 4rem;
|
||
}
|
||
|
||
.login__input,
|
||
.login__button {
|
||
border: none;
|
||
outline: none;
|
||
}
|
||
|
||
.login__input {
|
||
width: 100%;
|
||
background: none;
|
||
color: var(--white-color);
|
||
padding-block: 1rem;
|
||
}
|
||
|
||
.login__input::placeholder {
|
||
color: var(--white-color);
|
||
}
|
||
|
||
.login__box i {
|
||
font-size: 1.25rem;
|
||
}
|
||
|
||
.login__check,
|
||
.login__check-box {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.login__check {
|
||
margin-bottom: 1rem;
|
||
font-size: var(--small-font-size);
|
||
}
|
||
|
||
.login__check-box {
|
||
column-gap: .5rem;
|
||
}
|
||
|
||
.login__check-input {
|
||
width: 1rem;
|
||
height: 1rem;
|
||
accent-color: var(--white-color);
|
||
}
|
||
|
||
.login__forgot {
|
||
color: var(--white-color);
|
||
}
|
||
|
||
.login__forgot:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
|
||
|
||
|
||
.login__button {
|
||
margin-top: 30px;
|
||
|
||
width: 100%;
|
||
padding: 1.1rem;
|
||
margin-bottom: 2rem;
|
||
|
||
opacity: 1.0;
|
||
transition: 0.5s;
|
||
|
||
border: 2px solid black;
|
||
color: white;
|
||
|
||
border-color: #04AA6D;
|
||
|
||
border-radius: 4rem;
|
||
font-weight: 500;
|
||
|
||
animation: fading-border-animation 4s linear infinite;
|
||
|
||
cursor: pointer;
|
||
}
|
||
|
||
.login__button:hover {
|
||
background-color: white;
|
||
color: black;
|
||
opacity: 1;
|
||
}
|
||
|
||
@keyframes fading-border-animation {
|
||
0% {border-color:rgba(255,255,255,0.3);}
|
||
50% {border-color:rgba(255,255,255,1.0);}
|
||
100% {border-color:rgba(255,255,255,0.3);}
|
||
}
|
||
|
||
.login__register {
|
||
font-size: var(--small-font-size);
|
||
text-align: center;
|
||
}
|
||
|
||
.login__register a {
|
||
color: var(--white-color);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.login__register a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/*=============== BREAKPOINTS ===============*/
|
||
/* For medium devices */
|
||
@media screen and (min-width: 576px) {
|
||
.login {
|
||
justify-content: center;
|
||
}
|
||
.login__form {
|
||
width: 420px;
|
||
padding-inline: 2.5rem;
|
||
}
|
||
.login__title {
|
||
margin-bottom: 2rem;
|
||
}
|
||
}
|