| /*! | |
| * Copyright 2026 The Go Authors. All rights reserved. | |
| * Use of this source code is governed by a BSD-style | |
| * license that can be found in the LICENSE file. | |
| */ | |
| /* Go Developer Survey notification. On mobile viewports it is a 50px top | |
| banner above the site header; on desktop viewports it is a floating card at | |
| the bottom-right that minimizes into a compact sticky pill. */ | |
| :root { | |
| --survey-yellow: #ffed89; | |
| --survey-yellow-light: #fcee96; | |
| --color-background-survey-banner: var(--survey-yellow-light); | |
| --color-background-survey-card: var(--survey-yellow); | |
| --color-text-survey-banner: var(--gray-1); | |
| } | |
| .go-SurveyBanner { | |
| align-items: center; | |
| background-color: var(--color-background-survey-banner); | |
| box-sizing: border-box; | |
| color: var(--color-text-survey-banner); | |
| display: none; | |
| gap: 0.75rem; | |
| justify-content: center; | |
| min-height: 3.125rem; | |
| padding: 0.5rem 1rem; | |
| position: relative; | |
| text-align: left; | |
| width: 100%; | |
| } | |
| .go-SurveyBanner--visible, | |
| .go-SurveyBanner--minimized { | |
| display: flex; | |
| } | |
| .go-SurveyBanner-gopher { | |
| display: none; | |
| flex-shrink: 0; | |
| height: 5rem; | |
| width: 6.75rem; | |
| } | |
| .go-SurveyBanner-bullhornMobile { | |
| display: block; | |
| flex-shrink: 0; | |
| height: 1.4375rem; | |
| width: 1.375rem; | |
| } | |
| .go-SurveyBanner-bullhornDesktop { | |
| display: none; | |
| flex-shrink: 0; | |
| height: 1.75rem; | |
| width: 1.75rem; | |
| } | |
| .go-SurveyBanner-content { | |
| align-items: flex-start; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.25rem; | |
| } | |
| .go-SurveyBanner-lead { | |
| display: none; | |
| font-size: 0.875rem; | |
| line-height: 1.25rem; | |
| } | |
| .go-SurveyBanner-linkPrefix { | |
| display: none; | |
| } | |
| .go-SurveyBanner-link, | |
| .go-SurveyBanner-link:link, | |
| .go-SurveyBanner-link:visited { | |
| color: var(--color-text-survey-banner); | |
| font-size: 0.875rem; | |
| font-weight: 600; | |
| line-height: 1.25rem; | |
| text-decoration: underline; | |
| text-underline-offset: 0.125rem; | |
| } | |
| .go-SurveyBanner-link:hover, | |
| .go-SurveyBanner-link:focus { | |
| color: var(--color-text-survey-banner); | |
| text-decoration: underline; | |
| text-decoration-thickness: 0.125rem; | |
| } | |
| .go-SurveyBanner-link:hover > * { | |
| text-decoration: none; | |
| } | |
| .go-SurveyBanner-close { | |
| align-items: center; | |
| background: none; | |
| border: none; | |
| border-radius: 50%; | |
| color: var(--color-text-survey-banner); | |
| cursor: pointer; | |
| display: none; | |
| height: 1.5rem; | |
| justify-content: center; | |
| padding: 0; | |
| position: absolute; | |
| right: 0.75rem; | |
| top: 0.75rem; | |
| width: 1.5rem; | |
| } | |
| .go-SurveyBanner-close:hover { | |
| background: rgb(0 0 0 / 8%); | |
| } | |
| button.go-SurveyBanner-close:focus:not([disabled]) { | |
| box-shadow: none; | |
| } | |
| .go-SurveyBanner-link:focus-visible, | |
| button.go-SurveyBanner-close:focus-visible:not([disabled]) { | |
| outline: 0.125rem solid var(--color-text-survey-banner); | |
| outline-offset: 0.125rem; | |
| } | |
| .go-SurveyBanner-minimizeIcon { | |
| display: block; | |
| height: 1.25rem; | |
| width: 1.25rem; | |
| } | |
| @media only screen and (width >= 48rem) { | |
| .go-SurveyBanner { | |
| background-color: var(--color-background-survey-card); | |
| border-radius: 0.5rem; | |
| bottom: 2rem; | |
| box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 15%); | |
| gap: 1.75rem; | |
| justify-content: flex-start; | |
| min-height: 7.875rem; | |
| padding: 0.75rem 2.5rem 0.75rem 2rem; | |
| position: fixed; | |
| right: 2rem; | |
| width: 35rem; | |
| z-index: 100; | |
| } | |
| .go-SurveyBanner--aboveCookie { | |
| bottom: 6.5rem; | |
| } | |
| .go-SurveyBanner--minimized { | |
| gap: 1rem; | |
| min-height: 0; | |
| padding: 0.875rem 1.25rem; | |
| width: auto; | |
| } | |
| .go-SurveyBanner-gopher { | |
| display: block; | |
| } | |
| .go-SurveyBanner-bullhornMobile { | |
| display: none; | |
| } | |
| .go-SurveyBanner-lead { | |
| display: block; | |
| } | |
| .go-SurveyBanner-linkPrefix { | |
| display: inline; | |
| } | |
| .go-SurveyBanner-link, | |
| .go-SurveyBanner-link:link, | |
| .go-SurveyBanner-link:visited { | |
| font-size: 1rem; | |
| font-weight: 700; | |
| line-height: 1.375rem; | |
| } | |
| .go-SurveyBanner-close { | |
| display: flex; | |
| } | |
| .go-SurveyBanner--minimized .go-SurveyBanner-bullhornDesktop { | |
| display: block; | |
| } | |
| .go-SurveyBanner--minimized .go-SurveyBanner-gopher, | |
| .go-SurveyBanner--minimized .go-SurveyBanner-lead, | |
| .go-SurveyBanner--minimized .go-SurveyBanner-close { | |
| display: none; | |
| } | |
| } | |
| @media print { | |
| .go-SurveyBanner, | |
| .go-SurveyBanner--visible, | |
| .go-SurveyBanner--minimized { | |
| display: none; | |
| } | |
| } |