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
+153
-160
@@ -16,58 +16,56 @@
|
||||
==/UserStyle== */
|
||||
|
||||
@-moz-document domain("go.dev") {
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
@media (prefers-color-scheme: light) {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
:root[data-theme="light"] {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
|
||||
#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];
|
||||
|
||||
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%);
|
||||
}
|
||||
|
||||
input,
|
||||
@@ -91,27 +89,26 @@
|
||||
--color-background-inverted: @crust;
|
||||
--color-background-logo: @text;
|
||||
--color-background-playground-input: @mantle;
|
||||
--color-brand-primary: @accent-color; // Affects most Go-Color Elements
|
||||
--color-button: @accent-color;
|
||||
--color-button-accented: @accent-color;
|
||||
--color-brand-primary: @accent; // Affects most Go-Color Elements
|
||||
--color-button: @accent;
|
||||
--color-button-accented: @accent;
|
||||
--color-button-text: @crust;
|
||||
--color-button-text-disabled: @subtext0;
|
||||
--color-bright-text-link: @accent-color;
|
||||
--color-bright-text-link: @accent;
|
||||
--color-text: @text;
|
||||
--color-text-link: @accent-color;
|
||||
--color-text-link: @accent;
|
||||
--color-text-subtle: @subtext1;
|
||||
--focus-box-shadow: 0 0 0.0625rem 0.0625rem
|
||||
@accent-color; // Only modifies color;
|
||||
--focus-box-shadow: 0 0 0.0625rem 0.0625rem @accent; // Only modifies color;
|
||||
--gray-2: @surface0;
|
||||
--gray-3: @text;
|
||||
--gray-6: @crust;
|
||||
--pink: @red;
|
||||
--turq-dark: @accent-color;
|
||||
--turq-dark: @accent;
|
||||
--white: @text;
|
||||
--border-code: 0.0625rem @surface2 solid;
|
||||
|
||||
.btn {
|
||||
background: @accent-color;
|
||||
background: @accent;
|
||||
color: @crust;
|
||||
}
|
||||
// /dl page in go.dev
|
||||
@@ -168,7 +165,7 @@
|
||||
}
|
||||
// Download button in /learn
|
||||
.Learn-heroAction {
|
||||
background-color: @accent-color;
|
||||
background-color: @accent;
|
||||
|
||||
.js-downloadBtn {
|
||||
color: @crust;
|
||||
@@ -176,16 +173,16 @@
|
||||
}
|
||||
// Active indicator in /learn
|
||||
.LearnNav .active svg circle {
|
||||
fill: @accent-color;
|
||||
fill: @accent;
|
||||
}
|
||||
|
||||
.LeftNav a.active,
|
||||
.LeftNav a:hover {
|
||||
background-color: fade(@accent-color, 30%);
|
||||
background-color: fade(@accent, 30%);
|
||||
|
||||
img {
|
||||
@svg: escape(
|
||||
'<svg width="5" height="5" viewBox="0 0 5 5" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><circle cx="2.5" cy="2.5" r="2.5" fill="@{accent-color}"/></svg>'
|
||||
'<svg width="5" height="5" viewBox="0 0 5 5" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><circle cx="2.5" cy="2.5" r="2.5" fill="@{accent}"/></svg>'
|
||||
);
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
}
|
||||
@@ -238,7 +235,7 @@
|
||||
|
||||
// Drawer Selection
|
||||
.NavigationDrawer-listItem--active {
|
||||
background-color: fade(@accent-color, 30%);
|
||||
background-color: fade(@accent, 30%);
|
||||
}
|
||||
}
|
||||
// /play
|
||||
@@ -249,7 +246,7 @@
|
||||
}
|
||||
// Run Button for Code Snippet
|
||||
.Playground-runButton {
|
||||
border-color: @accent-color;
|
||||
border-color: @accent;
|
||||
}
|
||||
// Go Main Header
|
||||
.Site-header,
|
||||
@@ -258,7 +255,7 @@
|
||||
|
||||
.Header-menuItem--active a,
|
||||
.go-Header-menuItem--active a {
|
||||
border-bottom-color: @accent-color;
|
||||
border-bottom-color: @accent;
|
||||
}
|
||||
// Mobile Burger Icon
|
||||
button.Header-navOpen--white,
|
||||
@@ -274,7 +271,7 @@
|
||||
.WhyGo-reasons {
|
||||
.WhyGo-reasonPackagesHeader img {
|
||||
@svg: escape(
|
||||
'<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="a" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="12" height="12"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.682 1.496 10.757.378a.97.97 0 0 0-.765-.366H2.008a.99.99 0 0 0-.771.366L.318 1.496a1.3 1.3 0 0 0-.306.845v8.316c0 .732.6 1.33 1.331 1.33h9.314c.732 0 1.33-.598 1.33-1.33V2.341c0-.32-.113-.619-.305-.845m-9.514-.153h7.664l.552.665H1.622zm-.825 1.996v7.318h9.314V3.34z" fill="@{text}"/></mask><g mask="url(#a)"><rect x="-1.98346" y="-1.98352" width="15.9669" height="15.9669" fill="@{text}"/></g><path fill-rule="evenodd" clip-rule="evenodd" d="M5.143 2.008h1.714v5.706H5.143zm.511-1.18H6.3l.557 1.18H5.143z" fill="@{accent-color}"/></svg>'
|
||||
'<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="a" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="12" height="12"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.682 1.496 10.757.378a.97.97 0 0 0-.765-.366H2.008a.99.99 0 0 0-.771.366L.318 1.496a1.3 1.3 0 0 0-.306.845v8.316c0 .732.6 1.33 1.331 1.33h9.314c.732 0 1.33-.598 1.33-1.33V2.341c0-.32-.113-.619-.305-.845m-9.514-.153h7.664l.552.665H1.622zm-.825 1.996v7.318h9.314V3.34z" fill="@{text}"/></mask><g mask="url(#a)"><rect x="-1.98346" y="-1.98352" width="15.9669" height="15.9669" fill="@{text}"/></g><path fill-rule="evenodd" clip-rule="evenodd" d="M5.143 2.008h1.714v5.706H5.143zm.511-1.18H6.3l.557 1.18H5.143z" fill="@{accent}"/></svg>'
|
||||
);
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
}
|
||||
@@ -323,7 +320,7 @@
|
||||
// Right Arrow Icons
|
||||
.go-NavigationDrawer-listItem a[href="#"] img.go-Icon {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent-color}"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>'
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent}"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>'
|
||||
);
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
filter: none;
|
||||
@@ -358,7 +355,7 @@
|
||||
// Menu Active Selector
|
||||
img.TabSection-underline {
|
||||
@svg: escape(
|
||||
'<svg width="51" height="4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4a4 4 0 0 1 4-4h43a4 4 0 0 1 4 4z" fill="@{accent-color}"/></svg>'
|
||||
'<svg width="51" height="4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4a4 4 0 0 1 4-4h43a4 4 0 0 1 4 4z" fill="@{accent}"/></svg>'
|
||||
);
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
}
|
||||
@@ -372,7 +369,7 @@
|
||||
}
|
||||
}
|
||||
// Companies in Main Page Contrast
|
||||
& when (@lookup = latte) {
|
||||
& when (@flavor = latte) {
|
||||
.WhoUsesCaseStudyList-caseStudyLink {
|
||||
background-color: @surface0;
|
||||
}
|
||||
@@ -381,53 +378,51 @@
|
||||
}
|
||||
|
||||
@-moz-document domain("pkg.go.dev") {
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
@media (prefers-color-scheme: light) {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
}
|
||||
:root[data-theme="light"] {
|
||||
#catppuccin(@lightFlavor, @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];
|
||||
:root[data-theme="dark"] {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
:root[data-theme="light"] {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
|
||||
#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];
|
||||
|
||||
// Pkg.go Carousel
|
||||
.go-Carousel {
|
||||
@@ -454,7 +449,7 @@
|
||||
// Pkg.go Clipboard Icon
|
||||
.go-Clipboard img.go-Icon {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent-color}"><path d="M0 0h24v24H0z" fill="none"/><path d="M18 21H4V7H2v14c0 1.1.9 2 2 2h14zm3-4V3c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2m-2 0H8V3h11z"/></svg>'
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent}"><path d="M0 0h24v24H0z" fill="none"/><path d="M18 21H4V7H2v14c0 1.1.9 2 2 2h14zm3-4V3c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2m-2 0H8V3h11z"/></svg>'
|
||||
);
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
filter: none;
|
||||
@@ -462,7 +457,7 @@
|
||||
// Pkg.go Header
|
||||
.go-Header {
|
||||
.go-Header-submenu {
|
||||
border-color: @accent-color;
|
||||
border-color: @accent;
|
||||
}
|
||||
|
||||
// Triangle Icon Accented
|
||||
@@ -470,7 +465,7 @@
|
||||
.go-Header-menuItem:focus-within
|
||||
img.go-Icon[alt="submenu dropdown icon"] {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent-color}"><path d="M0 0h24v24H0z" fill="none"/><path d="m7 10 5 5 5-5z"/></svg>'
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent}"><path d="M0 0h24v24H0z" fill="none"/><path d="m7 10 5 5 5-5z"/></svg>'
|
||||
);
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
filter: none;
|
||||
@@ -522,7 +517,7 @@
|
||||
}
|
||||
|
||||
.go-NavigationDrawer-listItem--active {
|
||||
background-color: fade(@accent-color, 30%);
|
||||
background-color: fade(@accent, 30%);
|
||||
}
|
||||
}
|
||||
//Pkg.go Search Bar
|
||||
@@ -545,7 +540,7 @@
|
||||
a[href="https://www.meetup.com/pro/go"],
|
||||
a[href="https://github.com/golang/go/wiki/Conferences"] {
|
||||
@svg: escape(
|
||||
'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve" enable-background="new 0 0 24 24"><style type="text/css">.st0{fill:none;} .st1{fill:@{accent-color}};}</style><path class="st0" d="M0 0h24v24H0z"/><path class="st1" d="M19 19H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.6l-9.8 9.8 1.4 1.4L19 6.4V10h2V3z"/></svg>'
|
||||
'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve" enable-background="new 0 0 24 24"><style type="text/css">.st0{fill:none;} .st1{fill:@{accent}};}</style><path class="st0" d="M0 0h24v24H0z"/><path class="st1" d="M19 19H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.6l-9.8 9.8 1.4 1.4L19 6.4V10h2V3z"/></svg>'
|
||||
);
|
||||
|
||||
img,
|
||||
@@ -593,7 +588,7 @@
|
||||
// Search Icon in pkg.go - Accented
|
||||
form.Homepage-search--symbol::before {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent-color}"><path d="M0 0h24v24H0z" fill="none"/><path d="m20.49 19-5.73-5.73C15.53 12.2 16 10.91 16 9.5A6.5 6.5 0 1 0 9.5 16c1.41 0 2.7-.47 3.77-1.24L19 20.49zM5 9.5C5 7.01 7.01 5 9.5 5S14 7.01 14 9.5 11.99 14 9.5 14 5 11.99 5 9.5"/></svg>'
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent}"><path d="M0 0h24v24H0z" fill="none"/><path d="m20.49 19-5.73-5.73C15.53 12.2 16 10.91 16 9.5A6.5 6.5 0 1 0 9.5 16c1.41 0 2.7-.47 3.77-1.24L19 20.49zM5 9.5C5 7.01 7.01 5 9.5 5S14 7.01 14 9.5 11.99 14 9.5 14 5 11.99 5 9.5"/></svg>'
|
||||
);
|
||||
background-image: url("data:image/svg+xml,@{svg}");
|
||||
}
|
||||
@@ -663,7 +658,7 @@
|
||||
|
||||
img.go-Icon.go-Icon--accented[alt="checked"] {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent-color}"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-2-5.8-2.6-2.6L6 13l4 4 8-8-1.4-1.4z"/></svg>'
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{accent}"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-2-5.8-2.6-2.6L6 13l4 4 8-8-1.4-1.4z"/></svg>'
|
||||
);
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
filter: none;
|
||||
@@ -704,53 +699,51 @@
|
||||
}
|
||||
|
||||
@-moz-document url-prefix("https://go.dev/tour") {
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
@media (prefers-color-scheme: light) {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root[data-theme="auto"],
|
||||
:root:not([data-theme]) {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
}
|
||||
:root[data-theme="light"] {
|
||||
#catppuccin(@lightFlavor, @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];
|
||||
:root[data-theme="dark"] {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
:root[data-theme="light"] {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
|
||||
#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];
|
||||
|
||||
#editor-container {
|
||||
#left-side {
|
||||
@@ -758,11 +751,11 @@
|
||||
background-color: @base;
|
||||
|
||||
a {
|
||||
color: @accent-color;
|
||||
color: @accent;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: @accent-color !important;
|
||||
background-color: @accent !important;
|
||||
color: @crust;
|
||||
}
|
||||
|
||||
@@ -783,7 +776,7 @@
|
||||
color: @text;
|
||||
|
||||
a {
|
||||
color: @accent-color;
|
||||
color: @accent;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -861,7 +854,7 @@
|
||||
}
|
||||
|
||||
a#run {
|
||||
background-color: @accent-color;
|
||||
background-color: @accent;
|
||||
}
|
||||
|
||||
pre.info {
|
||||
@@ -887,7 +880,7 @@
|
||||
background-color: @mantle;
|
||||
span.ng-binding {
|
||||
background-color: @base;
|
||||
color: @accent-color;
|
||||
color: @accent;
|
||||
}
|
||||
|
||||
.toc-lesson span.ng-binding {
|
||||
@@ -924,7 +917,7 @@
|
||||
}
|
||||
|
||||
a {
|
||||
color: @accent-color;
|
||||
color: @accent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user