123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- body, html {
- width: 100%;
- height: 100%;
- padding: 0;
- margin: 0;
- /* I like my text the way I like it, ok? */
- font-family: Cantarell, Lato, "Noto Color Emoji", sans-serif;
- /* We need to establish a font-size globally so we can set min-height correctly. TODO: Do we want a preprocessor of some kind? */
- font-size: 1em;
- background-color: var(--bg-color);
- color: var(--text-color);
- /* Don't break the layout */
- word-break: break-word;
- }
- /* Arc Dark */
- input, button {
- background-color: var(--button-bg-color) !important;
- color: var(--button-text-color) !important;
- padding: 0.5em;
- /* Nice rounded corners */
- border-radius: 0.3em;
- border-style: none;
- /* Fix the font -- I don't know why this has to be explicit, but hey! */
- font-family: Cantarell, Lato, "Noto Color Emoji", sans-serif;
- }
- button, input[type=button], input[type=submit] {
- cursor: pointer;
- }
- ::-webkit-scrollbar {
- background-color: var(--scroll-color);
- }
- ::-webkit-scrollbar-thumb {
- background-color: var(--scroll-thumb-color);
- border-radius: 1em;
- }
- a, a:visited {
- color: var(--link-color);
- }
- #app {
- position: absolute;
- display: flex;
- flex-direction: row;
- width: 100%;
- height: 100%;
- }
- #app > .pane {
- width: 100%;
- height: 100%;
- }
- #left-pane {
- min-width: 58px;
- max-width: 250px;
- height: 100%;
- background: var(--bg-accent-color);
- overflow-x: hidden;
- overflow-y: scroll;
- padding: 2px 0;
- box-sizing: border-box;
- }
- #right-pane {
- display: flex;
- flex-direction: column;
- width: 100%;
- height: 100%;
- padding: 4px 20px 4px 20px;
- box-sizing: border-box;
- }
- #left-pane .buttons {
- margin: 5px 5px 10px 5px;
- }
- #left-pane button {
- width: 100%;
- background-color: var(--accent-button-bg-color) !important;
- color: var(--accent-button-text-color) !important;
- }
- .buddy, .chat {
- /* You: "Seriously, Florrie? You need display: flex for THIS?!" */
- display: flex;
- flex-direction: row;
- align-items: center;
- color: inherit;
- text-decoration: none;
- height: 40px;
- padding: 0 8px;
- box-sizing: border-box;
- }
- .buddy:focus:not(.selected), .chat:focus:not(.selected) {
- background-color: var(--chat-switch-color);
- filter: brightness(1.4);
- }
- .buddy.selected, .chat.selected {
- background-color: var(--accent-button-bg-color);
- color: var(--accent-button-text-color);
- }
- .buddy.selected .buddy-name, .chat.selected .chat-name {
- color: var(--select-text-color);
- }
- /* For unselected, unread bolds, typing greens. Unread implies not selected;
- * typing may or may not be selected. Unread but not typing is blued, as per
- * Pidgin conventions */
- .buddy.unread {
- font-weight: 800;
- }
- .buddy.typing:not(.selected) {
- color: var(--buddy-typing-color);
- }
- .buddy.unread:not(.typing) .buddy-name {
- color: var(--buddy-unread-color);
- }
- .buddy-avatar {
- /* min so that it works with flex - otherwise it gets shrunk to the size
- * of the img, which makes the user's name appear offset to be closer to
- * the image. */
- min-width: 30px;
- height: 30px;
- }
- .inner-avatar {
- width: 100%;
- height: 100%;
- }
- .buddy-avatar .inner-avatar {
- max-width: 30px;
- max-height: 30px;
- border-radius: 2px;
- }
- .buddy-name, .chat-name {
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- margin-left: 8px;
- margin-right: 4px;
- white-space: nowrap;
- }
- /* Needs to be overrided explicitly due to a:visited nonsense */
- .buddy:not([data-status-id=offline]) {
- color: var(--text-color) !important;
- }
- .chat {
- color: var(--text-color) !important;
- }
- .buddy[data-status-id=offline] {
- color: var(--text-disabled-color);
- }
- /* Status colors themselves, besdies the grey already specified */
- .status-online, .status-available {
- color: var(--status-online-color);
- }
- .status-away {
- color: var(--status-away-color);
- }
- .status-dnd {
- color: var(--status-dnd-color);
- }
- .buddy[data-status-id=offline] .buddy-avatar .inner-avatar {
- filter: saturate(0);
- opacity: 0.8;
- }
- .group-heading {
- border-bottom: 1px solid var(--border-color);
- padding-left: 4px;
- font-weight: 800;
- margin-top: 4px;
- }
- #message-list-container {
- padding: 10px;
- flex-grow: 1;
- overflow-x: hidden;
- overflow-y: scroll;
- }
- /* Focusing on the message list container is just used to redirect focus to
- * the input text field, since logically these are the same. Accordingly,
- * disable the outline on both
- */
- #message-list-container:focus, input[data-id=input]:focus {
- outline: none;
- }
- #chat-input-area {
- padding: 10px;
- border-top: 1px solid var(--border-color);
- }
- #chat-form {
- display: flex;
- flex-direction: row;
- /* Corresponds to font size + padding */
- min-height: 1.5em;
- }
- #chat-form input {
- height: 100%;
- box-sizing: border-box;
- }
- input[data-id=input] {
- flex-grow: 1;
- margin-right: 5px;
- }
- #typing-indicator {
- margin-top: 4px;
- font-size: 0.7em;
- height: 0.7em;
- opacity: 0.8;
- }
- .message-group {
- padding: 10px 0;
- }
- .message-group:not(:first-child) {
- border-top: 1px solid var(--message-border-color);
- }
- .message-group {
- display: flex;
- flex-direction: row;
- }
- .message-group-avatar .inner-avatar {
- width: 40px;
- height: 40px;
- margin-right: 12px;
- border-radius: 3px;
- }
- .message {
- margin-bottom: 2px;
- }
- .message-author {
- font-weight: 800;
- }
- .message-content {
- white-space: pre-wrap;
- }
- /* DO NOT CHANGE this max-width value without updating the MOBILE_WIDTH JS constant! */
- @media only screen and (max-width: 600px) {
- #app.show-right > #left-pane {
- display: none;
- }
- #app.show-left > #right-pane {
- display: none;
- }
- #left-pane {
- max-width: 100%;
- }
- #room-back {
- display: flex !important;
- }
- }
- #room-info {
- display: flex;
- flex-direction: row;
- flex-shrink: 0;
- overflow-x: hidden;
- padding-bottom: 3px;
- border-bottom: 1px solid var(--border-color);
- }
- #room-name {
- font-size: 1.5em;
- font-weight: bold;
- }
- #room-back {
- flex-shrink: 0;
- display: none;
- align-items: center;
- justify-content: center;
- padding-right: 10px;
- }
- #room-back > img {
- height: 1.75em;
- width: auto;
- flex-shrink: 0;
- }
- /* Modals */
- #modal-screen {
- background-color: var(--modal-bg-color);
- color: var(--modal-text-color);
- }
- #modal-screen:not(.visible) { display: none; }
- /* Login screen is not a modal, but follows the same "center the content" rules. */
- #modal-screen, #login-screen {
- position: absolute;
- width: 100%;
- height: 100%;
- /* Yes, more flex. Seriously, this is the one case where it is MEANT to be useful. */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- #modal-content {
- padding: 20px;
- background-color: var(--modal-bg-color);
- color: var(--modal-text-color);
- border-radius: 5px;
- box-shadow: 0 0 8px black;
- max-width: 600px;
- margin: 10px;
- }
- #modal-content .actions {
- width: 100%;
- display: flex;
- flex-direction: row;
- }
- #modal-content .actions input {
- flex-grow: 1;
- margin: 5px;
- }
- #modal-content input[type=submit] {
- background-color: var(--accent-button-bg-color) !important;
- color: var(--accent-button-text-color);
- }
- /* Login screen! */
- #login-screen {
- background-color: var(--bg-color);
- }
- #login-screen:not(.visible),
- #login-status:not(.visible),
- #login-form:not(.visible) { display: none; }
- #login-content, #login-form {
- text-align: center;
- }
- #login-content h1, #modal-content h1 {
- margin-top: 0;
- margin-bottom: 0.4em;
- }
- #login-content label, #modal-content label {
- display: block;
- margin-bottom: 0.8em;
- }
- #login-content input[type=submit] {
- width: 100%;
- background-color: var(--accent-button-bg-color) !important;
- color: var(--accent-button-text-color) !important;
- }
|