2021-04-27 21:44:35 +00:00
|
|
|
:root,
|
2022-05-31 12:14:01 +00:00
|
|
|
:root[color-theme="light"] {
|
2022-05-23 20:37:12 +00:00
|
|
|
--code-max-height: none;
|
2021-05-13 12:05:38 +00:00
|
|
|
|
2022-05-31 12:14:01 +00:00
|
|
|
@include color_theme_light;
|
|
|
|
@include code_theme_light;
|
2021-04-27 21:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
:root {
|
2022-05-31 12:14:01 +00:00
|
|
|
@include color_theme_light;
|
|
|
|
@include code_theme_light;
|
2021-04-27 21:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-31 12:14:01 +00:00
|
|
|
:root[color-theme="dark"] {
|
|
|
|
@include color_theme_dark;
|
|
|
|
@include code_theme_dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root[code-theme="dark"] {
|
|
|
|
@include code_theme_dark;
|
2021-04-27 21:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
2022-05-31 12:14:01 +00:00
|
|
|
@include color_theme_dark;
|
|
|
|
@include code_theme_dark;
|
2021-04-27 21:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
html {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
letter-spacing: 0.33px;
|
|
|
|
scroll-behavior: smooth;
|
2021-04-27 21:44:35 +00:00
|
|
|
|
|
|
|
&.color-toggle-hidden {
|
2022-05-31 12:14:01 +00:00
|
|
|
#gdoc-color-theme {
|
2022-11-02 14:48:45 +00:00
|
|
|
display: none;
|
2021-04-27 21:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.color-toggle-light {
|
2022-05-31 12:14:01 +00:00
|
|
|
#gdoc-color-theme {
|
2021-04-27 21:44:35 +00:00
|
|
|
.gdoc_brightness_light {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.gdoc_brightness_auto,
|
|
|
|
.gdoc_brightness_dark {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.color-toggle-dark {
|
2022-05-31 12:14:01 +00:00
|
|
|
#gdoc-color-theme {
|
2021-04-27 21:44:35 +00:00
|
|
|
.gdoc_brightness_dark {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.gdoc_brightness_auto,
|
|
|
|
.gdoc_brightness_light {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.color-toggle-auto {
|
2022-05-31 12:14:01 +00:00
|
|
|
#gdoc-color-theme {
|
2021-04-27 21:44:35 +00:00
|
|
|
.gdoc_brightness_light {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.gdoc_brightness_dark {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.gdoc_brightness_auto {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
min-width: $body-min-width;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
* {
|
|
|
|
box-sizing: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
2020-02-26 22:59:30 +00:00
|
|
|
h5,
|
|
|
|
h6 {
|
2020-01-12 14:33:02 +00:00
|
|
|
font-weight: $body-font-weight;
|
2020-02-26 22:59:30 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-04-14 19:22:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2020-09-17 20:44:42 +00:00
|
|
|
font-size: 1rem !important;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--link-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:visited {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--link-color-visited);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-12 20:40:57 +00:00
|
|
|
i.gdoc-icon {
|
|
|
|
font-family: "GeekdocIcons";
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
img {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2022-05-31 12:14:01 +00:00
|
|
|
#gdoc-color-theme {
|
2021-08-12 16:17:49 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2020-09-17 20:44:42 +00:00
|
|
|
.fake-link:hover {
|
2021-04-27 21:44:35 +00:00
|
|
|
background-image: linear-gradient(var(--link-color), var(--link-color));
|
2020-09-17 20:44:42 +00:00
|
|
|
background-position: 0 100%;
|
|
|
|
background-size: 100% 1px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
.wrapper {
|
2020-03-15 17:38:10 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-height: 100vh;
|
2021-04-27 21:44:35 +00:00
|
|
|
|
|
|
|
color: var(--body-font-color);
|
|
|
|
background: var(--body-background);
|
|
|
|
|
|
|
|
font-weight: $body-font-weight;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
width: 100%;
|
|
|
|
max-width: $container-max-width;
|
|
|
|
margin: 0 auto;
|
2020-09-07 19:51:04 +00:00
|
|
|
padding: $padding-16;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2020-01-12 14:33:02 +00:00
|
|
|
display: inline-block;
|
2022-04-23 13:14:42 +00:00
|
|
|
width: $font-size-20;
|
|
|
|
height: $font-size-20;
|
2022-01-12 21:43:00 +00:00
|
|
|
vertical-align: middle;
|
2020-01-12 14:33:02 +00:00
|
|
|
stroke-width: 0;
|
|
|
|
stroke: currentColor;
|
|
|
|
fill: currentColor;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gdoc-header {
|
2021-04-27 21:44:35 +00:00
|
|
|
background: var(--header-background);
|
|
|
|
color: var(--header-font-color);
|
2021-04-29 19:01:29 +00:00
|
|
|
border-bottom: 0.3em solid var(--footer-background);
|
2020-01-12 14:33:02 +00:00
|
|
|
|
|
|
|
&__link,
|
|
|
|
&__link:visited {
|
2021-08-12 16:17:49 +00:00
|
|
|
color: var(--header-font-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__link:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2021-05-21 11:31:19 +00:00
|
|
|
width: $font-size-32;
|
|
|
|
height: $font-size-32;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gdoc-brand {
|
2021-05-21 11:31:19 +00:00
|
|
|
font-size: $font-size-32;
|
2022-01-30 21:05:14 +00:00
|
|
|
line-height: $font-size-32;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
|
|
|
&__img {
|
2020-01-13 23:15:39 +00:00
|
|
|
margin-right: $padding-16;
|
2021-03-04 21:21:00 +00:00
|
|
|
width: 2rem;
|
|
|
|
height: 2rem;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-12 16:17:49 +00:00
|
|
|
.gdoc-menu-header {
|
|
|
|
&__items {
|
2022-01-23 12:21:44 +00:00
|
|
|
display: flex;
|
2021-08-24 15:35:11 +00:00
|
|
|
|
2021-10-15 09:50:11 +00:00
|
|
|
> span {
|
|
|
|
margin-left: $padding-8;
|
2021-08-24 15:35:11 +00:00
|
|
|
}
|
2021-08-12 16:17:49 +00:00
|
|
|
}
|
|
|
|
|
2021-08-24 15:45:40 +00:00
|
|
|
&__control,
|
|
|
|
&__home {
|
2021-08-12 16:17:49 +00:00
|
|
|
display: none;
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2021-08-12 16:17:49 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
.gdoc-nav {
|
|
|
|
flex: 0 0 $menu-width;
|
|
|
|
font-size: $font-size-14;
|
|
|
|
|
|
|
|
nav {
|
|
|
|
width: $menu-width;
|
2020-09-07 19:51:04 +00:00
|
|
|
padding: $padding-16 $padding-32 $padding-16 0;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
|
|
|
> ul > li > * {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2021-11-13 12:57:06 +00:00
|
|
|
> :first-child,
|
|
|
|
> :first-child > :first-child {
|
2020-01-12 14:33:02 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
2021-11-13 12:57:06 +00:00
|
|
|
|
|
|
|
section {
|
|
|
|
margin-top: $padding-32;
|
|
|
|
}
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__control {
|
|
|
|
display: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2021-08-12 16:17:49 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon.gdoc_menu {
|
2020-01-12 14:33:02 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-08-12 16:17:49 +00:00
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon.gdoc_arrow_back {
|
2020-01-12 14:33:02 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__list {
|
|
|
|
padding-left: 1em;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
2020-11-16 21:47:50 +00:00
|
|
|
user-select: none;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-left: $padding-16;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: $padding-8 0;
|
|
|
|
}
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2020-01-12 14:33:02 +00:00
|
|
|
margin-right: $padding-4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-16 21:47:50 +00:00
|
|
|
&__toggle {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
& ~ label {
|
|
|
|
cursor: pointer;
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon.toggle {
|
2022-04-23 13:14:42 +00:00
|
|
|
width: $font-size-16;
|
|
|
|
height: $font-size-16;
|
2020-11-16 21:47:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:checked) {
|
|
|
|
& ~ ul,
|
2022-04-18 18:33:23 +00:00
|
|
|
& ~ label svg.gdoc-icon.gdoc_keyboard_arrow_down {
|
2020-11-16 21:47:50 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2022-04-18 18:33:23 +00:00
|
|
|
& ~ label svg.gdoc-icon.gdoc_keyboard_arrow_left {
|
2020-11-16 21:47:50 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked {
|
|
|
|
& ~ ul,
|
2022-04-18 18:33:23 +00:00
|
|
|
& ~ label svg.gdoc-icon.gdoc_keyboard_arrow_down {
|
2020-11-16 21:47:50 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
& ~ label svg.gdoc-icon.gdoc_keyboard_arrow_left {
|
2020-11-16 21:47:50 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
&--main > ul > li > span,
|
2020-11-16 21:47:50 +00:00
|
|
|
&--main > ul > li > span > a,
|
|
|
|
&--main > ul > li > label,
|
|
|
|
&--main > ul > li > label > a {
|
2020-01-12 14:33:02 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-21 12:14:51 +00:00
|
|
|
.gdoc-nav__entry,
|
2022-01-23 12:21:44 +00:00
|
|
|
.gdoc-search__entry,
|
|
|
|
.gdoc-language__entry {
|
2020-12-21 12:14:51 +00:00
|
|
|
flex: 1;
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--body-font-color);
|
2020-12-21 12:14:51 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.is-active {
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-style: dashed !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:visited {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--body-font-color);
|
2020-12-21 12:14:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-23 12:21:44 +00:00
|
|
|
.gdoc-search__list,
|
|
|
|
.gdoc-language__list {
|
|
|
|
background: var(--body-background);
|
|
|
|
border-radius: $border-radius;
|
|
|
|
box-shadow: 0 1px 3px 0 var(--accent-color), 0 1px 2px 0 var(--accent-color-lite);
|
|
|
|
position: absolute;
|
|
|
|
margin: 0;
|
|
|
|
padding: $padding-8 !important;
|
|
|
|
list-style: none;
|
|
|
|
top: calc(100% + #{$padding-8});
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
.gdoc-page {
|
2022-04-23 13:14:42 +00:00
|
|
|
min-width: calc($body-min-width - $padding-32);
|
2020-01-12 14:33:02 +00:00
|
|
|
flex-grow: 1;
|
2020-09-07 19:51:04 +00:00
|
|
|
padding: $padding-16 0;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
2022-02-03 09:58:37 +00:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
&__header,
|
|
|
|
&__footer {
|
2022-04-23 13:14:42 +00:00
|
|
|
margin-bottom: $padding-24;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--control-icons);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a,
|
|
|
|
a:visited {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--link-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
2021-04-27 21:44:35 +00:00
|
|
|
background: var(--accent-color-lite);
|
2020-01-12 14:33:02 +00:00
|
|
|
padding: $padding-8 $padding-16;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__nav {
|
2020-03-15 17:38:10 +00:00
|
|
|
&:hover {
|
2021-04-27 21:44:35 +00:00
|
|
|
background-image: linear-gradient(var(--link-color), var(--link-color));
|
2020-03-15 17:38:10 +00:00
|
|
|
background-position: 0 100%;
|
|
|
|
background-size: 100% 1px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
2020-02-26 22:59:30 +00:00
|
|
|
|
2020-03-17 22:22:51 +00:00
|
|
|
&__anchorwrap {
|
2022-04-18 18:33:23 +00:00
|
|
|
&:hover .gdoc-page__anchor svg.gdoc-icon {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--control-icons);
|
2020-03-17 22:22:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-15 17:38:10 +00:00
|
|
|
&__anchor {
|
2022-06-10 19:44:08 +00:00
|
|
|
margin-left: $padding-8;
|
2020-02-27 08:50:11 +00:00
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2022-06-10 19:44:08 +00:00
|
|
|
width: 1.4em;
|
|
|
|
height: 1.4em;
|
2020-03-17 22:22:51 +00:00
|
|
|
color: transparent;
|
2020-02-27 08:50:11 +00:00
|
|
|
}
|
2022-06-10 19:44:08 +00:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
svg.gdoc-icon {
|
|
|
|
color: var(--control-icons);
|
|
|
|
}
|
|
|
|
}
|
2020-02-26 22:59:30 +00:00
|
|
|
}
|
2021-11-24 08:10:26 +00:00
|
|
|
|
|
|
|
&__footer {
|
|
|
|
margin-top: $padding-32;
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.gdoc-post {
|
|
|
|
word-wrap: break-word;
|
|
|
|
border-top: 1px dashed $gray-600;
|
2020-09-17 20:44:42 +00:00
|
|
|
padding: $padding-32 0;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
2020-09-17 20:44:42 +00:00
|
|
|
&:first-of-type {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
h1 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
a,
|
|
|
|
a:visited {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--body-font-color);
|
2020-09-17 20:44:42 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
background: none;
|
|
|
|
text-decoration: underline;
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--body-font-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
border-top: 0;
|
|
|
|
|
|
|
|
h1 {
|
2020-06-01 13:59:02 +00:00
|
|
|
margin-top: 0;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__readmore {
|
2022-02-07 12:52:12 +00:00
|
|
|
margin: $padding-32 0;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
2020-09-17 20:44:42 +00:00
|
|
|
a,
|
|
|
|
a:hover,
|
|
|
|
a:visited {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--link-color);
|
2020-09-17 20:44:42 +00:00
|
|
|
text-decoration: none !important;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
2021-09-01 08:18:00 +00:00
|
|
|
|
|
|
|
&__meta {
|
2022-04-18 18:33:23 +00:00
|
|
|
span svg.gdoc-icon {
|
2022-02-03 09:58:37 +00:00
|
|
|
margin-left: -5px;
|
|
|
|
}
|
2021-09-01 08:18:00 +00:00
|
|
|
|
2022-02-07 12:52:12 +00:00
|
|
|
> span {
|
|
|
|
margin: $padding-4 0;
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: $padding-8;
|
|
|
|
}
|
2021-09-01 08:18:00 +00:00
|
|
|
}
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2022-04-23 13:14:42 +00:00
|
|
|
font-size: $font-size-20;
|
2022-02-03 09:58:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.gdoc-button {
|
2022-02-07 12:52:12 +00:00
|
|
|
margin: 0 $padding-2 0 0;
|
2022-02-03 09:58:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--head {
|
2022-02-07 12:52:12 +00:00
|
|
|
margin-bottom: $padding-32;
|
2021-09-01 08:18:00 +00:00
|
|
|
}
|
|
|
|
}
|
2021-11-07 21:12:14 +00:00
|
|
|
|
|
|
|
&__codecontainer {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:hover > .gdoc-post__codecopy {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__codecopy {
|
|
|
|
visibility: hidden;
|
|
|
|
position: absolute;
|
|
|
|
top: 0.5rem;
|
2022-06-10 19:44:08 +00:00
|
|
|
right: 1rem;
|
2021-11-07 21:12:14 +00:00
|
|
|
|
|
|
|
border: $border-2 solid var(--code-copy-border-color);
|
|
|
|
border-radius: $border-radius;
|
2022-06-10 19:44:08 +00:00
|
|
|
background: var(--code-copy-background);
|
2021-11-07 21:12:14 +00:00
|
|
|
width: 2.2rem;
|
|
|
|
height: 2.2rem;
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2021-11-07 21:12:14 +00:00
|
|
|
top: 0;
|
|
|
|
width: $font-size-20;
|
|
|
|
height: $font-size-20;
|
|
|
|
color: var(--code-copy-font-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--success {
|
|
|
|
border-color: var(--code-copy-success-color);
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2021-11-07 21:12:14 +00:00
|
|
|
color: var(--code-copy-success-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.gdoc-footer {
|
2021-04-27 21:44:35 +00:00
|
|
|
background: var(--footer-background);
|
|
|
|
color: var(--footer-font-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
|
2021-07-20 07:58:56 +00:00
|
|
|
.fake-link:hover {
|
2022-01-06 12:58:10 +00:00
|
|
|
background-image: linear-gradient(var(--footer-link-color), var(--footer-link-color));
|
2021-07-20 07:58:56 +00:00
|
|
|
}
|
|
|
|
|
2020-02-05 00:15:51 +00:00
|
|
|
&__item {
|
2020-09-19 20:06:38 +00:00
|
|
|
line-height: 2em;
|
2021-07-20 07:58:56 +00:00
|
|
|
|
|
|
|
&--row {
|
2021-11-24 08:10:26 +00:00
|
|
|
margin-right: $padding-16;
|
2021-07-20 07:58:56 +00:00
|
|
|
}
|
2020-02-05 00:15:51 +00:00
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
&__link {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--footer-link-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
|
|
|
|
&:visited {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--footer-link-color-visited);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gdoc-search {
|
|
|
|
position: relative;
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2020-01-12 14:33:02 +00:00
|
|
|
position: absolute;
|
2022-04-23 13:14:42 +00:00
|
|
|
left: $padding-8;
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--control-icons);
|
2020-01-12 14:33:02 +00:00
|
|
|
width: $font-size-16;
|
|
|
|
height: $font-size-16;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__input {
|
|
|
|
width: 100%;
|
|
|
|
padding: $padding-8;
|
2020-09-07 19:51:04 +00:00
|
|
|
padding-left: $padding-32;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
2021-04-27 21:44:35 +00:00
|
|
|
border: $border-1 solid var(--accent-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
border-radius: $border-radius;
|
|
|
|
|
2021-04-27 21:44:35 +00:00
|
|
|
background: var(--accent-color-lite);
|
|
|
|
color: var(--body-font-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
|
|
|
|
&:required + &__spinner {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__spinner {
|
|
|
|
position: absolute;
|
|
|
|
margin: $padding-8;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
width: $padding-16;
|
|
|
|
height: $padding-16;
|
|
|
|
|
2021-02-21 21:34:34 +00:00
|
|
|
border: $border-1 solid transparent;
|
2021-04-27 21:44:35 +00:00
|
|
|
border-top-color: var(--body-font-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
@include spin(1s);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__list {
|
2021-03-06 10:24:58 +00:00
|
|
|
visibility: hidden;
|
2020-12-20 19:09:49 +00:00
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
2020-01-12 14:33:02 +00:00
|
|
|
|
|
|
|
ul {
|
2020-12-20 19:09:49 +00:00
|
|
|
list-style: none;
|
|
|
|
margin-top: $padding-8;
|
|
|
|
padding-left: 0;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: $padding-4 0;
|
|
|
|
}
|
|
|
|
|
2020-12-20 19:09:49 +00:00
|
|
|
> li > span {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
> li + li {
|
2020-12-21 12:14:51 +00:00
|
|
|
margin-top: $padding-8;
|
2020-12-20 19:09:49 +00:00
|
|
|
}
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2020-01-12 14:33:02 +00:00
|
|
|
margin-right: $padding-4;
|
|
|
|
}
|
2020-12-20 19:09:49 +00:00
|
|
|
}
|
|
|
|
|
2021-03-06 10:24:58 +00:00
|
|
|
&:focus-within &__list.has-hits,
|
|
|
|
&__list.has-hits:active {
|
|
|
|
visibility: visible;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-23 12:21:44 +00:00
|
|
|
.gdoc-language {
|
|
|
|
&__selector {
|
|
|
|
position: relative;
|
|
|
|
list-style: none;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:focus-within,
|
|
|
|
&:active {
|
|
|
|
.gdoc-language__list {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__list {
|
|
|
|
display: none;
|
|
|
|
right: 0;
|
|
|
|
width: auto;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-16 10:06:35 +00:00
|
|
|
.gdoc-paging {
|
|
|
|
padding: $padding-16 0;
|
|
|
|
|
|
|
|
&__item {
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
|
|
|
a:visited {
|
|
|
|
color: var(--link-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover,
|
|
|
|
a:visited:hover {
|
|
|
|
background: var(--link-color);
|
|
|
|
color: $gray-100;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--next {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--prev {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-12 14:33:02 +00:00
|
|
|
.gdoc-error {
|
2022-04-23 13:14:42 +00:00
|
|
|
padding: $padding-96 $padding-16;
|
2020-01-12 14:33:02 +00:00
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 45em;
|
|
|
|
|
2022-04-18 18:33:23 +00:00
|
|
|
svg.gdoc-icon {
|
2021-05-21 11:31:19 +00:00
|
|
|
width: $font-size-128;
|
|
|
|
height: $font-size-128;
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--body-font-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__link,
|
|
|
|
&__link:visited {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--link-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__message {
|
2022-04-23 13:14:42 +00:00
|
|
|
padding-left: $padding-64;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__line {
|
|
|
|
padding: $padding-8 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
2021-05-21 11:31:19 +00:00
|
|
|
font-size: $font-size-64;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__code {
|
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gdoc-toc {
|
|
|
|
// Classes to hide nested levels of ToC/Menu
|
2020-02-16 22:05:53 +00:00
|
|
|
&__level--1 ul ul,
|
|
|
|
&__level--2 ul ul ul,
|
|
|
|
&__level--3 ul ul ul ul,
|
|
|
|
&__level--4 ul ul ul ul ul,
|
|
|
|
&__level--5 ul ul ul ul ul ul,
|
|
|
|
&__level--6 ul ul ul ul ul ul ul {
|
2020-01-12 14:33:02 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a,
|
|
|
|
a:visited {
|
2021-04-27 21:44:35 +00:00
|
|
|
color: var(--link-color);
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Responsive styles
|
|
|
|
.gdoc-nav nav,
|
|
|
|
.gdoc-page,
|
|
|
|
.markdown {
|
|
|
|
transition: 0.2s ease-in-out;
|
|
|
|
transition-property: transform, margin-left, opacity;
|
2020-05-31 16:20:39 +00:00
|
|
|
will-change: transform, margin-left;
|
2020-01-12 14:33:02 +00:00
|
|
|
}
|
2021-02-20 21:54:49 +00:00
|
|
|
|
|
|
|
// Breadcrumbs styles
|
|
|
|
.breadcrumb {
|
|
|
|
display: inline;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|