jbang/html-chat/style.css (126 lines of code) (raw):

/* style.css */ body { background-color: #90EE90; margin: 0; padding: 0; font-family: Arial, sans-serif; } .container { /*max-width: 400px;*/ margin: 50px auto; padding: 20px; background-color: white; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .logo { text-align: center; font-size: 24px; font-weight: bold; margin-bottom: 20px; color: #008000; } .form { display: flex; flex-direction: column; align-items: center; } .input-container { display: flex; justify-content: space-between; width: 100%; } .input,.button { margin: 20px auto; /*border: 1px solid #ccc;*/ border-radius: 5px; padding: 10px; padding-right: 10px; margin-bottom: 10px; /*vertical-align: middle;*/ width: 80%; } .button { background-color: #008000; color: white; border: none; margin-left: 10px; width: 20%; /* border-radius: 5px; padding: 10px; width: 20%; cursor: pointer; margin: 20px; */ /*vertical-align: middle;*/ } .messageArea { margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 10px; height: 200px; overflow-y: scroll; } .message { margin-bottom: 5px; } .username { font-weight: bold; color: #008000; } /** * ============================================== * Dot Pulse * ============================================== */ .dot-pulse { position: relative; /* padding: 10px; */ left: -9999px; width: 10px; height: 10px; border-radius: 5px; background-color: #008000; color: #008000; box-shadow: 9999px 0 0 -5px; animation: dot-pulse 1.5s infinite linear; animation-delay: 0.25s; } .dot-pulse::before, .dot-pulse::after { content: ""; display: inline-block; position: absolute; top: 0; width: 10px; height: 10px; border-radius: 5px; background-color: #008000; color: #008000; } .dot-pulse::before { box-shadow: 9984px 0 0 -5px; animation: dot-pulse-before 1.5s infinite linear; animation-delay: 0s; } .dot-pulse::after { box-shadow: 10014px 0 0 -5px; animation: dot-pulse-after 1.5s infinite linear; animation-delay: 0.5s; } @keyframes dot-pulse-before { 0% { box-shadow: 9984px 0 0 -5px; } 30% { box-shadow: 9984px 0 0 2px; } 60%, 100% { box-shadow: 9984px 0 0 -5px; } } @keyframes dot-pulse { 0% { box-shadow: 9999px 0 0 -5px; } 30% { box-shadow: 9999px 0 0 2px; } 60%, 100% { box-shadow: 9999px 0 0 -5px; } } @keyframes dot-pulse-after { 0% { box-shadow: 10014px 0 0 -5px; } 30% { box-shadow: 10014px 0 0 2px; } 60%, 100% { box-shadow: 10014px 0 0 -5px; } }