refactor(tree-wide): misc improvements (#1547)
This commit is contained in:
1 parent
3e6ecfbf86
commit
6121f23d7c
126 files changed
+8047
-8021
No files matched your search
@@ -18,46 +18,43 @@
|
||||
@-moz-document domain("pypi.org") {
|
||||
@import url("https://python.catppuccin.com/pygments/catppuccin-variables.important.css");
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
:root {
|
||||
@media (prefers-color-scheme: light) {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
}
|
||||
}
|
||||
|
||||
#catppuccin(@lookup, @accent) {
|
||||
@rosewater: @catppuccin[@@lookup][@rosewater];
|
||||
@flamingo: @catppuccin[@@lookup][@flamingo];
|
||||
@pink: @catppuccin[@@lookup][@pink];
|
||||
@mauve: @catppuccin[@@lookup][@mauve];
|
||||
@red: @catppuccin[@@lookup][@red];
|
||||
@maroon: @catppuccin[@@lookup][@maroon];
|
||||
@peach: @catppuccin[@@lookup][@peach];
|
||||
@yellow: @catppuccin[@@lookup][@yellow];
|
||||
@green: @catppuccin[@@lookup][@green];
|
||||
@teal: @catppuccin[@@lookup][@teal];
|
||||
@sky: @catppuccin[@@lookup][@sky];
|
||||
@sapphire: @catppuccin[@@lookup][@sapphire];
|
||||
@blue: @catppuccin[@@lookup][@blue];
|
||||
@lavender: @catppuccin[@@lookup][@lavender];
|
||||
@text: @catppuccin[@@lookup][@text];
|
||||
@subtext1: @catppuccin[@@lookup][@subtext1];
|
||||
@subtext0: @catppuccin[@@lookup][@subtext0];
|
||||
@overlay2: @catppuccin[@@lookup][@overlay2];
|
||||
@overlay1: @catppuccin[@@lookup][@overlay1];
|
||||
@overlay0: @catppuccin[@@lookup][@overlay0];
|
||||
@surface2: @catppuccin[@@lookup][@surface2];
|
||||
@surface1: @catppuccin[@@lookup][@surface1];
|
||||
@surface0: @catppuccin[@@lookup][@surface0];
|
||||
@base: @catppuccin[@@lookup][@base];
|
||||
@mantle: @catppuccin[@@lookup][@mantle];
|
||||
@crust: @catppuccin[@@lookup][@crust];
|
||||
@accent-color: @catppuccin[@@lookup][@@accent];
|
||||
#catppuccin(@flavor) {
|
||||
@rosewater: @catppuccin[@@flavor][@rosewater];
|
||||
@flamingo: @catppuccin[@@flavor][@flamingo];
|
||||
@pink: @catppuccin[@@flavor][@pink];
|
||||
@mauve: @catppuccin[@@flavor][@mauve];
|
||||
@red: @catppuccin[@@flavor][@red];
|
||||
@maroon: @catppuccin[@@flavor][@maroon];
|
||||
@peach: @catppuccin[@@flavor][@peach];
|
||||
@yellow: @catppuccin[@@flavor][@yellow];
|
||||
@green: @catppuccin[@@flavor][@green];
|
||||
@teal: @catppuccin[@@flavor][@teal];
|
||||
@sky: @catppuccin[@@flavor][@sky];
|
||||
@sapphire: @catppuccin[@@flavor][@sapphire];
|
||||
@blue: @catppuccin[@@flavor][@blue];
|
||||
@lavender: @catppuccin[@@flavor][@lavender];
|
||||
@text: @catppuccin[@@flavor][@text];
|
||||
@subtext1: @catppuccin[@@flavor][@subtext1];
|
||||
@subtext0: @catppuccin[@@flavor][@subtext0];
|
||||
@overlay2: @catppuccin[@@flavor][@overlay2];
|
||||
@overlay1: @catppuccin[@@flavor][@overlay1];
|
||||
@overlay0: @catppuccin[@@flavor][@overlay0];
|
||||
@surface2: @catppuccin[@@flavor][@surface2];
|
||||
@surface1: @catppuccin[@@flavor][@surface1];
|
||||
@surface0: @catppuccin[@@flavor][@surface0];
|
||||
@base: @catppuccin[@@flavor][@base];
|
||||
@mantle: @catppuccin[@@flavor][@mantle];
|
||||
@crust: @catppuccin[@@flavor][@crust];
|
||||
@accent: @catppuccin[@@flavor][@@accentColor];
|
||||
|
||||
--ctp-rosewater: @rosewater;
|
||||
--ctp-flamingo: @flamingo;
|
||||
@@ -86,10 +83,10 @@
|
||||
--ctp-mantle: @mantle;
|
||||
--ctp-crust: @crust;
|
||||
|
||||
color-scheme: if(@lookup = latte, light, dark);
|
||||
color-scheme: if(@flavor = latte, light, dark);
|
||||
|
||||
::selection {
|
||||
background-color: fade(@accent-color, 30%);
|
||||
background-color: fade(@accent, 30%);
|
||||
color: unset;
|
||||
}
|
||||
|
||||
@@ -115,8 +112,8 @@
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
border-color: @accent-color !important;
|
||||
box-shadow: inset 0 0 0 1px @accent-color !important;
|
||||
border-color: @accent !important;
|
||||
box-shadow: inset 0 0 0 1px @accent !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,7 +143,7 @@
|
||||
}
|
||||
|
||||
.accordion__link {
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.password-strength {
|
||||
@@ -155,7 +152,7 @@
|
||||
|
||||
.accordion__link:active,
|
||||
.accordion__link:focus {
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
outline-style: solid;
|
||||
}
|
||||
|
||||
@@ -178,7 +175,7 @@
|
||||
.footer__menu li a {
|
||||
&:active,
|
||||
&:focus {
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,14 +195,14 @@
|
||||
.footer__menu li a,
|
||||
.footer__text a,
|
||||
.language-switcher ul button {
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.footer__text a,
|
||||
.language-switcher ul button {
|
||||
&:active,
|
||||
&:focus {
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -246,7 +243,7 @@
|
||||
}
|
||||
|
||||
.dropdown__content {
|
||||
border-color: @accent-color !important;
|
||||
border-color: @accent !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
@@ -273,15 +270,15 @@
|
||||
|
||||
.horizontal-menu__link:active,
|
||||
.horizontal-menu__link:focus {
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
|
||||
.horizontal-menu--light .horizontal-menu__link {
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.horizontal-menu--light .horizontal-menu__link:hover {
|
||||
text-decoration-color: @accent-color !important;
|
||||
text-decoration-color: @accent !important;
|
||||
}
|
||||
|
||||
.sponsors,
|
||||
@@ -326,10 +323,10 @@
|
||||
.button--primary:active,
|
||||
.button--primary:focus,
|
||||
.button--primary:hover {
|
||||
background-color: @accent-color !important;
|
||||
border-color: @accent-color !important;
|
||||
background-color: @accent !important;
|
||||
border-color: @accent !important;
|
||||
color: @base !important;
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
|
||||
.danger {
|
||||
@@ -337,8 +334,8 @@
|
||||
}
|
||||
|
||||
.notification-bar {
|
||||
background-color: @accent-color !important;
|
||||
border-bottom-color: @accent-color !important;
|
||||
background-color: @accent !important;
|
||||
border-bottom-color: @accent !important;
|
||||
color: @base !important;
|
||||
}
|
||||
|
||||
@@ -387,11 +384,11 @@
|
||||
}
|
||||
|
||||
.callout-block {
|
||||
border-color: @accent-color !important;
|
||||
border-color: @accent !important;
|
||||
}
|
||||
|
||||
.callout-block::before {
|
||||
background-color: @accent-color !important;
|
||||
background-color: @accent !important;
|
||||
}
|
||||
|
||||
.callout-block--danger {
|
||||
@@ -429,12 +426,12 @@
|
||||
}
|
||||
|
||||
.faq-group h3::before {
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.badge {
|
||||
background-color: @accent-color !important;
|
||||
border-color: @accent-color !important;
|
||||
background-color: @accent !important;
|
||||
border-color: @accent !important;
|
||||
color: @base !important;
|
||||
}
|
||||
|
||||
@@ -445,7 +442,7 @@
|
||||
.badge:active,
|
||||
.badge:focus {
|
||||
border-color: @base !important;
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
|
||||
.badge--success {
|
||||
@@ -476,24 +473,24 @@
|
||||
.table--collaborators .table__user-text > * {
|
||||
background-image: linear-gradient(
|
||||
90deg,
|
||||
@accent-color,
|
||||
@accent-color
|
||||
@accent,
|
||||
@accent
|
||||
) !important;
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.table--collaborators .table__user-text > :hover {
|
||||
background-image: linear-gradient(
|
||||
90deg,
|
||||
@accent-color,
|
||||
@accent-color
|
||||
@accent,
|
||||
@accent
|
||||
) !important;
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.table--collaborators .table__user-text > :active,
|
||||
.table--collaborators .table__user-text > :focus {
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
@@ -569,7 +566,7 @@
|
||||
|
||||
.sponsor-grid__sponsor--invitation,
|
||||
.sponsor-grid__sponsor--invitation:hover {
|
||||
border-color: @accent-color !important;
|
||||
border-color: @accent !important;
|
||||
}
|
||||
|
||||
.sponsor-grid__sponsor-activity {
|
||||
@@ -577,16 +574,16 @@
|
||||
}
|
||||
|
||||
.sponsor-package {
|
||||
border-color: @accent-color !important;
|
||||
border-color: @accent !important;
|
||||
}
|
||||
|
||||
.sponsor-package__header {
|
||||
background-color: @accent-color !important;
|
||||
background-color: @accent !important;
|
||||
color: @base !important;
|
||||
}
|
||||
|
||||
.sponsor-package__icon {
|
||||
background-color: @accent-color !important;
|
||||
background-color: @accent !important;
|
||||
}
|
||||
|
||||
.mobile-search {
|
||||
@@ -730,13 +727,13 @@
|
||||
}
|
||||
|
||||
.vertical-tabs__tab:hover {
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.vertical-tabs__tab:active,
|
||||
.vertical-tabs__tab:focus {
|
||||
box-shadow: 0 0 0 2px @crust !important;
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
@@ -749,11 +746,11 @@
|
||||
.vertical-tabs__tab--is-active,
|
||||
.vertical-tabs__tab--is-active:hover {
|
||||
background: @crust !important;
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.vertical-tabs__content:focus {
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
|
||||
.verified small {
|
||||
@@ -762,22 +759,22 @@
|
||||
|
||||
.sidebar-section .sidebar-section__user-gravatar:active,
|
||||
.sidebar-section .sidebar-section__user-gravatar:focus {
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
|
||||
.sidebar-section__user-gravatar-text,
|
||||
.sidebar-section__user-gravatar-text:hover {
|
||||
background-image: linear-gradient(
|
||||
90deg,
|
||||
@accent-color,
|
||||
@accent-color
|
||||
@accent,
|
||||
@accent
|
||||
) !important;
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.sidebar-section__user-gravatar-text:active,
|
||||
.sidebar-section__user-gravatar-text:focus {
|
||||
outline-color: @accent-color !important;
|
||||
outline-color: @accent !important;
|
||||
}
|
||||
|
||||
.sidebar-section {
|
||||
@@ -829,7 +826,7 @@
|
||||
|
||||
.viewport-section--ee .viewport-section__heading {
|
||||
background-color: @base !important;
|
||||
color: @accent-color !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.viewport-section--ee
|
||||
@@ -905,7 +902,7 @@
|
||||
}
|
||||
|
||||
.filter-badge {
|
||||
background-color: @accent-color;
|
||||
background-color: @accent;
|
||||
|
||||
&,
|
||||
.filter-badge__remove-button,
|
||||
@@ -914,13 +911,13 @@
|
||||
}
|
||||
.filter-badge__remove-button {
|
||||
border-left-color: if(
|
||||
@lookup = latte,
|
||||
lighten(@accent-color, 10%),
|
||||
darken(@accent-color, 5%)
|
||||
@flavor = latte,
|
||||
lighten(@accent, 10%),
|
||||
darken(@accent, 5%)
|
||||
);
|
||||
|
||||
&:hover {
|
||||
background-color: darken(@accent-color, 10%);
|
||||
background-color: darken(@accent, 10%);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -960,7 +957,7 @@
|
||||
|
||||
.release__node[src*="blue"] {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" width="33.809" height="32.025" viewBox="0 0 31.696 30.024"><g stroke="@{crust}" stroke-linejoin="bevel" stroke-width=".355"><path fill="@{accent-color}" d="m.178 5.912 15.555 5.662L31.519 5.83 15.963.167z"/><path fill="@{accent-color}" d="M15.733 11.574v18.283l15.786-5.746V5.83zM.178 5.912l15.555 5.662v18.283L.178 24.195z"/></g></svg>'
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" width="33.809" height="32.025" viewBox="0 0 31.696 30.024"><g stroke="@{crust}" stroke-linejoin="bevel" stroke-width=".355"><path fill="@{accent}" d="m.178 5.912 15.555 5.662L31.519 5.83 15.963.167z"/><path fill="@{accent}" d="M15.733 11.574v18.283l15.786-5.746V5.83zM.178 5.912l15.555 5.662v18.283L.178 24.195z"/></g></svg>'
|
||||
);
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
background-color: @mantle !important;
|
||||
|
||||
Reference in new issue
Block a user