804 lines
69 KiB
CSS
804 lines
69 KiB
CSS
/* ==UserStyle==
|
|
@name go.dev Catppuccin
|
|
@namespace github.com/catppuccin/userstyles/styles/go.dev
|
|
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/go.dev
|
|
@version 0.0.1
|
|
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/go.dev/catppuccin.user.css
|
|
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Ago.dev
|
|
@description Soothing pastel theme for go.dev
|
|
@author Catppuccin
|
|
@license MIT
|
|
|
|
@preprocessor less
|
|
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
|
|
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
|
|
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
|
|
==/UserStyle== */
|
|
|
|
@-moz-document domain('go.dev') {
|
|
@media (prefers-color-scheme: light) {
|
|
:root[data-theme='auto'] {
|
|
#catppuccin(@lightFlavor, @accentColor);
|
|
}
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root[data-theme='auto'] {
|
|
#catppuccin(@darkFlavor, @accentColor);
|
|
}
|
|
}
|
|
: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];
|
|
|
|
color-scheme: if(@lookup = latte, light, dark);
|
|
|
|
::selection {
|
|
background-color: fade(@accent-color, 30%);
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
&::placeholder {
|
|
color: @subtext0 !important;
|
|
}
|
|
}
|
|
|
|
background-color: @base;
|
|
|
|
--abbey: @mantle;
|
|
--black-1: @crust;
|
|
--color-border: @surface2;
|
|
--color-background: @base;
|
|
--color-background-accented: @mantle;
|
|
--color-background-banner: @mantle;
|
|
--color-background-card-footer: @crust;
|
|
--color-background-code: @surface0; // Code Snippets
|
|
--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-button-text: @crust;
|
|
--color-button-text-disabled: @subtext0;
|
|
--color-bright-text-link: @accent-color;
|
|
--color-text: @text;
|
|
--color-text-link: @accent-color;
|
|
--color-text-subtle: @subtext1;
|
|
--focus-box-shadow: 0 0 .0625rem .0625rem @accent-color; // Only modifies color;
|
|
--gray-2: @surface0;
|
|
--gray-3: @text;
|
|
--gray-6: @crust;
|
|
--pink: @red;
|
|
--turq-dark: @accent-color;
|
|
--white: @text;
|
|
|
|
.btn {
|
|
background: @accent-color;
|
|
color: @crust;
|
|
}
|
|
// /dl page in go.dev
|
|
.Downloads {
|
|
div.filename img {
|
|
@svg: escape('<svg width="14" height="13" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.992 12.992V12q.928 0 1.408-.176.384-.127.512-.384.08-.144.08-.448H.496L0 10.496v-10L.496 0h12.992L14 .496v9.248l-1.008-1.008V.992h-12V10H6.72l-.496.496 2.496 2.496zm7.856 0 2.512-2.496-.72-.704-1.648 1.664V4.992H10v6.448L8.352 9.792l-.704.704 2.496 2.496z" fill="@{text}"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}')
|
|
}
|
|
|
|
table.downloadtable {
|
|
--color-background-accented: @surface0;
|
|
}
|
|
}
|
|
// Main Page Footer & Pkg.go Footer
|
|
.Footer, .go-Footer {
|
|
background-color: @mantle;
|
|
|
|
button[aria-label="Shorcuts Modal"] img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-1 2H5v-2h2zm0-3H5V8h2zm9 7H8v-2h8zm0-4h-2v-2h2zm0-3h-2V8h2zm3 3h-2v-2h2zm0-3h-2V8h2z"/><path d="M0 0h24v24H0zm0 0h24v24H0z" fill="none"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
img.Footer-gopher, img.go-Footer-gopher {
|
|
@svg: escape('<svg viewBox="0 0 1431 901" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M335.6 867.8c-.6-33-1.1-47.7-2.2-69.6-.6-10.6-.7-11.2-2.4-10-1 .7-5.7 4.6-10.6 8.6-15.4 12.5-25.1 16.2-47.4 17.7-12.7.9-17.2 2.1-32 9-7.5 3.5-15.5 6.8-17.8 7.5-3.1.8-15.6.9-45 .4l-40.7-.7-9.5 4c-18.4 7.8-31.9 11-41.5 9.8-9-1.2-21.4-4.4-26.4-7-11.5-5.8-23.1-18.3-38.8-42-19.7-29.6-24.6-42-19.2-48.9 1.2-1.5 4.9-4.1 8.3-5.8 11.3-5.6 11.9-6.4 14.1-17.1 1.2-6 7.3-8.4 13.3-5.3 3.7 2 9.4 8.1 13.4 14.6 4.4 7.1 4.6 7.5 6.9 20.5 2.8 15.5 8.5 38.9 10.8 44 1.8 4 2.4 4.5 7.7 6.1 8.5 2.4 23.5 1.5 32.9-2.1 3.9-1.4 12.2-4 18.5-5.6 11.1-2.9 12.5-3.1 36.5-3.4 35-.4 54.8-3.6 62.5-10.1 7-5.9 28-56.1 35.4-84.8 5.2-19.7 5.7-30.9 2.2-46.5-5.3-23.4-13.3-77.8-14.3-96.6-.6-11.5 1-23.3 6-46l2.2-10-5.1-5.2c-6.2-6.1-11.4-15.1-14.4-24.8-3-9.6-3.8-28.1-1.6-38.4.9-4.1 1.5-7.5 1.3-7.6-.1-.1-3.1-2.2-6.7-4.7-22-15.4-33.1-36.4-33.3-62.8-.1-13.6 1.3-22.8 5.9-37 4.6-14.5 10.8-24.6 21.3-35 10.1-10 18.1-14.9 30.8-19 13.1-4.2 20.8-5.3 38.3-5.3h15.6l2.3-11.1c3.4-16.3 8.6-32.9 13.7-43.4 7.5-15.5 20.5-27 45.1-39.9 8.5-4.4 12.6-7.4 19.3-13.8 5.3-5.1 14.5-12.1 24.5-18.8 18.3-12.1 35.8-26.7 47.2-39.4 11.3-12.7 14.6-15.6 26.8-23.7 18.8-12.5 55-31.8 79.1-42.1 14.6-6.3 23-8.3 62.4-14.9 18.4-3.2 39.1-6.9 46-8.4C689.2.6 690.3.5 723.5.5c35.9 0 51.2.9 82.5 5.1 21.1 2.8 34.6 6 44 10.2 6.9 3.2 34.5 13.3 62 22.7 43.7 15.1 57 19.9 62.5 22.7 14.2 7.1 36.1 24.7 70 56.3 20.2 18.8 22 20.2 42.9 34.5 32.3 22 35.4 26.2 48.7 67.5 12.3 38.2 11 35 14.5 34.8 5.6-.3 24.6 1.7 31.3 3.3 3.6.8 11.2 3.8 16.8 6.5 21.8 10.7 35.3 28.8 43.1 57.8 2.1 8.1 2.6 11.8 2.6 24.1.1 13.4-.1 15.2-2.8 23.3-4.6 14-14.3 27.1-25.6 34.8l-5.1 3.4.8 10c1.3 16.4.8 39-1.1 48.4-1.8 8.9-6.1 19.3-9.2 22.5-1.6 1.7-1.8 3.2-1.6 10.2.4 8.1-1.6 26.9-4.3 40.7-1.3 7-1.3 7.3 1 11.2 1.3 2.2 5.1 7.2 8.5 11 3.4 3.9 7 8.7 8.1 10.8 5.5 10.4 8.6 35.4 7.5 60-1.3 29.3-4.8 40.9-26.6 86.4-8.6 18-11.4 25.6-10.6 29.7.8 4.3 5.3 10.7 10.6 15.1 6.7 5.6 29 20.3 40.9 26.9 7.7 4.4 12.9 8.3 20.5 15.5 13.2 12.5 18.7 15.5 28.1 15.5 12.6-.1 19.7-5.3 28.4-21 7.6-13.7 11-18 26.9-34.5 15.4-15.9 23.6-22.5 35.2-28.4 19.8-10 37.8-9.9 49.2.3 5.7 5.2 7.8 9.2 7.8 15.1 0 5.5-1.3 8.4-6.2 13.7-8.2 8.9-22 16.5-44.2 24.3-13.7 4.9-18.2 7.7-29.8 19.1l-10.6 10.5-4.1 12.8c-2.2 7-5.3 14.6-7 17-6.8 9.8-24.2 23.7-31.5 25.1-2.5.5-5.8-.2-13-2.8-11.8-4.3-21-6.3-35.2-7.5-18.2-1.7-31.8-7.6-66.6-29.4-16.9-10.5-27.8-16.7-29.3-16.7-.3 0-.3 14.5.1 32.3.4 17.7.4 36.1 0 41l-.8 8.7H336.3z" fill="@{crust}" fill-rule="nonzero"/><g fill="@{text}" fill-rule="nonzero"><path d="M348 874.8c0-14.5-.7-42.9-1.5-63.3l-1.4-37 3.7-3c13.5-10.9 22.7-22.5 31.7-39.8 6.6-12.9 6.9-15.6 2.8-35.8-4.9-24.8-3.7-39.6 5.9-75.9 1.7-6.3 3.3-12.5 3.6-13.7.2-1.3.8-2.3 1.1-2.3.4 0 5.4 2.4 11.2 5.4 12.3 6.5 27.3 11.8 41.3 14.8 8.1 1.7 13.6 2.1 27.6 2.2 36.6.1 71.3-8.2 103.4-24.6 10.3-5.3 29.9-17.9 31.3-20.1.4-.6 1.2 2.6 1.9 7.1 2.7 19.2 13 30 32 33.5l6.9 1.3-.3 7.5c-.1 4.1-.7 16.4-1.2 27.4-1.5 32-1.4 37.2 1.4 43.1 6.6 14.1 24 21.9 41 18.4 7.5-1.5 19.9-7.9 26.2-13.4l4.9-4.3 4.4 3.4c9.7 7.4 24.6 12.6 36.1 12.5 15.9-.1 29.1-10.4 33.7-26.4 2.3-8.3 2.8-35.4.9-53.4-.9-8.3-1.6-15.6-1.6-16.2 0-.7 1.2-1.2 2.8-1.2 4.6 0 15.6-2.7 20.5-5 11.2-5.3 19.3-16.8 21.8-31.2.7-4 1.3-7.4 1.5-7.6.1-.2 2.8 1.3 6 3.4 16 10.2 42.3 20.6 65.4 25.8 21.5 4.8 32.9 6 57 6 24.9.1 33.7-1.2 51.9-7.6 21.5-7.5 49.1-24.7 63-39.2 1.9-2 3.8-3.6 4.2-3.6s1 4.6 1.3 10.3c1.9 28.8 5.2 44.5 12.6 59.2 8 16.1 9.4 22.4 9.4 45.5l.1 19.5-5.1 17.5c-7.1 24.1-9.6 36.5-9.8 48.5-.1 8.7.2 10.6 2.3 14.4 4.8 9.1 17.7 20.5 33.8 30l7.3 4.3.2 43.7.3 43.6v14.95c4.5.9-86 3.267-390.7 3.367L348 914.264z"/><path d="M1288.5 863.9c-9.3-3.7-23.3-6.8-35.4-7.9-19.1-1.6-30.4-6.5-65.8-28.6-10.1-6.3-25.1-15-33.4-19.4-26.6-14.2-40.8-24.9-45.5-34.6-2.5-5-2.6-6.2-2.1-13.4.8-9.8 4.4-26.3 10.4-46.9 4.1-14.3 4.5-16.8 5-29.9.9-23.2-2.5-40.5-10.8-55.7-6.9-12.7-10.5-31.3-11.5-59.5l-.6-16.5 5.8-7c9.6-11.7 18.8-26.7 24.2-39.3l2.3-5.3 4.7.8c2.6.4 11.9.7 20.7.6 15.3-.1 23.9-1.3 32.9-4.9 1.8-.7 1.9-.3 1.2 8.2-.3 4.9-1.8 16.3-3.2 25.4-1.4 9-2.3 17.7-2 19.3.7 3.4 5 9.8 12.9 19 3.3 3.8 6.8 9.2 7.9 11.9 3.2 8.4 4.8 22.9 4.8 42.8 0 34-2.1 41.6-24.5 89.5-5.7 12.1-10.8 23.8-11.4 26-3.6 13.4 1.7 24.2 18.2 36.4 10.2 7.6 27 18.4 38.7 24.9 4.6 2.5 11.7 8.1 18.4 14.2 6.3 5.9 13.5 11.5 17 13.3 5.7 3 6.8 3.2 16.1 3.2 8.9 0 10.6-.3 15.7-2.8 7.4-3.6 15.4-12.4 21.3-23.2 2.6-4.7 6.3-10.7 8.3-13.4 4.6-6 28-30.7 28.5-30.1.2.3 2.3 6 4.5 12.8l4.1 12.2-5.7 3.6c-7.1 4.6-25.8 22.7-28.2 27.4-.9 1.9-3.1 8-4.8 13.5-3.6 11.5-7.2 17.5-14.5 24.1-6.4 5.8-15 11.4-17.4 11.4-1-.1-4-1-6.8-2.1m-1211-30.5c-10.4-2.2-16.8-5.6-24.2-12.6-7.8-7.5-15.4-17.3-26.3-34-8.1-12.2-18-30.7-18-33.4 0-.7 3.5-3.1 7.8-5.3 10.6-5.3 14.7-10.2 16.4-19.6.4-1.7 1-1.4 4.6 2.4 6.5 7.1 8.7 12.3 11.7 27.6 5.4 28.8 10.4 45.2 14.8 49.4 8 7.5 31.7 8.7 48.8 2.5 19.8-7.2 22.1-7.6 52.9-8.4 46.7-1.3 64-5.5 71.8-17.8 11.3-17.5 31.6-70.9 36.2-94.9 2.9-15.5 2.5-29-1.8-48.8-6.4-30.2-13.7-85.3-12.7-96 .6-6.2 7-40.4 7.7-41 .2-.2 4.1 1 8.8 2.6 10.8 3.6 21.3 5.2 30.7 4.7 4.8-.2 7.3 0 7.3.8 0 .6 2 5.2 4.5 10.2 12.5 25.9 39.2 56.8 62.9 73.1 3.5 2.4 4.6 3.7 4.1 4.9-1.3 3.4-9.5 36.1-11.7 46.7-3.1 15.5-3 31.5.6 49.4 3.5 18.2 3.4 21.5-1 30.4-4.7 9.4-13.2 22.1-18.6 27.7-2.4 2.5-11.1 10.4-19.2 17.5-34.1 29.8-37.2 31.5-62.2 33.5-16.9 1.3-21.2 2.5-36.9 10.2l-13 6.3-44.5.1-44.5.2-12.5 5c-20.9 8.5-29.4 9.8-44.5 6.6m1298-47.6c-3.7-10-4.4-13.2-3.3-13.9 1.9-1.2 2.6-.3 4.3 5.9.9 3.1 1.8 6.5 2.1 7.5.6 2-2.4 2.5-3.1.5m5.2-3.2c-.4-1 1.3-2 5.6-3.6 9.5-3.4 23.7-10.8 28.5-14.7 7.2-5.9 8.8-11.1 5.2-17.1-5.7-9.4-24.3-9.7-43.7-.7-8.6 4-10.7 2.9-3.1-1.5 11.9-6.8 25.5-10 34.3-8.1 9.4 2.1 17.5 9.3 17.5 15.5 0 8.6-11.6 18.1-33.3 27.4-5.4 2.3-9.9 4.2-10.1 4.2s-.6-.6-.9-1.4"/><path d="M1378.2 774.3c-1.1-3.7-.9-5.3 1-5.3 1.7 0 18.1-7.9 20-9.7 2.5-2.2 2.3-5.1-.5-5.8-2.3-.6-10 1.5-19.5 5.4l-5.3 2.1-1.8-4.2-1.8-4.3 4.6-2.4c7.3-3.8 18-7.1 25.1-7.7 5.4-.5 7.5-.3 11.3 1.4 5.1 2.3 9 7.4 8.1 10.7-1 3.7-10.1 11.1-18.6 15.3-8.7 4.2-18.5 8.2-20.4 8.2-.6 0-1.6-1.6-2.2-3.7"/><path d="M1369.6 769.3c-2.3-2.3 4.7-6.4 19.3-11.3 12.2-4.1 11.8-1.5-.6 4.3-10.9 5-18 7.7-18.7 7m-4-12.8c-3.1-9.5-1.6-10.9 2.4-2.1 3.4 7.5 3.5 8.2 1.6 8.9-1.1.4-2.1-1.4-4-6.8m-693.3-49.1c-4.9-1.8-12-8.5-13-12.3-.7-2.6 1.3-60.3 2.3-67.7l.6-4.2 5.8-.6c3.3-.4 8.3-1.4 11.2-2.2 16.2-4.5 24.1-6.3 30.7-6.9l7.3-.7-.3 38.7-.4 38.7-6 5.6c-11.6 10.8-27.3 15.6-38.2 11.6m81.8-1.9c-8.1-1.8-17.6-6.3-22.2-10.6l-3.7-3.4.5-39.4.6-39.4 7.8.7c9.7.8 44.1 6.5 45.1 7.4.4.4 1.4 8.1 2.3 17.2 2.1 20.4 1.7 45-.9 52.1-4.6 12.6-15.6 18.4-29.5 15.4m-300.3-89c-43.5-6.8-87.7-37.3-116.7-80.4-16.4-24.3-20-36.7-20.8-72.2-.6-25.1.4-39.1 4.2-58.4 11.4-57.3 38.8-101 81.4-129.6 49-33 132.7-53.8 248.6-61.9 31.8-2.2 107.8-3.3 140.9-2.1 138.2 5 222.7 27 270 70.2 33.4 30.6 55.2 72.2 63.6 121.3 6 35.2 4 78.4-4.7 99-3.5 8.5-12 22.7-18.8 31.6-26.9 34.8-59.3 57.1-97 66.7-10.5 2.7-12.1 2.8-34 2.8-28.6 0-44.5-2.2-70.4-9.7-18.9-5.4-39.3-14.7-52.6-23.9-6.4-4.4-7.2-5.4-9-10.6-5.2-15.2-21.8-29.7-44.9-38.9l-8-3.3-1.1-4.9c-1.3-5.7-4.1-9.9-9.3-14-17.4-13.8-52.1-18.1-79.7-10-20.3 5.9-32.2 18.1-29.5 30.2l.7 3.3-8.6 3.9c-18.5 8.3-35 22.2-41.9 35.2-2.6 4.9-5.1 7.7-11 12.4-19.6 15.7-43 27.7-68.4 35.4-27.3 8.2-60.7 11.3-83 7.9m83.7-50.9c29.7-5.2 58.3-17.2 80.7-33.8 11.1-8.2 30.3-25.4 37-33.1 17.2-19.7 27.5-39.9 32.9-64.7 3.1-13.7 3.3-39.7.6-53.3-9.1-44.9-38-81.8-79.8-101.6-39.3-18.7-79.7-19.9-123.9-3.8-66.2 24.1-109.2 65.8-122.5 118.7-3.7 14.8-4.8 24.2-4.7 41 .1 16.9 1.6 28 5.7 40.9 13.5 42.7 49.3 74.4 97.5 86.6 8.3 2.1 12.5 2.8 27.5 4.9 6.1.9 41.3-.4 49-1.8m413-18.6c37.9-3.7 70.6-17.5 93.5-39.6 18.4-17.7 29.5-39.4 33.7-65.8 2.4-15.5 1.4-48.9-2.1-65.3-14.4-68.2-64.7-110.1-147.6-122.8-14.5-2.2-48.3-3.1-59.1-1.6-47 6.8-86.5 33-109.3 72.8-13.1 22.8-18.3 44.6-17.3 73.1.6 18.3 2.7 29.3 8.7 44.7 9.5 24.5 27.9 48 49.7 63.7 10.4 7.5 35 20.7 48.3 26 32.7 12.8 68.2 18 101.5 14.8"/><path d="M480.2 557.4c-24.5-3.5-48.5-13.1-67.2-26.7-14.4-10.5-30.4-30.5-37-46.3-11.8-28.3-12.8-63.9-2.8-95.3 7.1-22.5 17.4-38.9 35.7-57.1 10.8-10.7 22.1-20.2 22.1-18.7 0 .3-1.6 2.5-3.7 4.9-9.6 11.4-19.2 28.7-24.1 43.5-5.7 16.8-6.7 23.8-6.7 45.3.1 17 .4 20.7 2.4 29 7 28.4 20.6 52 41.3 71.5 26.5 24.9 59.6 38.6 96.8 40.2 13.1.5 30-.6 34.5-2.3.8-.3 1.5-.1 1.5.4 0 1.2-14.5 6.1-25.5 8.7-19.5 4.5-47.9 5.8-67.3 2.9"/><path d="M527.5 535.4c-17.2-2.5-29.8-6.2-43.4-12.5-39.8-18.6-67.6-54.5-74.7-96.4-2.4-14.3-1.5-37.3 2-50.5 6.5-24.4 16.8-42.3 34.5-60.1 34.1-34 84.4-47.5 132.1-35.4 50.9 13 89.1 52.6 99.1 103 2.1 10.4 1.8 36.8-.5 47.3-5.4 25.2-17.3 47-35.6 65.2-18.8 18.9-42.4 31.5-70 37.5-7.3 1.6-36.9 2.9-43.5 1.9m110.6-82.6c12.1-6 21.1-16.9 24.3-29.3 6.9-26.1-10.1-52-37.1-56.7-21.6-3.7-43.4 9.8-50.3 31.1-1.9 6.1-2.2 8.6-1.8 16.7.5 8.4 1 10.3 4.2 16.9 5.9 11.9 15.2 19.9 28.1 24.1 2.5.9 7.8 1.3 14.6 1.1 9.9-.2 11-.4 18-3.9"/><path d="M627.8 428.4c-3.1-1.6-5.8-6.1-5.8-9.5s3.8-8.6 7.1-9.8c6-2.1 13 1.7 14.4 7.9.9 4-1.7 9.6-5.4 11.4-3.7 2-6.8 2-10.3 0m284.7 110c-18.5-2.1-25.8-4.4-13.7-4.4 10.9 0 27.8-3.4 42.2-8.5 42.7-15.1 77-50.6 89.8-93 4.6-15 5.7-23.3 5.6-41-.1-12.5-.6-18.3-2.3-26.5-4-18.9-11.8-36.8-23.2-53-6.8-9.7-24.4-27.2-33.7-33.5-4-2.7-6.9-5.1-6.4-5.3 1.6-.5 19.7 7.4 28.7 12.5 30.2 17.2 52.1 43.1 62.5 74.1 8.9 26.7 11 65.2 5 90.1-11.9 48.9-53.3 80.6-115 88.1-7.8.9-32.4 1.2-39.5.4"/><path d="M880 522.3c-51.6-3.7-96.5-34.8-116.1-80.3-6.8-15.7-9-26.1-9.6-45-.4-12.4-.1-18.7 1.1-25.5 8.4-48.5 46.6-90.1 95.1-103.6 18.9-5.2 43.3-6.6 62.2-3.3 50.5 8.5 92.4 44.5 106.7 91.4 7.5 24.7 7.2 51.4-.9 75.7-6.1 18.2-15.1 33.4-28.2 47.3-23.4 24.9-54.3 39.8-88.8 43-10.7 1-12.2 1-21.5.3M980.2 441c12.3-4.6 23.2-15.9 27.4-28.2 2.8-8.2 2.5-21.5-.6-30.1-4.6-12.9-15.6-23.4-29-27.7-5.8-1.9-8.6-2.2-16.4-1.8-8.3.3-10.2.8-16.8 4.1-9.7 4.7-16.8 11.8-21.5 21.5-3.2 6.4-3.7 8.5-4.1 16.4-.6 11.1 1.5 19.5 6.7 27.6 6.5 9.9 17.7 17.9 28.4 20.2 6.7 1.4 19.5.5 25.9-2"/><path d="M971.3 412.5c-3.2-3.2-3.5-3.9-3-7.8 1.5-11.3 16-13.4 20.4-3 2.8 6.9-2.3 14.3-9.9 14.3-3.2 0-4.7-.7-7.5-3.5M646.5 610.9c-7.7-1.2-15.6-5.1-18.9-9.4-3.6-4.7-6-14.5-5.2-21.5 1.4-11.8 9.9-24.1 23.2-33.6 5.9-4.2 25.7-14.4 28-14.4.6 0 3.8 1.6 7 3.5 21.6 13 61.7 13.9 85.6 1.9 3.7-1.9 8.3-4.7 10.2-6.4l3.4-3.1 6.7 2.5c13 5 22.7 10.7 30.1 18.1 9.9 9.8 11.9 14.3 11.9 27 0 8.9-.4 10.7-2.9 16.3-7.8 17-23.1 20.3-62.1 13.3-30.8-5.5-58.7-5.2-77.3.9-14.3 4.7-29 6.5-39.7 4.9m-356.4-110c-22.4-4.4-35.5-15.2-41.9-34.7-2.1-6.5-2.5-9.6-2.6-20.2 0-6.9.2-13 .6-13.5.4-.7 5.1-.6 14.5.3 12 1.1 41.3 1.2 45 .1 1-.3 1.4 5.5 1.7 25.6.3 22.6 1 31.8 3.1 41.3.5 2.1.4 2.2-7.7 2.1-4.6-.1-10.3-.5-12.7-1m848.9-8.8c-3-.3-5.4-1-5.3-1.6 2.4-15 3.4-29.6 3.1-47.7l-.3-20.8 3.5.8c7.5 1.6 29.2.5 45.4-2.2 8.7-1.5 16.1-2.4 16.5-2.1 1.3 1.4.6 41.8-.8 47.5-2.1 8.5-5.5 15.3-8.9 18.2-8.5 7.2-30.1 10.4-53.2 7.9m-859.7-68.7c.3-1.1 1.8-7.3 3.2-13.9 3.6-16.3 10.1-42.3 13-52.1 5.4-17.8 20.8-45.6 47.9-86.6l1.8-2.8-2.8-1.1c-4.2-1.6-17.4-4.9-19.6-4.9-3 0-3-2-.3-14.1 3.6-16.2 8-30.1 12.5-39.5 6.1-12.8 18.3-23.5 39.1-34.8l8.6-4.6.7 3.1c.3 1.7.6 5.7.6 8.8 0 7.9 2.6 31.5 5 45.2 2.3 13.7 6.1 27.2 9.5 34.3l2.5 5.1-2.2 1.5c-16.6 11.1-37 30.2-47.9 45-20.7 28.1-34.8 62.8-40.5 100.2-1.4 8.9-2.2 11.7-3.4 11.7-.8 0-7.5.4-14.9.7-12.7.6-13.3.6-12.8-1.2"/><path d="M256.5 416.7c-24.4-9.9-39.4-26.4-44.1-48.8-4.5-21 2.8-52 16.3-69.9 10.7-14.1 28.1-23.2 49.8-26.1 14.5-1.9 47.4.7 46.8 3.7-.1.6-4.2 7.4-9.1 15.3-5 7.8-11.2 18.3-13.8 23.2l-4.9 8.9-4.5-.7c-18.2-2.6-30.5 2.3-33.8 13.3-2.1 7.1-1.5 16.3 1.3 22.1 2.3 4.5 8.7 11.7 15.2 17l2.2 1.8-2.8 12c-1.6 6.6-3.9 16.4-5.1 21.8-1.7 7.5-2.5 9.7-3.8 9.7-.9 0-5.3-1.5-9.7-3.3m884.5-3c-4.7-1-5.5-1.5-5.8-3.7-.9-7.2-5.6-28.7-8.2-37.3-16.7-56.1-53.4-101.8-100.5-125.4-4.9-2.5-9.1-4.6-9.2-4.7-.2-.2 2.4-6.5 5.8-14.2 3.3-7.6 7.8-18.4 10.1-23.9 3.1-7.8 26.3-58 27.3-59.3.1-.2 4.7 2.8 10.1 6.6 5.5 3.8 15 10.4 21.2 14.7 11.5 8 20.7 17.6 25.1 26.3 1 2.1 5.9 16.3 10.9 31.7s9.4 28.8 9.7 29.7c.5 1.3 0 1.9-2.2 2.4-7.5 1.6-18 4.6-19.2 5.4-1.1.6.9 5.7 9.8 25 22.5 48.6 29.9 67.4 32.7 83 1.8 10.1 4 41 3.1 43.4-.5 1.3-2 1.6-7.9 1.5-4 0-9.8-.6-12.8-1.2"/><path d="M1173.6 399.3c-.3-4.3-1.1-12.9-1.7-19.1-.6-6.3-.9-11.5-.7-11.6.2-.2 2.8-1.7 5.8-3.4 6.7-3.7 13.5-10.3 16.3-15.7 4.8-9 1.6-22.9-7-30.5-6.5-5.7-12.3-7.3-24.9-6.9l-10.5.4-9.8-21.3c-5.4-11.7-9.6-21.4-9.2-21.6 1.4-.9 16.6-2.6 23.1-2.6 38 0 62.8 18.4 73.6 54.5 2.1 6.9 2.8 11.9 3.1 21.5.6 14.1-.6 20.9-5.4 30.8-3.9 8-15.9 19.8-24.8 24.4-6.3 3.3-22.7 8.8-26 8.8-.9 0-1.5-2.3-1.9-7.7m-771.4-145c-6-15.6-10.2-39.8-12.3-70.7l-1.3-17.9 8-7.6c4.7-4.6 14.3-11.9 23.9-18.3 19-12.5 33.2-24.5 51.5-43.5 17.6-18.2 29.4-26 72.5-47.8 36.7-18.6 41.3-20 95-28.9 14.9-2.5 32.8-5.7 39.9-7.1 7-1.4 12.9-2.5 13.1-2.5.7 0 1.5 5.5 3.9 26 5.6 47.8 5.9 52.8 6.1 105.5.1 27.5.5 52.5.9 55.6l.8 5.7-15.8.6c-122.7 5-210.4 22-270.4 52.7-6.4 3.2-12 5.9-12.3 5.9s-1.9-3.5-3.5-7.7m598.2-18.3c-35.5-13.7-89.9-24.5-147.9-29.4-36.8-3.2-54.1-3.9-98-4l-45-.1-.7-13.5c-.4-7.4-.6-31.7-.6-54 .2-43.2-.6-55.3-6.7-104.9-1.4-10.7-2.2-19.7-1.9-20 1-1.1 51.7-.4 66.4.8 33.4 2.7 58.8 6.4 70.5 10.1 3.3 1 11.4 4.1 18 6.8 10.7 4.4 43.9 16.3 70.5 25.3 20.3 6.8 41.7 14.7 46.6 17.2 11.3 5.7 37.8 27.4 68.6 56.1l15.7 14.6-2.8 6.3c-1.6 3.4-6.3 13.4-10.6 22.2-4.2 8.8-9.8 21.2-12.4 27.5-10 24-18.4 43-19 42.9-.3 0-5.2-1.8-10.7-3.9"/></g></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
|
|
img.go-Footer-googleLogoImg, img.Footer-googleLogoImg {
|
|
@svg: escape('<svg width="74" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M.128 9.276c0-5.105 4.32-9.261 9.457-9.261 2.842 0 4.865 1.107 6.388 2.552l-1.796 1.785c-1.091-1.017-2.569-1.807-4.592-1.807-3.75 0-6.683 3.004-6.683 6.731s2.932 6.732 6.683 6.732c2.432 0 3.82-.971 4.706-1.853.727-.722 1.204-1.761 1.386-3.184H9.585V8.44h8.57c.091.451.137.993.137 1.58 0 1.898-.523 4.248-2.206 5.92-1.636 1.693-3.728 2.597-6.5 2.597-5.139 0-9.458-4.156-9.458-9.262m25.09 6.914c-1.819 0-3.387-1.491-3.387-3.615 0-2.146 1.568-3.614 3.387-3.614s3.387 1.468 3.387 3.614c0 2.124-1.569 3.615-3.387 3.615m0-9.578c-3.32 0-6.024 2.507-6.024 5.963 0 3.434 2.705 5.964 6.024 5.964s6.024-2.53 6.024-5.964c0-3.456-2.706-5.963-6.024-5.963m13.142 9.578c-1.82 0-3.388-1.491-3.388-3.615 0-2.146 1.569-3.614 3.387-3.614s3.387 1.468 3.387 3.614c0 2.124-1.568 3.615-3.387 3.615m0-9.578c-3.319 0-6.024 2.507-6.024 5.963 0 3.434 2.705 5.964 6.024 5.964s6.024-2.53 6.024-5.964c0-3.456-2.705-5.963-6.024-5.963m13.107 9.578c-1.818 0-3.341-1.514-3.341-3.592 0-2.1 1.523-3.637 3.341-3.637 1.796 0 3.206 1.536 3.206 3.637 0 2.078-1.41 3.592-3.206 3.592m3.024-9.217v.972h-.091c-.591-.7-1.728-1.333-3.16-1.333-3 0-5.751 2.62-5.751 5.986 0 3.343 2.75 5.941 5.75 5.941 1.433 0 2.57-.633 3.16-1.356h.092v.859c0 2.281-1.228 3.501-3.206 3.501-1.614 0-2.614-1.152-3.023-2.123l-2.296.949c.66 1.581 2.41 3.524 5.32 3.524 3.091 0 5.705-1.808 5.705-6.212V6.972zm6.956 11.204h-2.637V.647h2.637zm7.024-9.261c1.046 0 1.932.52 2.228 1.265l-5.365 2.214c-.068-2.305 1.796-3.48 3.137-3.48m.205 7.275c-1.342 0-2.296-.61-2.91-1.807l8.025-3.298-.273-.678c-.5-1.333-2.024-3.795-5.138-3.795-3.092 0-5.66 2.417-5.66 5.963 0 3.344 2.546 5.964 5.956 5.964 2.75 0 4.342-1.672 5-2.643L71.63 14.54c-.682.994-1.614 1.649-2.955 1.649" fill="@{text}" fill-rule="evenodd"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
}
|
|
// Main Page Footer Get Started
|
|
.GettingStartedGo-primaryCta {
|
|
color: @crust;
|
|
}
|
|
|
|
// Main Page Carousel
|
|
.GoCarousel button {
|
|
background-color: @text;
|
|
color: @crust;
|
|
}
|
|
// Download button in /learn
|
|
.Learn-heroAction {
|
|
background-color: @accent-color;
|
|
|
|
.js-downloadBtn {
|
|
color: @crust;
|
|
}
|
|
}
|
|
// Active indicator in /learn
|
|
.LearnNav .active svg circle {
|
|
fill: @accent-color;
|
|
}
|
|
|
|
.LeftNav a.active, .LeftNav a:hover {
|
|
background-color: fade(@accent-color, 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>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
}
|
|
// /solutions/use-cases & Why Use Go / 4 icons
|
|
.MarketingCardList, .WhyGo-reasons .WhyGo-reasonIcon {
|
|
img.LightMode-img[alt='cloud icon'], img.DarkMode-img[alt='cloud icon'], img[alt='Sphere'] {
|
|
@svg: escape('<svg width="59px" height="59px" viewBox="0 0 59 59" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M58.968 28.25q-.026-.564-.072-1.124v-.012C57.742 12.746 46.253 1.258 31.884.104h-.004A31 31 0 0 0 29.504 0h-.009q-.625.001-1.243.032-.571.026-1.136.074C12.368 1.295.652 13.358.03 28.249q-.03.617-.031 1.242v.024a26 26 0 0 0 .033 1.242c.632 14.89 12.34 26.946 27.082 28.137l.01.001c.375.03.75.057 1.13.073q.616.03 1.24.032h.009q.628-.001 1.246-.031.566-.026 1.127-.073h.008C46.62 57.71 58.334 45.65 58.967 30.757q.032-.616.033-1.242v-.024q-.001-.624-.032-1.241M20.988 3.79c-2.221 2.143-4.111 5.121-5.558 8.696a2.83 2.83 0 0 0-2.539 2.81c0 .02.006.037.006.056-3.784 1.503-6.945 3.501-9.185 5.84 2.648-8.198 9.107-14.69 17.276-17.403m-7.2 13.713c-.743 2.944-1.188 6.166-1.344 9.556-.494.29-.891.72-1.136 1.242H4.204a2.84 2.84 0 0 0-1.361-1.365c1.252-3.877 5.283-7.232 10.946-9.433M4.204 30.7h7.106c.244.521.642.95 1.135 1.24.15 3.262.575 6.362 1.271 9.218-.068.069-.124.15-.185.226-5.525-2.203-9.455-5.507-10.688-9.321a2.85 2.85 0 0 0 1.36-1.363m-.412 7.307c2.238 2.32 5.378 4.283 9.167 5.752a2.84 2.84 0 0 0 2.242 2.185c1.47 3.83 3.45 7.005 5.788 9.263a27.2 27.2 0 0 1-17.197-17.2M28.3 54.795c-.6.282-1.082.763-1.364 1.362-3.847-1.245-7.18-5.233-9.386-10.833q.052-.04.102-.084c2.84.704 5.925 1.137 9.17 1.3.3.64.824 1.152 1.478 1.425zm0-12.074a2.84 2.84 0 0 0-1.482 1.433 46 46 0 0 1-8.263-1.174 2.82 2.82 0 0 0-2.564-2.636 46 46 0 0 1-1.15-8.183 2.83 2.83 0 0 0 1.6-1.46h10.384c.299.638.822 1.15 1.475 1.421zm0-15.843a2.84 2.84 0 0 0-1.476 1.423H16.44a2.83 2.83 0 0 0-1.6-1.462c.163-3.095.602-6.038 1.286-8.742a2.82 2.82 0 0 0 2.335-2.06c2.726-.663 5.692-1.078 8.801-1.216.263.383.623.69 1.037.906zm0-16.164a2.83 2.83 0 0 0-1.408 1.723 47 47 0 0 0-8.808 1.267 3 3 0 0 0-.368-.436c2.203-5.384 5.467-9.21 9.22-10.425.282.6.763 1.081 1.363 1.362zM55.287 21.19c-2.24-2.342-5.399-4.334-9.185-5.84 0-.019.005-.037.005-.055a2.83 2.83 0 0 0-2.64-2.82c-1.482-3.594-3.406-6.609-5.657-8.762A27.22 27.22 0 0 1 55.287 21.19m.87 5.746a2.84 2.84 0 0 0-1.362 1.364h-6.668a2.84 2.84 0 0 0-1.57-1.452c-.17-3.313-.655-6.468-1.413-9.375 5.7 2.203 9.753 5.57 11.012 9.463M30.698 4.205a2.84 2.84 0 0 0 1.365-1.362c3.752 1.214 7.012 5.04 9.218 10.425-.135.133-.26.278-.367.436a47 47 0 0 0-8.585-1.253 2.84 2.84 0 0 0-1.63-1.853zm0 11.638c.508-.211.94-.567 1.249-1.014 3.032.148 5.923.56 8.587 1.205a2.83 2.83 0 0 0 2.337 2.063c.696 2.76 1.14 5.775 1.295 8.943-.51.29-.922.727-1.173 1.262H31.957a2.84 2.84 0 0 0-1.258-1.308zm0 16.164c.55-.287.993-.744 1.257-1.306h11.04c.25.534.662.97 1.17 1.26-.143 2.955-.54 5.774-1.157 8.383a2.82 2.82 0 0 0-2.565 2.637c-2.635.63-5.487 1.035-8.477 1.182a2.83 2.83 0 0 0-1.268-1.327zm1.365 24.15a2.84 2.84 0 0 0-1.365-1.362V47.85a2.84 2.84 0 0 0 1.253-1.299c3.329-.153 6.49-.59 9.395-1.311q.05.043.103.084c-2.206 5.6-5.54 9.588-9.386 10.833m5.75-.874c2.368-2.268 4.384-5.478 5.89-9.329a2.83 2.83 0 0 0 2.336-2.192c3.786-1.469 6.928-3.434 9.167-5.754-2.708 8.173-9.2 14.627-17.393 17.275m7.656-13.898c-.073-.09-.145-.182-.23-.263.7-2.797 1.155-5.81 1.317-8.97a2.83 2.83 0 0 0 1.569-1.451h6.67c.282.598.763 1.08 1.36 1.362-1.234 3.813-5.16 7.118-10.686 9.322" fill="@{text}" fill-rule="nonzero" stroke="none" stroke-width="1"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
|
|
img.LightMode-img[alt='CLI icon'], img.DarkMode-img[alt='CLI icon'], img[alt='Command Line'] {
|
|
@svg: escape('<svg width="62px" height="59px" viewBox="0 0 62 59" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill="@{text}" fill-rule="nonzero" stroke="none" stroke-width="1"><path d="M0 11h62v48H0zm59.182 2.824H2.818v42.352h56.364z"/><rect x="9" y="6" width="45" height="3"/><rect x="14" y="0" width="34" height="3"/><path d="M21.4 42c-.414 0-.76-.142-1.035-.495-.484-.566-.415-1.486.207-1.981l6.975-6.014-7.044-6.014c-.553-.495-.69-1.415-.207-1.981s1.38-.707 1.933-.212l8.288 7.075c.345.283.483.637.483 1.061 0 .425-.207.85-.483 1.061l-8.288 7.075a.98.98 0 0 1-.828.425m19.224 3h-8.25C31.619 45 31 44.325 31 43.5s.619-1.5 1.375-1.5h8.25c.756 0 1.375.675 1.375 1.5s-.619 1.5-1.375 1.5"/></g></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
|
|
img.LightMode-img[alt='web dev icon'], img.DarkMode-img[alt='web dev icon'], img[alt='Code'] {
|
|
@svg: escape('<svg width="75px" height="50px" viewBox="0 0 75 50" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill="@{text}" fill-rule="nonzero" stroke="none" stroke-width="1"><polygon points="17 24.484525 31 18 31 20.5366715 19.8950953 25.4706244 19.8950953 25.5270717 31 30.4898241 31 33 17 26.515475"/><polygon points="33 33 39.6555652 13 42 13 35.3455491 33"/><polygon points="58 26.5719223 44 33 44 30.4898241 55.28351 25.5270717 55.28351 25.4717764 44 20.5090239 44 18 58 24.4280777"/><polygon points="71.2505274 50 3.75064464 50 0 47 75 47"/><path d="M70.999 46h-2.341V3.036a.71.71 0 0 0-.703-.7H8.044a.71.71 0 0 0-.703.7V46H5V3.036A3.043 3.043 0 0 1 8.044 0h59.912A3.043 3.043 0 0 1 71 3.036V46z"/><path d="M30.831 45H0v2h33c-1.105 0-1.989-.877-2.169-2m13.336 0c-.18 1.123-1.062 2-2.167 2h33v-2z"/></g></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
|
|
img.LightMode-img[alt='ops icon'], img.DarkMode-img[alt='ops icon'], img[alt='Sphere'][src="/images/icons/gear-dark.svg"], img[alt='Sphere'][src="/images/icons/gear.svg"] {
|
|
@svg: escape('<svg width="61px" height="61px" viewBox="0 0 61 61" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill="@{text}" fill-rule="nonzero" stroke="none" stroke-width="1"><path d="M30.5 22c-4.668 0-8.5 3.783-8.5 8.5 0 4.668 3.832 8.5 8.5 8.5s8.5-3.783 8.5-8.5c0-4.668-3.832-8.5-8.5-8.5m0 15.035c-3.587 0-6.535-2.948-6.535-6.535s2.948-6.535 6.535-6.535 6.535 2.948 6.535 6.535-2.948 6.535-6.535 6.535"/><path d="M51.886 37.805c-.242-1.057-.873-1.922-1.747-2.403l-2.184-1.25c.194-1.105.29-2.21.29-3.267 0-1.586-.145-2.98-.533-4.373l2.184-1.298c1.942-1.105 2.573-3.171 1.553-4.95l-1.796-3.075c-.728-1.202-2.087-2.018-3.494-2.018-.631 0-1.262.144-1.845.48l-2.475 1.442a17.5 17.5 0 0 0-6.504-3.556v-2.74c0-2.21-1.505-3.796-3.544-3.796H28.2c-2.184-.048-4.028 1.73-4.028 3.796v2.884a17.7 17.7 0 0 0-6.407 3.748l-2.33-1.345a4.3 4.3 0 0 0-2.136-.577c-1.262 0-2.33.625-2.96 1.73L8.54 20.313c-.485.865-.68 1.922-.437 2.931.243 1.057.874 1.922 1.796 2.45l2.282 1.25a17.8 17.8 0 0 0-.437 3.94c0 1.25.145 2.548.388 3.75l-2.038 1.153c-1.942 1.105-2.573 3.171-1.554 4.95l1.796 3.075c.728 1.201 2.087 2.018 3.495 2.018.631 0 1.262-.144 1.844-.48l1.99-1.153c1.99 1.826 4.418 3.171 6.99 3.94v2.067c0 2.21 1.505 3.796 3.543 3.796h3.592c2.185 0 4.029-1.73 4.029-3.845l-.049-2.21c2.573-.865 4.951-2.259 6.893-4.133l1.893 1.105a4.3 4.3 0 0 0 2.136.577c1.262 0 2.33-.625 2.96-1.73l1.796-3.076c.534-.817.68-1.922.437-2.883m-2.087 1.97-1.796 3.076c-.34.625-.922.769-1.31.769-.389 0-.777-.096-1.165-.337l-3.204-1.826-.534.529c-1.99 2.066-4.514 3.604-7.28 4.373l-.729.192.097 3.653c0 1.009-.97 1.874-2.087 1.874H28.2c-1.164 0-1.601-1.01-1.601-1.874v-3.509l-.728-.192a16.4 16.4 0 0 1-7.378-4.18l-.534-.53-3.252 1.875c-.243.144-.534.24-.874.24-.728 0-1.456-.432-1.844-1.057l-1.796-3.076c-.583-1.009.097-1.874.873-2.306l3.301-1.875-.194-.72c-.34-1.298-.486-2.643-.486-3.99 0-1.393.195-2.786.534-4.18l.194-.72-3.591-1.971c-.437-.24-.728-.673-.826-1.202a1.9 1.9 0 0 1 .243-1.537l1.796-3.076c.34-.625.922-.769 1.31-.769.389 0 .777.096 1.166.337l3.591 2.066.534-.529c2.039-1.97 4.272-3.267 6.844-3.988l.631-.193v-4.325c0-1.009.971-1.874 2.087-1.874h3.592c1.165 0 1.602 1.01 1.602 1.922l.049 4.23.728.192c2.62.672 5 1.97 6.94 3.748l.535.48 3.689-2.162c.242-.144.533-.24.873-.24.728 0 1.456.432 1.845 1.057l1.796 3.076c.582 1.009-.097 1.874-.874 2.306l-3.495 2.019.243.72c.437 1.442.63 2.884.63 4.566 0 1.201-.145 2.403-.387 3.556l-.146.673 3.398 1.922c.436.24.728.673.825 1.201.097.577 0 1.106-.243 1.586"/><path d="M12.99 7.006a.96.96 0 0 0 .58-.185C22.383.792 34.537.19 44.076 5.15l-3.1 1.252L51 9 45.722.421l-.436 3.293c-10.265-5.472-23.339-4.87-32.878 1.623-.436.278-.532.88-.242 1.298.194.232.533.371.823.371M5.17 15.928l1.247 3.1L9 9 .42 14.28l3.275.437C-1.75 24.987-1.15 38.068 5.309 47.612a.95.95 0 0 0 .738.388c.185 0 .37-.048.554-.194.415-.29.508-.92.23-1.356C.835 37.632.19 25.52 5.172 15.928M46.478 54.18c-8.813 6.031-20.966 6.634-30.554 1.67l3.1-1.252L9 52l5.278 8.582.436-3.293C19.362 59.794 24.592 61 29.82 61c6.295 0 12.541-1.81 17.77-5.335.437-.278.533-.881.243-1.299a1.074 1.074 0 0 0-1.356-.186m9.217-41.771c-.277-.437-.878-.534-1.293-.243-.416.291-.508.921-.23 1.358 6.001 8.823 6.602 20.992 1.661 30.543l-1.246-3.103L52 51l8.542-5.284-3.278-.437c5.494-10.23 4.894-23.32-1.57-32.87"/></g></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
}
|
|
// Mobile Nav Drawer
|
|
.NavigationDrawer {
|
|
.NavigationDrawer-header {
|
|
border-bottom-color: @surface2;
|
|
}
|
|
|
|
// Drawer Selection
|
|
.NavigationDrawer-listItem--active {
|
|
background-color: fade(@accent-color, 30%);
|
|
}
|
|
}
|
|
// /play
|
|
.PlayPage {
|
|
.lines div {
|
|
color: @overlay1; // Line numbers
|
|
}
|
|
}
|
|
// Run Button for Code Snippet
|
|
.Playground-runButton{
|
|
border-color: @accent-color;
|
|
}
|
|
// Go Main Header
|
|
.Site-header, .go-Header {
|
|
background: @crust;
|
|
|
|
.Header-menuItem--active a, .go-Header-menuItem--active a {
|
|
border-bottom-color: @accent-color;
|
|
}
|
|
// Mobile Burger Icon
|
|
button.Header-navOpen--white, button.go-Header-navOpen--white {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z" fill="@{text}"/></svg>');
|
|
background-image: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
}
|
|
// 'What's Possible With Go'
|
|
.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>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
|
|
.WhyGo-reasonShowMoreLink a {
|
|
color: @crust;
|
|
}
|
|
|
|
img.WhyGo-reasonShowMoreImg {
|
|
@svg: escape('<svg viewBox="0 0 1200 945" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="m811 927-14-4a287 287 0 0 1-58-36c-14-7-29-20-40-31l-22-17-18-14c-24-17-46-36-67-57-4-3-10-7-12-10l-27-21c-9-9-10-9-24-4l-31 6c-2 0-4 0-6 2l-7 11c-4 8-4 9-3 13 0 2 3 6 6 9 5 7 20 21 20 32 4 6 4 16 4 23 0 11-1 23-9 32-10 12-22 21-32 22l-10 2c-12 2-13 2-15 0l-3-3h-1c-2 1-11-1-13-3l-8-5c-14-9-23-27-25-43l1-16v-8l-1-2 2-2 4-6c0-3 3-7 5-11 4-6 4-6 3-12 0-7-3-12-11-19-6-6-16-6-24-7-4 0-10-1-14 3l-5 4c-1 2-12 10-19 13-8 6-17 0-26 4s-12 17-24 17h-1v-1l5-6c9-11 11-15 7-18-7-7-20 13-25 13h-1v-1l7-8c10-9 11-12 6-19-2-2-4-7-4-9l-4-8c-10-7-22-8-33-12-7-3-7-5-13-9l-4-2h-1v2l6 9a63 63 0 0 1 16 22c5 5 16 24 20 34l8 17c3 7 3 13 0 17l-2 5c-9 12-21 12-32 2-2-2-24-17-24-25l-4-6c-8-15-10-18-14-30-9-22-10-47-18-70-2-4-3-4-11-7-6-1-14-5-16-8-5-5-3-18 0-23 7-11-4-22-10-30a456 456 0 0 1-40-54c-7-10-19-33-22-41-4-13-4-18-3-24 2-8 6-16 16-12 2 0 3 2 5 3 19 9 30 29 38 47 3 6 7 12 9 19l13 37 4 14 5 12 5 10 2 1 3-1c3-2 10-19 13-33 4-17 6-22 9-23 7-7 9-18 13-27 1-3 3-10 7-12a322 322 0 0 0 19-23l6-6 5-8c5-5 2-7-29-31-8-5-16-12-23-19-5-2-7-6-12-8l-7-6-10-7c-12-6-19-13-29-21-9-7-17-14-18-18l-3-10c0-10 3-24 15-24l12-3c4-1 25-3 21-13l-4-7-11-17-11-17-27-32c-7-7-9-13-8-22 1-10 3-13 18-24 5-4 15-11 19-12l10-5c11-5 30-12 38-13l12-3 33-3c17-3 37-2 51 2 13 5 35 17 56 33l12 8 13 9 33 24 13 10a447 447 0 0 1 40 28l12 7 4 2 2-1c0-12 9-25 18-33 11-7 15-9 30-7l6 1v-1c0-2 23-19 26-19l8-4c7-3 8-4 11-10l6-7c6-5 12 4 14 8 3 4 3 4 14 7a234 234 0 0 1 49 17c7 6 18 13 23 15l7 2 9-2c4 0 6 0 9 2 9 4 18 12 12 23l-9 10c-4 5-4 5-4 18 1 14 1 14-2 21-7 14-3 16-8 30-2 10 0 12 11 6 9-4 19-14 26-25 6-8 10-12 18-17 5-3 7-5 9-10 7-12 10-14 23-18 9-2 17 0 44 10 11 4 17 8 25 13l11 6c12 0 18-10 24-19 6-11 9-14 19-21 4-3 7-9 12-9l5-2c1-1 16-10 19-10 10-6 33-12 40-11 14 2 30 11 40 21 4 0 11 10 13 12 2 0 6 4 8 9l4 8c8 9 12 45 8 64l-3 17-3 17-3 11c-3 9-5 11-10 19-3 3-3 4-2 6l11 12c22 21 43 44 48 52l6 10c8 10 9 21 3 29-2 3-4 4-10 6l-21 7c-5 0-22-2-27-4l-28-13-25-12-7-5-4-2-5-2c-7-7-11 0-18 5-14 12-19 15-32 22l-16 9-26 19c-4 4-7 6-11 7l-8 3c-5 3-4 6 5 13l15 15 16 14 37 29 18 17c14 12 25 29 16 48-3 7-11 16-20 23-12 9-12 10-17 24-3 10-9 26 1 34l15 10c12 8 17 14 22 22 4 7 6 22 1 29-2 5-11 13-18 16-45 20-80 33-93 35l-20 2-18 1zM83 700l-3-6-1-2c-3-2-9-27-11-45-4-37-2-62 7-80l4-9 1-4h2l-1 3-3 10c-8 18-9 34-7 64 1 26 4 30 10 55 1 3 1 8 4 11l2 6v2h-1zm-30-62-2-22q-3-36 9-60c6-14 10-20 13-20h1v3h-1l-4 7-6 11c-3 4-7 16-8 23-2 10-1 46 1 53l-1 4-1 2zm886-441c0-3 5-5 7-6 5-3 19-11 23-15l9-2 16-4a185 185 0 0 1 83-11c11 2 27 3 37 10l10 5 9 6 8 5 5 4 1 2v1h-1l-8-4-8-5-3-1c-2-3-19-12-26-13l-11-3a193 193 0 0 0-58 1c-11 1-27 5-47 12-9 3-16 3-25 7-7 3-14 6-19 11l-2 1zm-41-26c0-1 8-8 15-12l16-13c14-10 21-15 30-17l15-5 12-5 18-6c15-5 25-8 36-8l16-3c8-2 15-4 23-4 3 0 10 0 10 5v1l-2-1c-5-2-18-1-32 4l-15 3c-5 0-17 2-22 5l-16 5-13 5-3 2-1 1h-2c-1-1-19 5-26 8-14 7-27 16-39 25-10 8-15 11-18 11h-2z" fill="@{crust}" fill-rule="nonzero"/><path d="M809 922c-7-2-18-8-22-11l-7-4-31-21-12-8c-12-8-12-7-23-17l-33-26-14-10-24-19a215 215 0 0 1-37-31l-8-8-15-13-17-15c-2-2-9-6-8-11s9-2 11 0c10 5 18 13 27 20l58 49c10 10 37 32 46 39l12 9 53 40c8 7 22 16 27 18l15 4c17 3 36 2 58-4l39-12 29-10c5-1 14-4 19-7l10-4h2l1 2c1 5-5 9-22 17a147 147 0 0 0-24 10l-5 2c-9 4-46 16-59 19-23 4-23 2-46 2m9-17c-8 0-18-3-23-6-6-2-17-10-22-14l-12-9-14-12-17-13c-7-4-9-7-15-12-1-1-4-4-6-4l-7-6c-4-6-26-22-31-26l-38-30-36-30-11-10-9-9c-1-3 0-5 3-6 7-1 17-5 23-8l15-6 16-6c10-6 15 0 23 6a1831 1831 0 0 0 58 47c11 13 26 21 41 30l30 16 21 6c3 1 9 9 14 18 23 39 32 52 36 54 2 0 9-3 9-6 1-2-1-12-3-18-6-14-13-28-18-43-4-10 2-14 11-17 10-3 18-6 28-2 9 4 14 8 16 13v11a184 184 0 0 0-1 40c2 11 11 2 12-3 3-4 7-21 10-25 3-9 7-9 15-1l9 6c7 3 14 9 16 14 6 12-8 26-19 28l-4 2c-3 2-14 7-37 14l-12 4c-3 2-8 3-10 3l-16 4c-14 5-34 7-45 6m-369-28-13-3-9-3c-5-3-15-13-19-20-5-8-6-15-6-28 1-10 1-11 4-18 4-10 9-17 18-23s29-12 35-10c3 0 21 9 27 13 7 5 16 18 18 26 3 10 2 15-3 30-3 11-5 15-8 18-8 10-22 17-31 18zm19-33c3-2 10-5 10-10v-11c0-12 0-13-3-16-3-4-10-9-14-10l-9 3-10 6c-8 7-8 21-3 29 1 1 3 6 5 7l4 2c6 1 14 2 20 0m386 22-16-24-3-7c-5-7-14-22-17-30l2-4 7-1c5 0 6 1 8 5a276 276 0 0 1 15 29c11 22 13 30 11 33-1 3-4 2-7-1m50-19c-1-3 0-13 4-34l2-23c1-17 2-20 5-22 3-3 10-4 11-2 3 2 2 6-3 23l-6 26c-1 9-7 29-8 32l-3 2h-1zm-652-29c-5-3-13-8-15-12l-3-3-5-6-7-10-3-6c-9-13-11-20-22-61l-4-17-3-19-3-14 1-1 1 1 7 12 9 15 13 16 14 17c7 9 12 17 23 38 8 16 11 21 14 39 1 3-1 6-3 8-3 4-9 5-14 3m553-24-18-3c-17-8-26-13-37-21l-16-11-16-13c-15-15-23-21-40-34l-12-9-42-32-14-10c-4-3-12-9-17-15-11-10-30-25-39-30-24-15-43-38-67-53l-30-23-14-11-15-12-12-9-16-12c-4-3-8-9-13-11l-3-1v-1l-9-8-11-9-10-8c-9-12-23-21-36-30l-16-12c-16-14-33-27-45-35s-22-19-35-25l-32-27c-14-10-29-23-32-27l-10-9c-12-11-27-27-31-34-3-6-4-12-1-13h1l1 2a352 352 0 0 1 19 20c14 14 20 20 38 34l33 25 18 14 22 16c16 10 21 14 44 33l27 22 11 9c9 9 19 15 28 23 16 15 27 23 57 44l14 11 15 11 18 14 21 15 20 16c5 4 9 9 15 12 2 2 7 2 9 4l4 3 15 12 21 16 13 12 12 9 60 47c15 12 28 24 44 34l16 13 7 7 26 20c12 12 33 27 39 30 17 4 41 7 58-1 9-6 83-31 95-33l10-3c1 0 6-4 8-1h1l-1 3c-2 4-8 7-17 12l-9 5-7 3c-4 0-14 4-23 8l-22 8c-8 2-20 11-29 11l-16 5c-11 3-22 5-27 3m89-7-5-6-1-1 1-2c3-3 8-4 11-5 2 0 4 0 5 2 2 3 1 7 0 10-2 6-4 6-11 2m-474-15-4-5-15-18c-4-5-7-11-6-14 0-3 4-3 6-3l34-1 24-3c14-1 16-2 22-4 7-3 8-4 10-1 2 1 1 5-4 15-4 7-9 19-9 25l-3 5-1 1-5-2c-11-5-31-2-41 4-4 2-6 2-8 1m383 0-12-3-27-17-14-10-8-8-6-6-40-32-15-12c-30-20-31-21-44-33l-19-15-21-15-12-9-24-21-12-9-16-12-25-19-12-9-8-6-8-6c-11-11-26-19-39-29l-33-24-20-15-16-12-8-6-11-10-14-12-9-6-60-50c-7-6-24-16-31-23l-10-7c-13-8-34-24-42-32l-10-7-11-8c-16-13-27-29-41-43-4-5-5-11-2-17 3-5 12-12 27-19 13-7 20-9 35-13l18-5c5-2 8-2 58-5l16 1c16 8 17 4 33 13a254 254 0 0 1 52 35l11 8c4 4 7 7 39 28l29 20 21 14c14 10 18 13 22 23 3 6 3 7 3 13-3 8-5 30-6 36-1 15-1 16 1 22l6 11c4 7 14 16 20 20l11 5c12 7 12 7 25 10 17 3 35 5 51 4l16-1c0-3 4-3 6-2 12 1 24 1 35 6a84 84 0 0 1 25 16l12 9 6 4 6 6 18 13c17 14 34 29 52 41l22 18 18 14 32 25 14 11 27 24 41 35 20 16c7 6 14 14 16 19 4 4 1 19-3 21-9 5-25 10-35 13-3 1-7 1-9 3l-9 4-7 2c-7 2-14 3-20 7l-12 4-14 5c-7 3-12 5-29 9zm-471-24c3-2 8-3 14-1 8 3 6 7-7 15l-13 5c-2 0-6 1-8-1l-1-5c1-3 1-6 4-8 4-3 8-2 11-5m-30 11c-4-4-4-6-1-11q4.5-6 9 0l2 2c2 3 1 6-1 9-1 1-3 3-5 3zm-13-12c-3-2-5-9-3-10 2-3 11-2 13 2 1 4-4 10-8 10zm69-6h-9l-18-3c-4-2-4-4-3-14v-14l1-7-2-1h-1v3l-4 24c-3 5-7 4-12 2v-9l4-33v-9h-3v7l-4 33c-2 10-3 11-13 8-9-3-15-5-15-7l-1-2 2-2a120 120 0 0 0 17-41c5-19 6-40 0-59-3-10-8-21-13-31-5-12-16-27-29-32-10-5-9-7-19-12-3-1-7 0-9-2-3-3 1-8 2-10l17-18a138 138 0 0 1 38-26l8-5c14-9 33-20 50-20 4 0 9 4 12 6 12 10 21 16 24 17l26 22 12 8 7 6 21 15 27 22 10 8 18 16c7 7 16 15 21 17l18 15c11 10 12 11 7 15-8 5-18 8-22 17-4 6 2 11 8 11 7-1 25-6 32-10 6-3 7-3 12-3 5 1 17 7 20 11l18 13 8 6 11 10 4 6c-1 2-10 7-21 10l-13 5-28 10-17 3a449 449 0 0 1-45 13l-7 2c-9 2-7-9-10-14-3-3-4-3-14 1l-19 4-15 2-20 2c-11 0-24 0-35 2-4 1-3 10-5 12-3 1-22 2-29 0m-102-22c-10-3-17-6-20-10-9-7-27-25-27-26v-2h4c5 0 14-2 19-4l15-15c6-18 5-38-12-49-10-7-17-10-26-10l-9-2v-5l1-7c1-8 14-37 18-40 7-5 23 1 28 6l10 7c13 9 20 18 27 31 3 7 7 15 7 19 3 11 6 39 4 43-1 1-2 7-2 15-2 17-5 24-12 35-5 8-6 9-11 11-7 4-11 4-14 3m-90-49c-7-4-11-17-4-22s16-7 25-7l10 2c5 3 6 9 6 15l-2 7c-2 3-5 2-12-4l-8-6h-2v2l-1 2v8l-1 3c-1 3-6 3-11 0m44 1c-4-9 1-19-5-27-3-6-8-11-10-12-7-1-8-8-3-14 4-6 10-9 17-9 7-1 12 1 22 7 9 6 12 10 13 20v15c-3 10-4 12-9 15-6 4-10 5-17 6zm319-20-2-1v-2c0-2 2-4 3-5 6-6 10-8 17-12 4-1 8-3 12-1 4 1 11 8 4 11a218 218 0 0 1-12 4c-16 6-19 7-22 6m-368-22-11-15-15-19-12-16c-7-8-10-19-18-27-10-15-18-29-20-48-1-15 20-6 25 0a197 197 0 0 1 40 72c8 21 16 48 16 53v3h-1zm683-38-33-24-17-14-28-23-23-19-24-18-16-11c-2-3-8-7-12-10l-11-9-3-3 3-7 5-13c0-3 2-7 3-8l9-2 32-6 19-3 17-4 35-3c22-5 21-5 19 14v2l6 2c5 2 8 2 16 1l18-2 22-3 19-3 9-1c2 1 8 0 14-1 13-2 11-2 33 0 24 1 37 5 38 10v2l-2 1c-2 1-15 2-53 2l-55 2c-4 1-15 6-12 12 1 4 6 8 8 10l18 14 14 10 18 13 20 15c2 1 6 5 6 8 0 2-4 7-6 8-9 9-21 18-32 24-7 4-21 16-31 19l-9 5c-8 6-24 18-34 13m205-37c-12-4-33-15-55-29-6-3-13-6-18-11l-22-16-25-17-5-4-5-4-26-21-6-6 1-1c0-1 1-2 3-2l8-1h82c11 0 15-1 26 3l12 6c6 5 31 28 37 36l14 15c10 9 16 18 22 31 4 9 4 11-1 16-2 3-4 4-11 6-12 3-20 3-31-1m-27-2-10-6-13-7-28-16-13-9c-4-2-10-6-13-10l-30-22c-8-6-9-4-15-10l-12-10c-7-5-8-6-8-8v-2h2c1-1 6 1 11 5l5 5c9 4 14 13 23 17l14 10c7 7 19 14 27 19 29 19 28 20 58 37 7 3 12 7 12 8v1h-3zm-768-68c-7-4-14-10-28-22-9-9-13-10-22-17l-21-14-10-9-12-9c-2-1-9-3-9-7-8-8-24-16-24-30v-3l1-1c5 0 9 6 12 9a459 459 0 0 0 60 47l17 14 14 11c17 13 33 26 34 29l2 2-1 2c-2 2-5 1-13-2m17-8-11-8-16-13-13-10-9-5-6-4c-1-2-9-9-16-13l-33-28-13-11c-7-4-30-24-10-28 10-3 19-5 29-6l3 2c2 3 16 30 24 18 1-3 1-3-3-13-2-8-3-10-2-11l1-2 2 1a559 559 0 0 1 44 31c3 1 6 5 8 7a319 319 0 0 1 39 30c10 7 24 19 27 23 3 3 6 18 4 20-1 3-6 6-8 7l-15 7c-7 4-17 13-26 6m54-21-2-5 1-6 2-1 2 2c2 2 3 6 0 9-1 2-3 3-3 1m338-7-8-4c-1-2-3-2-5-2h-7c-4-2-9-1-27 0h-23l-1-1 1-2 1-2-3-3c-5-5-14-8-19-5h-9l1 4c0 4-2 6-7 9-4 2-11 0-15-1-20-7-40-17-50-36-4-8-4-8-4-18 1-17 4-34 5-35 2-3 5-2 7 1 2 2 2 7 0 11 0 3 4 7 9 8 4 1 4 1 7-2 5-7 17-4 23 0 8 7 20 12 28 12 13 2 23-2 37-14 6-6 7-6 12-6 5 1 7 1 10 4 9 5 10 11 13 21 3 8 4 18 12 22l16 5 14 4c2 2 1 5-1 15-4 13-4 15-7 16-3 2-3 2-10-1m-91-4c-3-2-2-4 2-9 3-4 4-4 7-4l6 2 3 2v1l-2 3-8 5-4 1zm441-3-12-11c-6-5-9-7-14-9-12-5-25-3-38-3-11 0-24-4-34 1l-17 2-16 1c-3 2-41 4-46 3l-6-1c-2-2-1-8 2-13a234 234 0 0 1 42-60c22-37 36-51 63-64 6-3 13-6 17-6 9-3 20-5 29-4 15 3 27 10 41 28 5 6 9 11 10 15l4 9c7 11 6 26 6 38 0 10 0 20-2 30l-2 14c0 6-6 22-8 26-2 3-7 7-11 8zm-320-19-2-2 1-3c1-1 6-5 15-9 7-4 15-8 16-10 4-3 8-9 15-19 6-8 21-27 34-20 5 3 6 7 11 11l16 16c6 5 14 14 14 16v2l-1 1c-12 0-24 0-35 5l-36 6-18 3-13 2-9 2c-4 1-5 1-8-1m-30-13c-12-3-17-8-19-19l-3-13c0-2-3-8-1-10 1-3 6-2 8-2 11-1 20-2 30-6l8-3h2v7c-2 8-7 33 9 27 3-1 6-1 8-3 7-4 20-14 25-22 10-14 16-19 23-21 2-2 5-3 8-3 4 0 8 3 6 7l-9 6c-5 2-11 6-14 9-11 9-8 10-17 21-8 10-12 13-23 19-8 5-10 5-19 6zm163-16c-15-9-27-20-39-32l3-6c7-8 6-14 0-21-5-7-12-4-19-2-11 4-8-6-2-10 9-5 21-5 31-3 11 3 33 12 39 17l11 8c10 5 10 8 4 20-7 13-21 31-24 31zm-267-19c-11-4-18-8-21-13v-10l1-1 1 1 4 5c3 4 12 9 19 11 2 0 6 0 10-2 8-2 15-6 20-16 5-8 6-18 0-26-3-7-10-12-19-15-8-3-17-2-26 1l-7 5c-4 3-7 14-13 6l-5-4c-5-2-6-5-5-10l2-10c2-9-4-18-13-22l-6-2-1-1 2-2 8-1c10 1 19 6 30 15 8 7 8 8 21 12l19 5c7 2 14 7 22 14 9 10 14 25 6 37-5 9-16 19-23 22-8 3-19 4-26 1m-52-7a5 5 0 0 1-1-1c-2-3 0-6 2-8l3-2 2 2c2 2 2 6-1 9-2 3-3 2-5 0m-320-6c-1-4-2-4-4-7l-10-19-5-11-1-2 1-1c4-1 14 9 17 18l5 14 4 11c-2 2-4 1-7-3m368-5c-6-4-10-8-11-13-1-10 2-22 9-27 3-2 7-2 11-2 12 1 25 6 26 20 2 9-2 16-12 22-7 3-16 5-23 0m5-15c4-3 1-9-5-9h-3l-1 2c-1 3 1 7 3 8 3 1 4 1 6-1m69 16c-2-1-11-1-13-6-1-2-1-12 3-12l6 2c7 3 13 3 28 2 14-1 20-3 34-9 5-2 7-3 8-2l2 1-1 2c-1 5-19 18-29 21-9 3-27 4-38 1m-107-1-6-3-7-4c-4-2-7-4-8-8v-3l1-3c2-5 6-3 10-1 2 2 6 3 9 4 6 1 9 4 10 9 1 6-3 10-9 9m254-15 1-3 3-1c2 0 4 0 6 2a20 20 0 0 1 1 2l1 2-3 3-3 2-4-2zm-143-3c-8-2-11-4-17-14-4-9-13-18-21-22l-17-7-17-5-7-3c-3 0-16-13-19-18l-1-2 3-3c13-16 37-20 56-20 18-1 19-1 26 1 8 2 16 6 18 8l6 1 8 4 9 6 9 7c4 5 5 7 2 12l-1 3 4 5c4 4 5 6 7 12 1 4 4 13 10 10 5-1 8 5 5 10-3 3-21 13-27 14-8 1-31 2-36 1m-116-7c-3-2-4-5-1-7 2-3 5-2 8 0 2 3 3 4 0 6-1 2-4 2-7 1m-30-16c-5-5-8-13-6-19 3-8 9-14 17-16 6-1 9-1 12 3 3 3 4 17 2 22-3 7-10 14-18 13-4 0-4-1-7-3m5-7 2-2c2-2 2-5 1-7s-3-5-6-3c-2 1-4 4-3 6l2 3c1 1 2 3 4 3m197-3c-2 0-2-3-1-4 2-3 4-5 7-6l3-2v-4l-6-1-9-1h-2v-2c1-4 6-6 10-6 6-1 16-1 18 7v6c-2 5-13 15-18 15zm-109-69c-2-1-1-5 1-7 2-1 6-3 7 0a6 6 0 0 1 1 3l-1 4zM451 837l-8-6-3-4v-6l1-6c1-3 5-6 7-8 5-3 11-6 16-3 4 1 6 5 8 8 3 5 3 10-1 17-5 11-10 13-20 8" fill="@{text}" fill-rule="nonzero"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
}
|
|
// /doc/install icon
|
|
img.CopyPaste-icon {
|
|
@svg: escape('<svg width="14" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.992 0h-6L4 .992V4H.992L0 4.992V15.04l.992.96H9.04l.96-.96V12h3.12l.88-.96V2.992zm0 1.408 1.584 1.584h-1.584zm-2 13.584h-8v-10H4v6.048l.992.96h4zm4-4h-8v-10H10V4h2.992z" fill="@{text}"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
// Go Main Logo
|
|
.Site-header .Header-logo, .NavigationDrawer-logo, .go-Header .go-Header-logo, .go-NavigationDrawer .go-NavigationDrawer-logo, .top-bar img.gopherlogo, .go-Main-headerLogo, .SearchResults-headerLogo img[alt="Go"] {
|
|
@svg: escape('<svg height="78" viewBox="0 0 207 78" width="207" xmlns="http://www.w3.org/2000/svg"><g fill="@{text}" fill-rule="evenodd"><path d="M16.2 24.1c-.4 0-.5-.2-.3-.5l2.1-2.7c.2-.3.7-.5 1.1-.5h35.7c.4 0 .5.3.3.6l-1.7 2.6c-.2.3-.7.6-1 .6zM1.1 33.3c-.4 0-.5-.2-.3-.5l2.1-2.7c.2-.3.7-.5 1.1-.5h45.6c.4 0 .6.3.5.6l-.8 2.4c-.1.4-.5.6-.9.6zm24.2 9.2c-.4 0-.5-.3-.3-.6l1.4-2.5c.2-.3.6-.6 1-.6h20c.4 0 .6.3.6.7l-.2 2.4c0 .4-.4.7-.7.7z"/><g transform="translate(55)"><path d="M74.1 22.3c-6.3 1.6-10.6 2.8-16.8 4.4-1.5.4-1.6.5-2.9-1-1.5-1.7-2.6-2.8-4.7-3.8-6.3-3.1-12.4-2.2-18.1 1.5-6.8 4.4-10.3 10.9-10.2 19 .1 8 5.6 14.6 13.5 15.7 6.8.9 12.5-1.5 17-6.6.9-1.1 1.7-2.3 2.7-3.7H35.3c-2.1 0-2.6-1.3-1.9-3 1.3-3.1 3.7-8.3 5.1-10.9.3-.6 1-1.6 2.5-1.6h36.4c-.2 2.7-.2 5.4-.6 8.1-1.1 7.2-3.8 13.8-8.2 19.6-7.2 9.5-16.6 15.4-28.5 17-9.8 1.3-18.9-.6-26.9-6.6C5.8 64.8 1.6 57.4.5 48.2-.8 37.3 2.4 27.5 9 18.9 16.1 9.6 25.5 3.7 37 1.6 46.4-.1 55.4 1 63.5 6.5c5.3 3.5 9.1 8.3 11.6 14.1.6.9.2 1.4-1 1.7"/><path d="M107.2 77.6c-9.1-.2-17.4-2.8-24.4-8.8-5.9-5.1-9.6-11.6-10.8-19.3-1.8-11.3 1.3-21.3 8.1-30.2 7.3-9.6 16.1-14.6 28-16.7 10.2-1.8 19.8-.8 28.5 5.1 7.9 5.4 12.8 12.7 14.1 22.3 1.7 13.5-2.2 24.5-11.5 33.9-6.6 6.7-14.7 10.9-24 12.8-2.7.5-5.4.6-8 .9M131 37.2c-.1-1.3-.1-2.3-.3-3.3-1.8-9.9-10.9-15.5-20.4-13.3-9.3 2.1-15.3 8-17.5 17.4-1.8 7.8 2 15.7 9.2 18.9 5.5 2.4 11 2.1 16.3-.6 7.9-4.1 12.2-10.5 12.7-19.1" fill-rule="nonzero"/></g></g></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
// Theme Selector Icons
|
|
.Footer img[alt='Dark theme'], .go-Footer img[alt='Dark theme'], .top-bar img.go-Icon--inverted[data-value='dark'] {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
// 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>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
.SiteBreadcrumb .BreadcrumbNav-li::after {
|
|
@svg: escape('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m5.06 12.393.94.94L11.333 8 6 2.667l-.94.94L9.447 8" fill="@{text}"/></svg>');
|
|
background-image: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
|
|
.Footer img[alt='Light theme'], .go-Footer img[alt='Light theme'], .top-bar img.go-Icon--inverted[data-value='light'] {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><rect fill="none" height="24" width="24"/><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58a.996.996 0 0 0-1.41 0 .996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37a.996.996 0 0 0-1.41 0 .996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41zm1.06-10.96a.996.996 0 0 0 0-1.41.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36a.996.996 0 0 0 0-1.41.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
.Footer img[alt='System theme'], .go-Footer img[alt='System theme'], .top-bar img.go-Icon--inverted[data-value='auto'] {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
// 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>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
// Code Snippet Highlights
|
|
pre {
|
|
.comment {
|
|
color: @overlay2;
|
|
}
|
|
ins {
|
|
color: @blue;
|
|
}
|
|
}
|
|
// Companies in Main Page Contrast
|
|
& when (@lookup = latte) {
|
|
.WhoUsesCaseStudyList-caseStudyLink {
|
|
background-color: @surface0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@-moz-document domain('pkg.go.dev') {
|
|
@media (prefers-color-scheme: light) {
|
|
:root[data-theme='auto'] {
|
|
#catppuccin(@lightFlavor, @accentColor);
|
|
}
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root[data-theme='auto']{
|
|
#catppuccin(@darkFlavor, @accentColor);
|
|
}
|
|
}
|
|
: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];
|
|
|
|
// Pkg.go Carousel
|
|
.go-Carousel {
|
|
.go-Carousel-nextSlide img {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="m10 17 5-5-5-5z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
.go-Carousel-prevSlide img {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="m14 7-5 5 5 5z"/><path d="M24 0v24H0V0z" fill="none" opacity=".87"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
}
|
|
// Alert Chips
|
|
.go-Chip--alert {
|
|
color: @crust;
|
|
}
|
|
// 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>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
// Pkg.go Header
|
|
.go-Header {
|
|
.go-Header-submenu {
|
|
border-color: @accent-color;
|
|
}
|
|
|
|
// Triangle Icon Accented
|
|
.go-Header-menuItem:hover img.go-Icon[alt='submenu dropdown icon'], .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>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
}
|
|
// Triangle Icon
|
|
.go-Header, .go-Main-navMobile {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="m7 10 5 5 5-5z"/></svg>');
|
|
|
|
img.go-Icon[alt='submenu dropdown icon'] {
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
.go-Select {
|
|
background-image: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
}
|
|
// Pkg.go Subheader
|
|
.go-Main-header {
|
|
background-color: @mantle;
|
|
}
|
|
// Pkg.go Fixed Header
|
|
.go-Main-header[data-raised='true'] {
|
|
background-color: @crust;
|
|
}
|
|
// Pkg.go Package Documentation Mobile Dropdown Icon
|
|
.go-Main-navMobile label.go-Label::before {
|
|
@svg:escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0V0z" fill="none" opacity=".87"/><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 4c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-8c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm3 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/></svg>');
|
|
background-image: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
// Pkg.go Mobile Navigation Drawer
|
|
.go-NavigationDrawer {
|
|
.go-NavigationDrawer-header {
|
|
border-bottom-color: @overlay2;
|
|
}
|
|
|
|
.go-NavigationDrawer-listItem--active {
|
|
background-color: fade(@accent-color, 30%);
|
|
}
|
|
}
|
|
//Pkg.go Search Bar
|
|
.go-SearchForm {
|
|
input[type="search"]::-webkit-search-cancel-button {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.go-Footer {
|
|
background-color: @crust;
|
|
}
|
|
// Pkg.go Shortcut Helpers
|
|
.go-ShortcutKey::after {
|
|
background-color: @text;
|
|
}
|
|
// External Link Icon
|
|
.Homepage-helpLink, .UnitFiles-titleLink, 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>');
|
|
|
|
img, img.go-Icon, img.go-Icon:not(.go-Icon--accented){
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
a::after{
|
|
background-image: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
}
|
|
// 'Jump to' Dialog - Desktop
|
|
.JumpDialog {
|
|
.JumpDialog-active {
|
|
color: @crust;
|
|
}
|
|
|
|
.go-Button[aria-label='Close'] img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
}
|
|
// Pkg.go Package Search Results
|
|
.SearchResults-header {
|
|
input[type="search"]::-webkit-search-cancel-button {
|
|
display: none;
|
|
}
|
|
}
|
|
// Search Icon
|
|
.SearchResults-header, .go-SearchForm {
|
|
button[aria-label="Submit search"] img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><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>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
}
|
|
// 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>');
|
|
background-image: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
|
|
.ShortcutsDialog {
|
|
.go-Button[aria-label='Close'] img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
}
|
|
// Pkg.go Package Page
|
|
.UnitDetails {
|
|
#section-documentation img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="m16 6-1.41 1.41L19.17 12l-4.58 4.59L16 18l6-6zM8 18l1.41-1.41L4.83 12l4.58-4.59L8 6l-6 6z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
.UnitReadme-title img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M4 18V6h7v12zm16 0h-7V6h7zm-6-9.5h5V10h-5zm0 2.5h5v1.5h-5zm0 2.5h5V15h-5zm-7.25-.81"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
}
|
|
|
|
.UnitDirectories img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
.UnitFiles img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
// Pkg.go Package Details Section
|
|
.UnitMeta {
|
|
.UnitMeta-details {
|
|
img.go-Icon { // Question Tooltip
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><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 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
img.go-Icon[alt='unchecked'] {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none" opacity=".87"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 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 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
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>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
}
|
|
|
|
.UnitMeta-links {
|
|
img.go-Icon {
|
|
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="@{text}"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
filter: none;
|
|
}
|
|
|
|
img.depsdev-Icon {
|
|
@svg: escape('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="m13.587 16.204 2.217 2.217c.26.253.26.667.007.927l-.008.008L3.342 31.81a.653.653 0 0 1-.92 0L.19 29.58a.653.653 0 0 1 0-.92l12.462-12.462a.655.655 0 0 1 .928-.008c0 .008.007.015.007.015" fill="@{subtext0}"/><circle cx="17" cy="15" r="13" stroke="@{text}" stroke-width="4"/><circle cx="17" cy="15" r="4" stroke="@{text}" stroke-width="4"/></svg>');
|
|
content: url('data:image/svg+xml,@{svg}');
|
|
}
|
|
}
|
|
}
|
|
// Deprecated Chip
|
|
span.Documentation-deprecatedTag {
|
|
color: @crust;
|
|
}
|
|
// Code Snippet Highlights
|
|
pre {
|
|
.comment {
|
|
color: @overlay2;
|
|
}
|
|
ins {
|
|
color: @blue;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@-moz-document url-prefix("https://go.dev/tour") {
|
|
@media (prefers-color-scheme: light) {
|
|
:root[data-theme='auto'] {
|
|
#catppuccin(@lightFlavor, @accentColor);
|
|
}
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root[data-theme='auto'] {
|
|
#catppuccin(@darkFlavor, @accentColor);
|
|
}
|
|
}
|
|
: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];
|
|
|
|
#editor-container {
|
|
#left-side {
|
|
.slide-content {
|
|
background-color: @base;
|
|
|
|
a {
|
|
color: @accent-color;
|
|
}
|
|
|
|
code {
|
|
background-color: @accent-color !important;
|
|
color: @crust;
|
|
}
|
|
|
|
h2, li, p {
|
|
color: @text;
|
|
}
|
|
|
|
pre {
|
|
background-color: @mantle;
|
|
color: @text;
|
|
}
|
|
}
|
|
|
|
.module-bar {
|
|
background-color: @mantle;
|
|
color: @text;
|
|
|
|
a {
|
|
color: @accent-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
#right-side {
|
|
background-color: @base;
|
|
|
|
#explorer {
|
|
background-color: @mantle;
|
|
}
|
|
|
|
#file-editor {
|
|
.CodeMirror {
|
|
background-color: @base;
|
|
|
|
.CodeMirror-lines {
|
|
background-color: @base;
|
|
color: @text;
|
|
|
|
.CodeMirror-linenumber {
|
|
color: @overlay1;
|
|
}
|
|
|
|
span.cm-atom {
|
|
color: @blue;
|
|
}
|
|
|
|
span.cm-comment {
|
|
color: @peach;
|
|
}
|
|
|
|
span.cm-keyword {
|
|
color: @mauve;
|
|
}
|
|
|
|
span.cm-number {
|
|
color: @green;
|
|
}
|
|
|
|
span.cm-string {
|
|
color: @red;
|
|
}
|
|
|
|
span.cm-variable {
|
|
color: @text;
|
|
}
|
|
}
|
|
}
|
|
|
|
.CodeMirror-gutters {
|
|
background-color: @mantle;
|
|
border-right-color: @surface2;
|
|
}
|
|
}
|
|
|
|
#file-menu {
|
|
background-color: @mantle;
|
|
}
|
|
|
|
.output {
|
|
background-color: @base;
|
|
|
|
span.stdout {
|
|
color: @subtext0;
|
|
}
|
|
|
|
span.system {
|
|
color: @text;
|
|
}
|
|
}
|
|
|
|
a {
|
|
background-color: @text;
|
|
color: @crust;
|
|
}
|
|
|
|
a#run{
|
|
background-color: @accent-color;
|
|
}
|
|
|
|
|
|
pre.info {
|
|
background-color: @surface0 !important;
|
|
}
|
|
}
|
|
|
|
div[vertical-slide], div[horizontal-slide] {
|
|
background-color: @surface2;
|
|
}
|
|
}
|
|
|
|
.toc {
|
|
background-color: @base;
|
|
|
|
.toc-page.ng-scope {
|
|
background-color: @mantle;
|
|
color: @text;
|
|
}
|
|
|
|
.toc-module.ng-scope {
|
|
background-color: @mantle;
|
|
span.ng-binding {
|
|
background-color: @base;
|
|
color: @accent-color
|
|
}
|
|
|
|
.toc-lesson span.ng-binding {
|
|
background-color: @mantle;
|
|
color: @text;
|
|
}
|
|
}
|
|
}
|
|
|
|
.top-bar {
|
|
background-color: @crust;
|
|
color: @text;
|
|
|
|
span.nav {
|
|
svg {
|
|
fill: @text;
|
|
}
|
|
}
|
|
}
|
|
|
|
.wrapper.ng-scope {
|
|
background-color: @base;
|
|
|
|
.container {
|
|
background-color: @base;
|
|
|
|
.lesson.ng-scope {
|
|
background-color: @mantle
|
|
}
|
|
|
|
h1, p {
|
|
color: @text;
|
|
}
|
|
|
|
a {
|
|
color: @accent-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* prettier-ignore */
|
|
@catppuccin: {
|
|
@latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; };
|
|
@frappe: { @rosewater: #f2d5cf; @flamingo: #eebebe; @pink: #f4b8e4; @mauve: #ca9ee6; @red: #e78284; @maroon: #ea999c; @peach: #ef9f76; @yellow: #e5c890; @green: #a6d189; @teal: #81c8be; @sky: #99d1db; @sapphire: #85c1dc; @blue: #8caaee; @lavender: #babbf1; @text: #c6d0f5; @subtext1: #b5bfe2; @subtext0: #a5adce; @overlay2: #949cbb; @overlay1: #838ba7; @overlay0: #737994; @surface2: #626880; @surface1: #51576d; @surface0: #414559; @base: #303446; @mantle: #292c3c; @crust: #232634; };
|
|
@macchiato: { @rosewater: #f4dbd6; @flamingo: #f0c6c6; @pink: #f5bde6; @mauve: #c6a0f6; @red: #ed8796; @maroon: #ee99a0; @peach: #f5a97f; @yellow: #eed49f; @green: #a6da95; @teal: #8bd5ca; @sky: #91d7e3; @sapphire: #7dc4e4; @blue: #8aadf4; @lavender: #b7bdf8; @text: #cad3f5; @subtext1: #b8c0e0; @subtext0: #a5adcb; @overlay2: #939ab7; @overlay1: #8087a2; @overlay0: #6e738d; @surface2: #5b6078; @surface1: #494d64; @surface0: #363a4f; @base: #24273a; @mantle: #1e2030; @crust: #181926; };
|
|
@mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; };
|
|
}
|
|
|
|
// vim:ft=less
|