refactor(tree-wide): cleanup extra syntax (#812)
This commit is contained in:
1 parent
549e29b92e
commit
a0a9f44ce8
14 files changed
+49
-49
No files matched your search
@@ -315,7 +315,7 @@
|
|||||||
div[style*="background-color: rgb(191, 225, 255)"],
|
div[style*="background-color: rgb(191, 225, 255)"],
|
||||||
div[style*="background-color: rgb(1, 37, 97)"] {
|
div[style*="background-color: rgb(1, 37, 97)"] {
|
||||||
background-color: fadeout(@accent-color, 70%) !important;
|
background-color: fadeout(@accent-color, 70%) !important;
|
||||||
& > svg > path[fill="#52acfe"] {
|
> svg > path[fill="#52acfe"] {
|
||||||
fill: @accent-color;
|
fill: @accent-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1022,7 +1022,7 @@
|
|||||||
&:valid {
|
&:valid {
|
||||||
border-color: @accent-color;
|
border-color: @accent-color;
|
||||||
|
|
||||||
& + .email-label {
|
+ .email-label {
|
||||||
color: @accent-color;
|
color: @accent-color;
|
||||||
background-color: @base;
|
background-color: @base;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -251,7 +251,7 @@
|
|||||||
&.IconWarningButton__RootButton-sc-1b683n6-0:hover {
|
&.IconWarningButton__RootButton-sc-1b683n6-0:hover {
|
||||||
border-color: @red;
|
border-color: @red;
|
||||||
}
|
}
|
||||||
& > svg[width="16"] {
|
> svg[width="16"] {
|
||||||
path {
|
path {
|
||||||
stroke: @red;
|
stroke: @red;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,7 +193,7 @@
|
|||||||
a {
|
a {
|
||||||
color: @text !important;
|
color: @text !important;
|
||||||
}
|
}
|
||||||
& + li {
|
+ li {
|
||||||
border-color: @overlay2;
|
border-color: @overlay2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,8 +99,8 @@
|
|||||||
.subtext,
|
.subtext,
|
||||||
.comhead {
|
.comhead {
|
||||||
&,
|
&,
|
||||||
& a:link,
|
a:link,
|
||||||
& a:visited {
|
a:visited {
|
||||||
color: @overlay2;
|
color: @overlay2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,13 +178,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#premium_content > div:nth-child(21) {
|
#premium_content > div:nth-child(21) {
|
||||||
& > p:nth-child(3) > code:nth-child(1) {
|
> p:nth-child(3) > code:nth-child(1) {
|
||||||
color: @peach !important;
|
color: @peach !important;
|
||||||
}
|
}
|
||||||
& > p:nth-child(4) > code:nth-child(1) {
|
> p:nth-child(4) > code:nth-child(1) {
|
||||||
color: @blue !important;
|
color: @blue !important;
|
||||||
}
|
}
|
||||||
& > p:nth-child(5) > code:nth-child(1) {
|
> p:nth-child(5) > code:nth-child(1) {
|
||||||
color: @green !important;
|
color: @green !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,14 +199,14 @@
|
|||||||
background-color: @subtext1;
|
background-color: @subtext1;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > div {
|
> div {
|
||||||
border-color: @crust;
|
border-color: @crust;
|
||||||
|
|
||||||
&:focus-within {
|
&:focus-within {
|
||||||
border-color: @subtext1;
|
border-color: @subtext1;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > div {
|
> div {
|
||||||
background-color: @crust;
|
background-color: @crust;
|
||||||
|
|
||||||
input[type="search"] {
|
input[type="search"] {
|
||||||
@@ -239,7 +239,7 @@
|
|||||||
img[alt="avatar"] {
|
img[alt="avatar"] {
|
||||||
border-color: @text;
|
border-color: @text;
|
||||||
|
|
||||||
& + div > svg {
|
+ div > svg {
|
||||||
fill: @text;
|
fill: @text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -480,7 +480,7 @@
|
|||||||
|
|
||||||
/* Sidebar provenance popup */
|
/* Sidebar provenance popup */
|
||||||
button[aria-label="View more provenance details"] {
|
button[aria-label="View more provenance details"] {
|
||||||
& + div > div > div {
|
+ div > div > div {
|
||||||
background-color: @base;
|
background-color: @base;
|
||||||
border-color: @surface0;
|
border-color: @surface0;
|
||||||
|
|
||||||
@@ -492,7 +492,7 @@
|
|||||||
border-bottom-color: @surface0;
|
border-bottom-color: @surface0;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > div {
|
> div {
|
||||||
div:nth-of-type(2) {
|
div:nth-of-type(2) {
|
||||||
border-color: @surface0;
|
border-color: @surface0;
|
||||||
}
|
}
|
||||||
@@ -728,7 +728,7 @@
|
|||||||
#user-content-keywords {
|
#user-content-keywords {
|
||||||
color: @text;
|
color: @text;
|
||||||
|
|
||||||
& + ul a {
|
+ ul a {
|
||||||
color: @red;
|
color: @red;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -812,7 +812,7 @@
|
|||||||
color: @subtext0;
|
color: @subtext0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
& + div {
|
+ div {
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -911,7 +911,7 @@
|
|||||||
color: @text;
|
color: @text;
|
||||||
|
|
||||||
&,
|
&,
|
||||||
& + div {
|
+ div {
|
||||||
border-color: @surface0;
|
border-color: @surface0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1022,7 +1022,7 @@
|
|||||||
/* --- SEARCH RESULTS --- */
|
/* --- SEARCH RESULTS --- */
|
||||||
|
|
||||||
[aria-labelledby="search_ranking_radiogroup_label"] {
|
[aria-labelledby="search_ranking_radiogroup_label"] {
|
||||||
& > div:focus-within {
|
> div:focus-within {
|
||||||
outline-style: none;
|
outline-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1102,11 +1102,11 @@
|
|||||||
footer {
|
footer {
|
||||||
a[href="https://github.com/npm"] svg
|
a[href="https://github.com/npm"] svg
|
||||||
{
|
{
|
||||||
& > polygon {
|
> polygon {
|
||||||
fill: @base;
|
fill: @base;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > rect {
|
> rect {
|
||||||
fill: @text;
|
fill: @text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,12 +136,12 @@
|
|||||||
> div.col-span-4
|
> div.col-span-4
|
||||||
> div
|
> div
|
||||||
> div:nth-child(2) {
|
> div:nth-child(2) {
|
||||||
& > div:nth-child(1):hover,
|
> div:nth-child(1):hover,
|
||||||
& > div:nth-child(2):hover,
|
> div:nth-child(2):hover,
|
||||||
& > div:nth-child(3) > div > div:hover {
|
> div:nth-child(3) > div > div:hover {
|
||||||
background: @surface1 !important;
|
background: @surface1 !important;
|
||||||
}
|
}
|
||||||
& path {
|
path {
|
||||||
fill: @accent-color;
|
fill: @accent-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -162,7 +162,7 @@
|
|||||||
|
|
||||||
.sc-aXZVg {
|
.sc-aXZVg {
|
||||||
background: @mantle;
|
background: @mantle;
|
||||||
& path {
|
path {
|
||||||
fill: @text !important;
|
fill: @text !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
.content-actions li {
|
.content-actions li {
|
||||||
background: @surface0;
|
background: @surface0;
|
||||||
|
|
||||||
& a,
|
a,
|
||||||
.link,
|
.link,
|
||||||
.js_link,
|
.js_link,
|
||||||
.js_link_m {
|
.js_link_m {
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
.content-actions li .js_link_m:hover,
|
.content-actions li .js_link_m:hover,
|
||||||
.content-actions li .link:hover,
|
.content-actions li .link:hover,
|
||||||
.content-actions li a:hover {
|
.content-actions li a:hover {
|
||||||
& .material-icons {
|
.material-icons {
|
||||||
color: @text !important;
|
color: @text !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -291,7 +291,7 @@
|
|||||||
background: @green;
|
background: @green;
|
||||||
color: @base;
|
color: @base;
|
||||||
|
|
||||||
& .material-icons {
|
.material-icons {
|
||||||
color: @base;
|
color: @base;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -340,7 +340,7 @@
|
|||||||
.content-actions li {
|
.content-actions li {
|
||||||
background: @surface0;
|
background: @surface0;
|
||||||
|
|
||||||
& a,
|
a,
|
||||||
.link,
|
.link,
|
||||||
.js_link,
|
.js_link,
|
||||||
.js_link_m {
|
.js_link_m {
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
.content-actions li .js_link_m:hover,
|
.content-actions li .js_link_m:hover,
|
||||||
.content-actions li .link:hover,
|
.content-actions li .link:hover,
|
||||||
.content-actions li a:hover {
|
.content-actions li a:hover {
|
||||||
& .material-icons {
|
.material-icons {
|
||||||
color: @accent-color !important;
|
color: @accent-color !important;
|
||||||
}
|
}
|
||||||
color: @accent-color !important;
|
color: @accent-color !important;
|
||||||
|
|||||||
@@ -336,8 +336,8 @@
|
|||||||
.tippy-box[data-theme~="activation"] {
|
.tippy-box[data-theme~="activation"] {
|
||||||
background-color: @accent-color;
|
background-color: @accent-color;
|
||||||
color: @crust;
|
color: @crust;
|
||||||
& .c0KyMkxeMCWQGE7cR8s_ *,
|
.c0KyMkxeMCWQGE7cR8s_ *,
|
||||||
& .TextForLabel-sc-1jqya9m-0.kIsEKW {
|
.TextForLabel-sc-1jqya9m-0.kIsEKW {
|
||||||
color: @crust;
|
color: @crust;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& body {
|
body {
|
||||||
background-color: @base;
|
background-color: @base;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -327,10 +327,10 @@
|
|||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .carousel-metadata {
|
.carousel-metadata {
|
||||||
background: @crust;
|
background: @crust;
|
||||||
}
|
}
|
||||||
& .carousel-metadata--fadeout {
|
.carousel-metadata--fadeout {
|
||||||
background: @crust;
|
background: @crust;
|
||||||
}
|
}
|
||||||
.chat-line__message-body--highlighted {
|
.chat-line__message-body--highlighted {
|
||||||
@@ -389,17 +389,17 @@
|
|||||||
.footer {
|
.footer {
|
||||||
background: @crust;
|
background: @crust;
|
||||||
}
|
}
|
||||||
& .whispers-list-item--selected,
|
.whispers-list-item--selected,
|
||||||
& .whispers-list-item:hover {
|
.whispers-list-item:hover {
|
||||||
background-color: @surface0;
|
background-color: @surface0;
|
||||||
}
|
}
|
||||||
& .thread-header__title-bar-container--focused {
|
.thread-header__title-bar-container--focused {
|
||||||
background-color: @mantle;
|
background-color: @mantle;
|
||||||
}
|
}
|
||||||
& .thread-header__title-bar-container {
|
.thread-header__title-bar-container {
|
||||||
background: @mantle;
|
background: @mantle;
|
||||||
}
|
}
|
||||||
& .thread-header__click-area:focus .thread-header__title-bar-container {
|
.thread-header__click-area:focus .thread-header__title-bar-container {
|
||||||
background-color: @mantle;
|
background-color: @mantle;
|
||||||
}
|
}
|
||||||
.navigation-link {
|
.navigation-link {
|
||||||
@@ -649,7 +649,7 @@
|
|||||||
|
|
||||||
button[aria-label="Play"],
|
button[aria-label="Play"],
|
||||||
button[aria-label="Pause"] {
|
button[aria-label="Pause"] {
|
||||||
& + div svg {
|
+ div svg {
|
||||||
color: @subtext0;
|
color: @subtext0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -936,12 +936,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#session .user-menu {
|
#session .user-menu {
|
||||||
& a:focus,
|
a:focus,
|
||||||
& a:hover,
|
a:hover,
|
||||||
& button:focus,
|
button:focus,
|
||||||
& button:hover,
|
button:hover,
|
||||||
& input:focus,
|
input:focus,
|
||||||
& input:hover {
|
input:hover {
|
||||||
color: if(@lookup=latte, #fff, @crust);
|
color: if(@lookup=latte, #fff, @crust);
|
||||||
background-color: @accent-color;
|
background-color: @accent-color;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -884,7 +884,7 @@
|
|||||||
border-top-color: @surface2;
|
border-top-color: @surface2;
|
||||||
border-left-color: @surface2;
|
border-left-color: @surface2;
|
||||||
border-right-color: @surface2;
|
border-right-color: @surface2;
|
||||||
& > figcaption {
|
> figcaption {
|
||||||
background-color: @mantle !important;
|
background-color: @mantle !important;
|
||||||
color: @text !important;
|
color: @text !important;
|
||||||
border-bottom-color: @surface2;
|
border-bottom-color: @surface2;
|
||||||
|
|||||||
@@ -517,7 +517,7 @@
|
|||||||
g path[fill] {
|
g path[fill] {
|
||||||
fill: @accent-color !important;
|
fill: @accent-color !important;
|
||||||
|
|
||||||
& + [stroke] {
|
+ [stroke] {
|
||||||
stroke: @accent-color !important;
|
stroke: @accent-color !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user