Skip to content

Commit

Permalink
Various styling fixes (#719)
Browse files Browse the repository at this point in the history
* Fix “Chat bot conversation start” element styling.

* Fix “typical response type” styling in dark mode.

* Vertically align “conversation info” buttons.

* Prevent content shift on hover in “new conversation list” in dark mode.

* Improve text contrast on message popovers.

* Improve sticker search input styling in dark mode.

* Fix button styling throughout the app.
  • Loading branch information
CvX authored and sindresorhus committed Jan 14, 2019
1 parent cd6f7e1 commit 32b6bce
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
5 changes: 5 additions & 0 deletions browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ body {
-webkit-user-drag: none;
}

/* Vertically align `Conversation Info` buttons */
._fl2 ._30yy {
vertical-align: middle;
}

/* Window wrapper */
._4sp8 {
min-width: 0 !important;
Expand Down
47 changes: 36 additions & 11 deletions dark-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ html.dark-mode ._1n-e {
color: var(--base-fourty);
}

/* Messages list: typical response time */
html.dark-mode ._7blb {
color: var(--base-seventy);
}

/* Messages list: event box (event name) */
html.dark-mode ._618l {
color: var(--base-seventy);
Expand Down Expand Up @@ -214,6 +219,18 @@ html.dark-mode ._jf4 ._jf3 {
color: var(--base-fourty) !important;
}

/* Messages list: start conversation with a chat bot */
html.dark-mode ._2xh0 ._3zc8 {
background-color: transparent;
color: var(--base-fourty);
}

/* Messages list: start conversation with a chat bot buttons */
html.dark-mode ._2xh0 ._2xh4 {
background-color: transparent;
border-color: var(--base-ten);
}

/* Contact list: header above */
html.dark-mode ._36ic {
background: var(--list-header-color) !important;
Expand Down Expand Up @@ -404,12 +421,12 @@ html.dark-mode ._2y8_ {

/* New conversation contact list: popup hr */
html.dark-mode ._5l38 {
border-top: 1px solid var(--base-ten);
border-top: 1px solid var(--base-ten) !important;
}

/* New conversation contact list: popup hover */
html.dark-mode ._1k1p ._5l38 {
border-top: none;
border-top-color: transparent;
}
html.dark-mode ._5l37:active,
html.dark-mode ._1k1p {
Expand Down Expand Up @@ -572,20 +589,33 @@ html.dark-mode ._eb3::before {

/* Sticker dialog: header borders */
html.dark-mode ._5r8e,
html.dark-mode ._5r86 {
html.dark-mode ._5r86,
html.dark-mode ._37wu,
html.dark-mode ._37wv {
border-color: var(--base-five);
}

/* Sticker dialog: search input */
html.dark-mode ._2pgc {
background: var(--base-ten);
border-color: var(--base-ten);
}

/* Record dialog: time */
html.dark-mode ._3z53 {
color: var(--base-seventy);
}

/* Delete popover */
/* Message popover */
html.dark-mode ._hw2 ._53ij {
background-color: var(--base-seventy) !important;
}

/* Message popover text */
html.dark-mode ._hw2 ._53ij ._hw5 {
color: var(--base);
}

/* Login tile and names */
html.dark-mode ._5hy4,
html.dark-mode ._3403 {
Expand All @@ -599,8 +629,8 @@ html.dark-mode ._55r1._5f0v._43di {
}

/* Login button */
html.dark-mode button:not(._5upp) {
background: var(--container-color) !important;
html.dark-mode ._5hy2 ._43dh {
background-color: transparent !important;
}

/* Fix the Sticker and Gaming buttons */
Expand Down Expand Up @@ -735,11 +765,6 @@ html.os-darwin.dark-mode ._36ic {
background: transparent !important;
}

/* Login button */
html.os-darwin.dark-mode button {
background: transparent !important;
}

/* Message container + right sidebar (dark mode) */
html.os-darwin.dark-mode ._4_j4,
html.os-darwin.dark-mode ._4_j5 {
Expand Down
10 changes: 10 additions & 0 deletions vibrancy.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ html.vibrancy ._kmc ._1p1t {
-webkit-text-fill-color: #999 !important;
}

/* Messages list: start conversation with a chat bot */
html.vibrancy ._2xh0 ._3zc8 {
background-color: transparent;
}

/* Messages list: start conversation with a chat bot buttons */
html.vibrancy ._2xh0 ._2xh4 {
background-color: transparent;
}

/* Contact list: search input */
html.vibrancy ._5iwm ._58al {
background-color: rgba(246, 247, 249, 0.5) !important;
Expand Down

0 comments on commit 32b6bce

Please sign in to comment.