fix(bsky): a few selectors; wip (#1964)
* fix(bsky): a few selectors; wip unfinished as im low on time rn Signed-off-by: rooot <[email protected]> * fix(bsky): more updated colors; start adding internal color names to comments Signed-off-by: rooot <[email protected]> * fix(bsky): a bunch of latte fixes Signed-off-by: rooot <[email protected]> * fix(bsky): post length indicator, make blue buttons accent Signed-off-by: rooot <[email protected]> * fix(bsky): jump to top button Signed-off-by: rooot <[email protected]> * fix(bsky): lint Signed-off-by: rooot <[email protected]> --------- Signed-off-by: rooot <[email protected]>
This commit is contained in:
1 parent
67427151f2
commit
74c1e1a140
1 file changed
+96
-84
@@ -62,10 +62,9 @@
|
||||
color: if(@flavor = latte, @text, @crust) !important;
|
||||
}
|
||||
|
||||
/* secondary text */
|
||||
[style*="rgb(169, 183, 197)"],
|
||||
[style*="rgb(140, 158, 178)"], /* no longer used? */
|
||||
[style*="rgb(147, 165, 183)"],
|
||||
/* secondary text [contrast_700] */
|
||||
[style*="rgb(165, 178, 197)"], // dark
|
||||
[style*="rgb(171, 184, 201)"], // dim
|
||||
[style*="rgb(84, 110, 138)"],
|
||||
[style*="rgb(66, 87, 108)"] {
|
||||
color: @subtext1 !important;
|
||||
@@ -82,22 +81,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* generic blue inline (e.g. link text, etc) */
|
||||
[style*="color: rgb(16, 131, 254)"], // dark
|
||||
[style*="color: rgb(32, 139, 254)"] // dim
|
||||
/* generic blue inline (e.g. link text, etc) [primary_500] */
|
||||
[style*="color: rgb(0, 106, 255)"], // dark
|
||||
[style*="color: rgb(15, 115, 255)"] // dim
|
||||
{
|
||||
color: @accent !important;
|
||||
}
|
||||
/* generic blue inline underline (links) */
|
||||
[style*="text-decoration-color: rgb(16, 131, 254)"], // dark
|
||||
[style*="text-decoration-color: rgb(32, 139, 254)"] // dim
|
||||
/* generic blue inline underline (links) [primary_500] */
|
||||
[style*="text-decoration-color: rgb(0, 106, 255)"], // dark
|
||||
[style*="text-decoration-color: rgb(15, 115, 255)"] // dim
|
||||
{
|
||||
text-decoration-color: @accent !important;
|
||||
}
|
||||
|
||||
/* generic blue inline bg color (e.g. notification count) */
|
||||
[style*="background-color: rgb(16, 131, 254)"], // dark
|
||||
[style*="background-color: rgb(32, 139, 254)"] // dim
|
||||
/* generic blue inline bg color (e.g. notification count) [primary_500] */
|
||||
[style*="background-color: rgb(0, 106, 255)"], // dark
|
||||
[style*="background-color: rgb(15, 115, 255)"] // dim
|
||||
{
|
||||
background-color: @accent !important;
|
||||
|
||||
@@ -120,18 +119,6 @@
|
||||
background-color: fade(@accent, 30%) !important;
|
||||
}
|
||||
|
||||
/* blue svg inline */
|
||||
[stroke="hsl(211, 99%, 53%)"],
|
||||
[stroke="#0085ff"] {
|
||||
stroke: @accent;
|
||||
}
|
||||
|
||||
[fill="hsl(211, 99%, 53%)"],
|
||||
[fill="hsl(211, 99%, 56%)"],
|
||||
[fill="#0085ff"] {
|
||||
fill: @accent;
|
||||
}
|
||||
|
||||
/* a lot of blue things (buttons etc) */
|
||||
.r-wzwllv,
|
||||
div[style*="background-color: rgb(0, 133, 255)"] {
|
||||
@@ -159,8 +146,10 @@
|
||||
color: @red !important;
|
||||
}
|
||||
|
||||
/* red button text (delete my account) */
|
||||
[style*="color: rgb(251, 162, 178)"] {
|
||||
/* red button text (delete my account) [negative_500] */
|
||||
[style*="color: rgb(233, 22, 70)"], // dark
|
||||
[style*="color: rgb(235, 36, 82)"] // dim
|
||||
{
|
||||
color: @red !important;
|
||||
}
|
||||
|
||||
@@ -193,7 +182,8 @@
|
||||
/* generic background color */
|
||||
[style*="background-color: rgb(255, 255, 255)"],
|
||||
[style*="background-color: rgb(0, 0, 0)"],
|
||||
[style*="background-color: rgb(22, 30, 39)"] {
|
||||
[style*="background-color: rgb(21, 29, 40)"] // dim
|
||||
{
|
||||
background-color: @base !important;
|
||||
|
||||
& when (@flavor = latte) {
|
||||
@@ -204,16 +194,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* secondary background color */
|
||||
[style*="background-color: rgb(20, 25, 31)"], /* dark? */
|
||||
[style*="background-color: rgb(20, 27, 35)"], /* dark */
|
||||
[style*="background-color: rgb(30, 41, 54)"] /* dim */ {
|
||||
/* secondary background color + sidebar button hover [contrast_25] */
|
||||
[style*="background-color: rgb(17, 24, 34)"], // dark
|
||||
[style*="background-color: rgb(28, 39, 54)"] // dim
|
||||
{
|
||||
background-color: @mantle !important;
|
||||
}
|
||||
|
||||
/* secondary background color when active (e.g. search bar, hovering some buttons like cancel) */
|
||||
[style*="background-color: rgb(28, 39, 50)"], // dark
|
||||
[style*="background-color: rgb(38, 53, 68)"] // dim
|
||||
/* secondary background color (when active?) (e.g. search bar, hovering some buttons like cancel) */
|
||||
[style*="background-color: rgb(25, 34, 46)"], // dark
|
||||
[style*="background-color: rgb(34, 46, 63)"] // dim
|
||||
{
|
||||
background-color: @crust !important;
|
||||
}
|
||||
@@ -229,10 +219,10 @@
|
||||
}
|
||||
|
||||
/* wide site: new post button (w text) */
|
||||
button[style*="background-color: rgb(16, 131, 254)"], // dark
|
||||
button[style*="background-color: rgb(52, 150, 254)"], // dark (hover)
|
||||
button[style*="background-color: rgb(32, 139, 254)"], // dim
|
||||
button[style*="background-color: rgb(76, 162, 254)"] // dim (hover)
|
||||
button[style*="background-color: rgb(0, 106, 255)"], // dark
|
||||
button[style*="background-color: rgb(66, 145, 255)"], // dark (hover)
|
||||
button[style*="background-color: rgb(15, 115, 255)"], // dim
|
||||
button[style*="background-color: rgb(77, 151, 255)"] // dim (hover)
|
||||
{
|
||||
background-color: @accent !important;
|
||||
&:hover {
|
||||
@@ -253,7 +243,7 @@
|
||||
}
|
||||
|
||||
/* fix selected tab bottom border issue caused by selector above */
|
||||
.css-175oi2r[style*="border-bottom-color: rgb(16, 131, 254)"] {
|
||||
.css-175oi2r[style*="border-bottom-color: rgb(0, 106, 255)"] {
|
||||
border-bottom-color: @accent !important;
|
||||
}
|
||||
|
||||
@@ -348,8 +338,10 @@
|
||||
background-color: @red !important;
|
||||
}
|
||||
|
||||
/* Discard draft modal border */
|
||||
[style*="border-color: rgb(54, 75, 97)"] {
|
||||
/* Discard draft modal border, bunch of other borders around the app [contrast_100] */
|
||||
[style*="border-color: rgb(35, 46, 62)"], // dark
|
||||
[style*="border-color: rgb(44, 58, 78)"] // dim
|
||||
{
|
||||
border-color: @surface2 !important;
|
||||
}
|
||||
|
||||
@@ -365,8 +357,10 @@
|
||||
}
|
||||
|
||||
/* blue text only button (e.g. cancel post button) */
|
||||
div[style*="color: rgb(52, 150, 254)"],
|
||||
div[style*="color: rgb(76, 162, 254)"] {
|
||||
div[style*="color: rgb(66, 145, 255)"], // dark
|
||||
div[style*="color: rgb(77, 151, 255)"], // dim
|
||||
div[style*="color: rgb(0, 89, 214)"] // latte !! this overlaps with dark. might break?
|
||||
{
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
@@ -376,9 +370,10 @@
|
||||
color: @text;
|
||||
}
|
||||
|
||||
/* some button background color (when hovering) */
|
||||
[style*="background-color: rgb(0, 44, 91)"],
|
||||
[style*="background-color: rgb(19, 63, 109)"],
|
||||
/* some button background color (when hovering) [primary_100] */
|
||||
[style*="background-color: rgb(0, 40, 97)"], // dark
|
||||
[style*="background-color: rgb(18, 52, 100)"], // dim
|
||||
[style*="background-color: rgb(204, 225, 255)"], // latte
|
||||
/* add alt text modal */
|
||||
[style*="background-color: rgb(14, 73, 137)"] {
|
||||
background-color: fade(@accent, 30%) !important;
|
||||
@@ -393,12 +388,12 @@
|
||||
|
||||
/* the white buttons text */
|
||||
[style*="color: rgb(0, 0, 0)"] {
|
||||
color: @crust !important;
|
||||
color: if(@flavor = latte, @text, @crust) !important;
|
||||
}
|
||||
|
||||
/* replace dark fill icons with crust ones */
|
||||
path[fill="#000000"] {
|
||||
fill: @crust;
|
||||
fill: if(@flavor = latte, @text, @crust);
|
||||
}
|
||||
|
||||
/* fixes a contrast issue when the suggested follows button is enabled (very ugly selector) */
|
||||
@@ -419,14 +414,15 @@
|
||||
--placeholderTextColor: @subtext1 !important;
|
||||
}
|
||||
|
||||
/* search bar icon */
|
||||
svg[style^="color: rgb(141, 142, 150)"] {
|
||||
/* search bar icon (this doesn't actually apply because path fill. keeping anyways) [contrast_500] */
|
||||
svg[style^="color: rgb(102, 123, 153"], // dark
|
||||
svg[style^="color: rgb(111, 131, 159)"] // dim
|
||||
{
|
||||
color: @subtext1 !important;
|
||||
}
|
||||
|
||||
/* small icons */
|
||||
path[fill="#ffffff"],
|
||||
path[fill="hsl(211, 20%, 95.3%)"] {
|
||||
path[fill="#FFFFFF"] {
|
||||
fill: @text;
|
||||
|
||||
& when (@flavor = latte) {
|
||||
@@ -434,14 +430,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* more gray small icons (seems to only be the trash can/delete icon) */
|
||||
path[fill="#8D8E96"] {
|
||||
fill: @subtext1;
|
||||
/* more gray small icons (e.g. search bar icon, icons below posts [contrast_500] */
|
||||
path[fill="#667B99"], // dark
|
||||
path[fill="#6F839F"], // dim
|
||||
[style*="color: rgb(111, 131, 159)"], // dark
|
||||
[style*="color: rgb(111, 131, 159)"] // dim
|
||||
{
|
||||
color: @subtext1 !important;
|
||||
fill: @subtext1 !important;
|
||||
}
|
||||
|
||||
/* settings button at the top of the timeline, hashtag button/icon at top of timeline */
|
||||
path[fill="hsl(211, 24%, 70%)"],
|
||||
path[fill="hsl(211, 20%, 64.8%)"] {
|
||||
/* settings button at the top of the timeline, hashtag button/icon at top of timeline [contrast_600] */
|
||||
path[fill="#8798B0"], // dark
|
||||
path[fill="#8D9DB4"] // dim
|
||||
{
|
||||
fill: @subtext1;
|
||||
}
|
||||
|
||||
@@ -454,13 +455,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* likes, reposts and comment counts/buttons under posts, maybe more */
|
||||
path[fill="hsl(211, 20%, 56%)"],
|
||||
[style*="color: rgb(120, 142, 165)"] {
|
||||
color: @subtext1 !important;
|
||||
fill: @subtext1 !important;
|
||||
}
|
||||
|
||||
/* heart/like */
|
||||
.r-84gixx,
|
||||
.r-1i89l9k,
|
||||
@@ -483,6 +477,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* saved icon on post + trending icon */
|
||||
path[fill="#006AFF"], // dark
|
||||
path[fill="#0F73FF"] // dim
|
||||
{
|
||||
fill: @accent;
|
||||
}
|
||||
|
||||
/* tiny people icon on post view ("Everybody can reply") */
|
||||
path[fill="hsl(211, 24%, 43.6%)"],
|
||||
/* icon above "you have no lists" */
|
||||
@@ -529,8 +530,10 @@
|
||||
color: @base !important;
|
||||
}
|
||||
|
||||
/* miscellaneous lines around the app */
|
||||
[style*="border-color: rgb(46, 64, 82)"] {
|
||||
/* miscellaneous lines around the app [contrast_200] */
|
||||
[style*="border-color: rgb(49, 63, 84)"], // dark
|
||||
[style*="border-color: rgb(57, 73, 96)"] // dim
|
||||
{
|
||||
border-color: @surface1 !important;
|
||||
}
|
||||
|
||||
@@ -559,10 +562,6 @@
|
||||
background-color: @overlay2 !important;
|
||||
}
|
||||
|
||||
path[stroke*="hsl(211, 99%, 56%)"] {
|
||||
stroke: @accent !important;
|
||||
}
|
||||
|
||||
/* skeletons */
|
||||
.r-kdyh1x,
|
||||
.r-cpet4d {
|
||||
@@ -572,21 +571,31 @@
|
||||
}
|
||||
|
||||
/* thread lines */
|
||||
div[style*="background-color: rgb(54, 75, 97)"].r-m5arl1 {
|
||||
div[style*="background-color: rgb(35, 46, 62)"].r-m5arl1 {
|
||||
background: @surface1 !important;
|
||||
}
|
||||
|
||||
/* character limit progress circle */
|
||||
line[stroke="hsl(211, 28%, 24.8%)"][stroke-width="2"] {
|
||||
/* character limit progress circle [primary_500] */
|
||||
path[stroke="#006AFF"], // dark
|
||||
path[stroke="#0F73FF"], // dim
|
||||
path[stroke="#006AFF"] // light
|
||||
{
|
||||
stroke: @accent !important;
|
||||
}
|
||||
|
||||
/* bg circle [contrast_100] */
|
||||
path[stroke="#232E3E"], // dark
|
||||
path[stroke="#2C3A4E"], // dim
|
||||
path[stroke="#DCE2EA"] // light
|
||||
{
|
||||
stroke: @surface1 !important;
|
||||
}
|
||||
|
||||
circle[fill="hsl(211, 28%, 24.8%)"][r="1.5"] {
|
||||
fill: @surface1 !important;
|
||||
}
|
||||
|
||||
/* load new posts button */
|
||||
button[style*="border-color: rgb(46, 64, 82); background-color: rgb(21, 52, 85)"] {
|
||||
/* load new posts button (border: [contrast_100]; bg: [primary_50]) */
|
||||
button[style*="border-color: rgb(35, 46, 62); background-color: rgb(0, 30, 71)"], // dark
|
||||
button[style*="border-color: rgb(44, 58, 78); background-color: rgb(18, 41, 73)"], // dim
|
||||
button[style*="border-color: rgb(220, 226, 234); background-color: rgb(229, 240, 255)"] // light
|
||||
{
|
||||
background-color: @surface0 !important;
|
||||
border-color: @overlay0 !important;
|
||||
}
|
||||
@@ -601,7 +610,10 @@
|
||||
div[style*="border-color: rgb(46, 64, 82)"] {
|
||||
border-color: @surface1 !important;
|
||||
}
|
||||
div[style*="border-color: rgb(32, 139, 254)"] {
|
||||
/* search bar [primary_500] */
|
||||
div[style*="border-color: rgb(0, 106, 255)"], // dark
|
||||
div[style*="border-color: rgb(15, 115, 255)"] // dim
|
||||
{
|
||||
border-color: @accent !important;
|
||||
}
|
||||
|
||||
@@ -634,7 +646,7 @@
|
||||
div[style*="border-color: rgb(76, 162, 254);"] {
|
||||
border-color: @accent !important;
|
||||
}
|
||||
div[style*="background-color: rgb(19, 63, 109)"] {
|
||||
div[style*="background-color: rgb(18, 52, 100)"] {
|
||||
background-color: fade(@accent, 40%) !important;
|
||||
}
|
||||
/* inactive, circle in pill */
|
||||
|
||||
Reference in new issue
Block a user