cd /news/developer-tools/app-css Β· home β€Ί topics β€Ί developer-tools β€Ί article
[ARTICLE Β· art-9418] src=gist.github.com β†— pub= topic=developer-tools verified=true sentiment=Β· neutral

App.css

The article titled "App.css" contains CSS code that defines the visual styling for a chat application interface. It includes styles for chat lists, message containers, buttons, input fields, and user avatars, using a purple and gray color scheme with specific fonts and rounded borders. The code also customizes elements like the active chat card, settings panel, and message feed layout.

read3 min views27 publishedJan 29, 2021

App.css

  This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.

Learn more about bidirectional Unicode characters

Show hidden characters
/* CHAT STYLES */

* {

    font-family: Avenir, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,

      Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji,

      Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;

    letter-spacing: 0.5px;

  }

 

  .ce-chat-list {

    background-color: rgb(240, 240, 240) !important;

  }

 

  .ce-chats-container {

    background-color: rgb(240, 240, 240) !important;

  }

 

  .ce-active-chat-card {

    background-color: #cabcdc !important;

    border: 4px solid #cabcdc !important;

    border-radius: 0px !important;

  }

 

  .ce-chat-subtitle-text {

    color: #595959 !important;

  }

 

  .ce-chat-form-container {

    padding-bottom: 20px !important;

  }

 

  .ce-text-input {

    border-radius: 6px !important;

    border: 1px solid #3b2a50 !important;

  }

 

  .ce-primary-button {

    border-radius: 6px !important;

    background-color: #7554a0 !important;

    position: relative;

    bottom: 1px;

  }

 

  .ce-danger-button {

    background-color: white !important;

    border-radius: 22px !important;

  }

 

  .ce-settings {

    background-color: rgb(240, 240, 240) !important;

  }

 

  .ce-autocomplete-input {

    border-radius: 6px !important;

    border: 1px solid #3b2a50 !important;

  }

 

  .ce-autocomplete-options {

    border-radius: 6px !important;

    border: 1px solid #3b2a50 !important;

    background-color: white !important;

  }

 

  .ce-chat-settings-container {

    padding-top: 12px !important;

  }

 

  .ce-chat-avatars-row {

    display: none !important;

  }

 

  /* CUSTOM FEED */

 

  .chat-feed {

    height: 100%;

    width: 100%;

    overflow: scroll;

    background-color: rgb(240, 240, 240);

  }

 

  .chat-title-container {

    width: calc(100% - 36px);

    padding: 18px;

    text-align: center;

  }

 

  .chat-title {

    color: #7554a0;

    font-weight: 800;

    font-size: 24px;

  }

 

  .chat-subtitle {

    color: #7554a0;

    font-weight: 600;

    font-size: 12px;

    padding-top: 4px;

  }

 

  .message-row {

    float: left;

    width: 100%;

    display: flex;

    margin-left: 18px;

  }

 

  .message-block {

    width: 100%;

    display: inline-block;

  }

 

  .message-avatar {

    width: 44px;

    height: 44px;

    border-radius: 22px;

    color: white;

    text-align: center;

    background-repeat: no-repeat;

    background-position: center;

    background-size: 48px;

  }

.message {

    padding: 12px;

    font-size: 16px;

    border-radius: 6px;

    max-width: 60%;

  }

 

  .message-image {

    margin-right: 18px;

    object-fit: cover;

    border-radius: 6px;

    height: 30vw;

    /* width: 30vw; */

    max-height: 200px;

    max-width: 200px;

    min-height: 100px;

    min-width: 100px;

  }

 

  .read-receipts {

    position: relative;

    bottom: 6px;

  }

 

  .read-receipt {

    width: 13px;

    height: 13px;

    border-radius: 13px;

    margin: 1.5px;

    background-repeat: no-repeat;

    background-position: center;

    background-size: 14px;

  }

 

  .message-form-container {

    position: absolute;

    bottom: 0px;

    width: calc(100% - 36px);

    padding: 18px;

    background-color: rgb(240, 240, 240);

  }

 

  .message-form {

    overflow: hidden;

    border-radius: 6px;

    border: 1px solid #3b2a50;

    background-color: white;

  }

 

  .message-input {

    height: 40px;

    width: calc(100% - 132px);

    background-color: white;

    border: 1px solid white;

    padding: 0px 18px;

    outline: none;

    font-size: 15px;

  }

 

  .image-button {

    cursor: pointer;

    padding: 0px 12px;

    height: 100%;

  }

 

  .send-button {

    height: 42px;

    background-color: white;

    border: 1px solid white;

    padding: 0px 18px;

    cursor: pointer;

  }

 

  .send-icon {

    top: 1px;

    position: relative;

    transform: rotate(-90deg);

  }

 

  .picture-icon {

    top: 1px;

    position: relative;

    font-size: 14px;

  }

 

  /* FORM STYLES */

*,

  *::after,

  *::before {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-size: 62,5%;

  }

.wrapper {

    height: 100vh;

      width: 100%;

    background: rgb(117,84,160);

    background: linear-gradient(90deg, rgba(117,84,160,1) 7%, rgba(117,84,160,1) 17%, rgba(106,95,168,1) 29%, rgba(99,103,174,1) 44%, rgba(87,116,184,1) 66%, rgba(70,135,198,1) 83%, rgba(44,163,219,1) 96%, rgba(22,188,237,1) 100%, rgba(0,212,255,1) 100%);  

    display: flex;

    justify-content: center;

    align-items: center;

  }

.input {

    color: #333;

    font-size: 1.2rem;

      margin: 0 auto;

    padding: 1.5rem 2rem;

    border-radius: 0.2rem;

    background-color: rgb(255, 255, 255);

    border: none;

    width: 90%;

    display: block;

    border-bottom: 0.3rem solid transparent;

    transition: all 0.3s;

    outline: none;

    margin-bottom: 25px;

  }

.form {

    width: 400px;

  }

.title {

    text-align: center;

    color: white;

    margin-bottom: 30px;

    width: 100%;

    font-size: 2.3em;;

  }

.button {

    border-radius: 4px;

    border: none;

    background-color: white;

    color: black;

    text-align: center;

    text-transform: uppercase;

    font-size: 22px;

    padding: 20px;

    width: 200px;

    transition: all 0.4s;

    cursor: pointer;

    margin: 5px;

    width: 90%;

  }

.button span {

    cursor: pointer;

    display: inline-block;

    position: relative;

    transition: 0.4s;

  }

  .button span:after {

    content: '\00bb';

    position: absolute;

    opacity: 0;

    top: 0;

    right: -20px;

    transition: 0.5s;

  }

  .button:hover span {

    padding-right: 25px;

  }

  .button:hover span:after {

    opacity: 1;

    right: 0;

  }

.error {

    color: white;

    text-align: center;

    margin-top: 20px;

  }
── more in #developer-tools 4 stories Β· sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/app-css] indexed:0 read:3min 2021-01-29 Β· β€”