thelounge/client/themes/crypto.css
Jérémie Astori d1548572d4
Move the sign out button to the settings and empty local storage on sign out
This change improves privacy/security by ensuring all local storage (which includes settings, etc.) is destroyed on sign out or when revoking a remote session. Because signing out is now more "risky", the button has been moved to the settings along with other existing sessions.

This commit:

- Removes the power/sign-out icon from the sidebar footer (gives additional room for when the admin panel gets added)
- Adds a "Sign out" button next to the current session info in the settings session list
- Renames "Disconnect" buttons into "Revoke" to better clarify the intent (I will admit that I borrowed the wording from Telegram)
- Fixes incorrect `localStorage.remove` method
- Uses Sinon.js to mock wrappers for `window.localStorage` and `window.location` (does not mock those themselves, in the "Do not mock what you do not own" fashion, mock our layer instead). I expect we will be able to test a bit more from the UI with this. A good next candidate will be the `mockLogger` things.
2018-03-20 01:52:22 -04:00

120 lines
1.5 KiB
CSS

/*
Crypto theme for The Lounge.
Installation instructions can be found here
https://thelounge.chat/docs/server/configuration.html#theme
Author: Aynik
GitHub: https://github.com/aynik
*/
body {
background: #000;
font: 16px Consolas, Menlo, Monaco, "Lucida Console", "DejaVu Sans Mono", "Courier New", monospace;
}
a,
#chat a {
color: #00ff0e;
}
a:hover,
#chat a:hover {
color: #3eff48;
}
#windows .window h2,
#windows .window h3 {
color: #666;
}
#windows .window h2 {
border-bottom: none;
}
.container {
margin: 40px auto;
}
#sign-in label {
color: #666;
}
#sign-in label input {
margin-top: 10px !important;
font-size: 14px;
}
.btn {
border-color: #00ff0e;
color: #00ff0e;
}
.btn:disabled,
.btn:hover {
background: #00ff0e;
}
#connection-error {
background: #f00;
}
#settings .opt {
line-height: 20px;
font-size: 12px;
}
#sidebar .chan.lobby {
color: #00ff0e;
}
#sidebar .chan .name::after {
background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}
#sidebar button,
#sidebar .chan,
#chat .time,
#chat .count::before,
#sidebar .empty {
color: #666;
}
#chat .unhandled .from {
color: #ddd;
}
#sidebar .active {
color: #fff;
}
#windows .header .topic,
.messages .msg,
.userlist {
line-height: 1.8;
}
#chat .user {
color: black;
font-weight: bold;
}
#windows #form .input {
font-family: inherit;
font-size: 12px;
}
#windows select.input {
height: 38px;
}
#footer .icon {
color: #666;
}
/* Previews */
#chat .toggle-text {
line-height: initial;
}