metasocket-cordova/src/global.scss

470 lines
7.8 KiB
SCSS

@keyframes error-message-entrance {
from { top: -1000px}
to { top: 0}
}
@keyframes fullscreen-notification-entrance {
from { background-color: rgba(0, 0, 0, 0) }
to { background-color: rgba(0, 0, 0, 0.5) }
}
@keyframes sidebar-background-exit {
from { background-color: rgba(0, 0, 0, 0.5) }
to { background-color: rgba(0, 0, 0, 0) }
}
@keyframes chat-swipe-in {
from {left: -100%}
to {left: 0}
}
@keyframes chat-swipe-out {
from {left: 0}
to {left: -100%}
}
@keyframes sidebar-swipe-in {
from {right: -350px}
to {right: 0}
}
@keyframes sidebar-swipe-out {
from {right: 0}
to {right: -350px}
}
@keyframes fullscreen-notification-window-entrance {
from { transform: scale(0)}
}
@keyframes progress {
0% {opacity: 0}
50% {opacity: 1.0}
100% {opacity: 0}
}
* {
box-sizing: border-box;
font-family: sans-serif;
outline: none;
}
html, body {
background-color: #251a25;
}
#chat, #chat-swiped-in, #chat-swiped-out {
background: rgb(27, 47, 114) url("assets/graphics/bg_responsive.jpg") repeat;
margin: 0;
font-size: 16px;
font-family: sans-serif;
position: fixed;
top: 0;
left: 0;
right: 300px;
bottom: 0;
color: white;
}
#chat-post-area {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 50px;
overflow-x: hidden;
box-sizing: border-box;
padding-bottom: 20px;
}
#chat-type-area {
position: absolute;
height: 50px;
background-color: #cccccc;
left: 0;
right: 0;
bottom: 0;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
}
#textarea-container {
position: absolute;
left: 0;
top: 0;
right: 50px;
bottom: 0;
height: 100%;
}
#chat-textarea {
width: 100%;
height: 100%;
background-color: #333333;
font-family: sans-serif;
font-size: 16px;
color: white;
border: 2px grey solid;
border-bottom: 2px solid white;
border-right: 2px solid white;
box-sizing: border-box;
padding: 5px;
resize: none;
outline: none;
overflow: hidden;
}
.chat-post {
background-color: rgba(37, 26, 37, 0.9);
border-radius: 0 20px 20px 0;
margin-right: 20px;
margin-left: 0;
margin-top: 10px;
margin-bottom: 10px;
padding: 20px;
overflow: hidden;
}
.chat-own-post {
border-radius: 20px 0 0 20px;
margin-left: 20px;
margin-right: 0;
padding: 20px 0 20px 20px;
background-color: rgba(26, 37, 26, 0.9);
}
.chat-avatar {
width: 64px;
height: 64px;
border-radius: 32px;
margin-right: 20px;
float: left;
}
.chat-own-post > .chat-avatar {
margin-left: 20px;
float: right;
}
.chat-username {
font-weight: bold;
}
.chat-post-message {
margin-top: 10px;
overflow: hidden;
}
.chat-datetime {
font-style: italic;
color: grey;
margin-top: 10px;
}
#login {
display: flex;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgb(37, 26, 37);
align-items: center;
}
#login-form {
max-width: 500px;
margin: auto;
text-align: center;
padding: 20px;
}
#login-form label {
display: block;
color: white;
font-weight: bold;
margin-bottom: 20px;
}
#login-form input {
display: block;
background-color: transparent;
border: solid 1px white;
color: white;
border-radius: 5px;
font-size: 18px;
width: 100%;
padding: 5px;
}
#login-form input[type=submit] {
margin-top: 50px;
background-color: white;
color: #2a2a2a;
font-weight: bold;
}
.submit-progress {
animation-name: progress;
animation-duration: 2s;
animation-iteration-count: infinite;
}
.app-version {
color: white;
margin-top: 50px;
}
.error-message {
background-color: #550000;
border: solid 1px red;
color: white;
padding: 5px;
margin-bottom: 30px;
}
#metasocket-banner {
width: 100%;
margin-bottom: 50px;
}
#metasocket-logo {
height: 100%;
}
#topbar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 40px;
background-color: #888888;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
padding: 5px;
display: inline-flex;
justify-content: space-between;
}
#logout-button {
width: 70px;
text-align: center;
}
#error-message {
position: absolute;
top: 0;
background-color: #550000;
color: white;
left: 0;
right: 0;
padding: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
animation-name: error-message-entrance;
animation-duration: 1s;
display: none;
z-index: 10;
}
.message-cite {
padding: 5px;
background-color: green;
border-left: 8px solid #005500;
font-style: italic;
margin: 5px 0;
}
.message-cite-username {
font-style: italic;
font-weight: bold;
}
#button-send {
position: absolute;
right: 0;
width: 50px;
height: 50px;
top: 0;
background-image: url("assets/graphics/button_send.svg");
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
border-radius: 0;
border: 2px solid white;
border-bottom: 2px solid grey;
border-right: 2px solid grey;
}
.button-send-online {
background-color: green;
}
.button-send-offline {
background-color: #550000;
}
.notification {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
color: white;
animation-name: fullscreen-notification-entrance;
animation-duration: 0.5s;
}
.notification-window {
background-color: #251a25;
padding: 20px;
margin: 20px;
box-shadow: 0 0 20px black;
animation-name: fullscreen-notification-window-entrance;
animation-duration: 0.5s;
}
.notification-window-error {
background-color: #bb0000;
}
.notification-button-area {
display: flex;
justify-content: space-around;
margin-top: 30px;
}
.notification-button {
background-color: white;
color: #251a25;
font-weight: bold;
padding: 5px 20px;
border: none;
border-radius: 0;
cursor: pointer;
}
input[type="checkbox"] {
border: solid 1px white !important;
border-radius: 0 !important;
}
a.notification-button {
text-decoration: none;
}
.notification-headline {
margin-top: 5px;
}
#sidebar, #sidebar-swiped-in, #sidebar-swiped-out {
position: fixed;
width: 300px;
top: 0;
right: 0;
bottom: 0;
background-color: #cccccc;
border: 2px grey solid;
border-top: 2px solid white;
border-left: 2px solid white;
padding: 20px;
}
#sidebar-background {
display: none;
}
#userlist {
width: 100%;
height: 100%;
flex-flow: column wrap;
border: 2px grey solid;
border-bottom: 2px solid white;
border-right: 2px solid white;
background-color: rgb(26, 37, 26);
color: white;
overflow: auto;
}
.user {
display: block;
margin: 10px;
}
.userlist-element {
display: table-cell;
vertical-align: middle;
}
.userlist-avatar {
width: 48px;
height: 48px;
border-radius: 24px;
}
@media only screen and (max-height: 500px) {
#login {
position: static;
display: block;
}
}
@media only screen and (max-width: 800px) {
#sidebar, #sidebar-swiped-in, #sidebar-swiped-out {
max-width: 100%;
height: 100%;
right: -350px;
animation-duration: 0.5s;
box-shadow: 0 0 20px black;
}
#sidebar-swiped-in {
right: 0;
animation-name: sidebar-swipe-in;
}
#sidebar-swiped-out {
animation-name: sidebar-swipe-out
}
#sidebar-background, #sidebar-background-visible {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
}
#sidebar-background-visible {
display: block;
animation-name: fullscreen-notification-entrance;
animation-duration: 0.5s;
}
.sidebar-fadeout {
animation-name: sidebar-background-exit !important;
animation-duration: 0.5s;
}
#chat, #chat-swiped-in, #chat-swiped-out {
width: 100%;
top: 0;
bottom: 0;
right: 0;
animation-duration: 0.5s;
}
#chat-swiped-in {
animation-name: chat-swipe-in;
}
#chat-swiped-out {
overflow: hidden;
animation-name: chat-swipe-out;
left: -100%;
}
}