UNPKG

chamesu

Version:

This package contains all packages of the chat application.

140 lines (115 loc) 2.59 kB
/* * Copyright (c) 2022. * Author Peter Placzek (tada5hi) * For the full copyright and license information, * view the LICENSE file that was distributed with this source code. */ .hero-image { /* linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), */ background-image: url("~assets/cover.png"); /* Set a specific height */ height: 250px; /* Position and center the image to scale nicely on all screens */ background-position: center; background-repeat: no-repeat; background-size: cover; position: relative; border-radius: 4px; } /* Place text in the middle of the image */ .hero-text { text-align: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; } .hero { display: flex; flex-direction: column; justify-content: space-between; height: 100vh; padding: 1em; box-sizing: border-box; color: white; background-image: url(https://images.unsplash.com/photo-1500417148159-68083bd7333a); background-repeat: no-repeat; background-position: center center; background-size: cover; } .hero-title { max-width: 16em; margin: 0; font-size: 12vh; font-weight: bold; line-height: .9; } @media only screen and (min-width: 32em) { .hero-title { font-size: 16vh; } } .hero-footer { display: flex; margin-bottom: 1em; } /* Content */ .content-wrapper { display: flex; flex-direction: row; height: 100%; } .content-wrapper > div:first-child { padding-right: 1.5rem; } .content-sidebar { width: 200px; display: flex; flex-shrink: 0; } .content-sidebar .nav { width: 100%; } .content-container { flex-grow: 3; height: 100%; } @media (max-width: 768px) { .content-wrapper { flex-direction: column; } .content-wrapper > div:first-child { padding-right: 0 !important; } .content-sidebar { padding-bottom: 1.5rem; width: 100% !important; } } /* Chat */ .chat-room-list { display: flex; flex-direction: column; } .chat-room-list .list-item { background-color: #ececec; border: 1px solid #dedede; /* box-shadow: 0 4px 25px 0 rgba(0,0,0,.1); */ transition: all .3s ease-in-out; border-radius: 4px; padding: 0.5rem 1rem; display: flex; flex-direction: column; } .chat-room-list .list-content, .chat-room-list .list-footer { display: flex; flex-direction: row; } .chat-room-list .chat-room-list-icon { font-size: 1.5rem; padding-right: 0.5rem; }