From 07a319267d93bedb782653c1e67580892c0d45d5 Mon Sep 17 00:00:00 2001 From: ParzivalPavlis Date: Mon, 28 Jul 2025 10:52:33 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=9A=80=20updated=20gooddata=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/assets/scss/_styles_project.scss | 1 + docs/assets/scss/menu.scss | 227 ------------------------ docs/go.mod | 2 +- docs/go.sum | 2 + docs/layouts/docs/baseof.html | 2 +- docs/layouts/partials/sidebar-tree.html | 1 + 6 files changed, 6 insertions(+), 229 deletions(-) delete mode 100644 docs/assets/scss/menu.scss diff --git a/docs/assets/scss/_styles_project.scss b/docs/assets/scss/_styles_project.scss index dd7ddb551..f4347f7eb 100644 --- a/docs/assets/scss/_styles_project.scss +++ b/docs/assets/scss/_styles_project.scss @@ -20,6 +20,7 @@ @import "tooltip"; @import "homepage"; @import "tables"; +@import "heading-anchor"; @import "content-select"; @import "embedded-image"; @import "api-reference"; diff --git a/docs/assets/scss/menu.scss b/docs/assets/scss/menu.scss deleted file mode 100644 index d41f2fd6b..000000000 --- a/docs/assets/scss/menu.scss +++ /dev/null @@ -1,227 +0,0 @@ -@import "variables/variables"; - -.td-sidebar { - position: relative; - display: flex; - flex-direction: column; - padding-top: $header-height; - padding-left: 0; - padding-bottom: 0; - border: none; - background: none; -} - -.gd-docs-menu { - position: fixed; - top: $header-first-nav-height + 1px; - bottom: 0; - left: -100%; - z-index: 33; - overflow: auto; - width: calc(100% - 55px); - flex: 1 1 auto; - padding: 32px 40px; - background: #f8f8f8; - transition: $transition; - - @include mq(medium) { - position: absolute; - top: $header-height; - left: 0; - right: 0; - bottom: 0; - z-index: 0; - width: 100%; - max-width: 380px; - - @supports(position: sticky) { - position: sticky; - bottom: auto; - max-height: calc(100vh - #{$header-height}); - } - } - - &.init { - opacity: 0; - } - - &__mobile-trigger { - display: none; - } - - &__mobile-icon { - position: fixed; - top: $header-first-nav-height; - display: flex; - justify-content: center; - align-items: center; - width: 55px; - height: $header-second-nav-height; - left: 10px; - z-index: 32; - transition: $transition; - - &::before { - content: url("../img/burger.svg"); - display: block; - width: 26px; - height: 22px; - } - - &::after { - content: ""; - display: none; - width: 31px; - height: 31px; - background-image: url("../img/close.svg"); - background-repeat: no-repeat; - background-size: contain; - } - - @include mq(medium) { - display: none; - } - } - - &__mobile-trigger:checked ~ & { - left: 0; - } - - &__mobile-trigger:checked ~ &__mobile-icon { - left: calc(100% - 55px); - - &::before { - display: none; - } - - &::after { - display: block; - } - } - - & > &-section { - padding-left: 0; - } - - &-section { - padding-left: 12px; - list-style-type: none; - - & + & { - padding-top: 1rem; - border-top: 1px solid $color-dove-gray; - } - - &__root { - margin-bottom: 0; - } - - &__root + & { - padding-top: 0; - border-top: 0; - } - } - - &-page__label ~ &-section { - padding-left: 0; - } - - // PETR: Menu styling is here - - &-page { - &__separator { - margin-top: 1rem; - margin-bottom: 1rem; - padding-top: 1rem; - border-top: 1px solid $color-dove-gray; - } - - &__title { - display: flex; - } - - &__link { - position: relative; - display: inline-block; - flex: 1 1 auto; - margin: 2px 20px 2px 0; // orig values -> 8px 20px 3px 0; - padding: 0 0 5px; - max-width: 100%; - font-size: 15px; - //font-family: "Lucida Console", "Courier New", monospace; - line-height: 1.5; - - &, - &:hover, - &:active, - &:focus { - color: $color-deep-purple; - } - - &:hover, - &:active, - &:focus { - text-decoration: underline; - } - } - - &.active > &__title &__link { - font-family: $gdfont-demibold; - color: $color-shocking-pink; - - &, - &:hover, - &:active, - &:focus { - text-decoration: none; - } - } - - &__toggle { - display: none; - } - - &__chevron { - margin: 4px 0 0; - cursor: pointer; - - svg { - transform: rotate(180deg); - } - } - - &__toggle:checked ~ &__title &__chevron { - svg { - transform: rotate(0deg); - } - } - - &__label { - display: block; - flex: 0 0 auto; - margin: 16px 0 16px -12px; - color: rgba($color-deep-purple, 0.4); - font-family: $gdfont-demibold; - font-size: 12px; - text-transform: uppercase; - } - } - - &-page__toggle ~ &-section { - display: none; - } - - &-page__toggle:checked ~ &-section { - display: block; - } - - h4 { - margin-top: 0; - margin-bottom: 1rem; - padding-bottom: 1rem; - border-bottom: 1px solid $color-dove-gray; - font-family: $gdfont-demibold; - font-size: 21px; - line-height: 1.25; - } -} diff --git a/docs/go.mod b/docs/go.mod index 6f0d4aa6e..c12085e4e 100644 --- a/docs/go.mod +++ b/docs/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2 // indirect - github.com/gooddata/gooddata-docs-theme v0.0.0-20250218135411-9b695c2f96fb // indirect + github.com/gooddata/gooddata-docs-theme v0.0.0-20250728083840-04b9dbaa193b // indirect github.com/google/docsy v0.7.1 // indirect github.com/google/docsy/dependencies v0.7.1 // indirect github.com/twbs/bootstrap v5.3.1+incompatible // indirect diff --git a/docs/go.sum b/docs/go.sum index 4878fd36b..bb62cadfe 100644 --- a/docs/go.sum +++ b/docs/go.sum @@ -22,6 +22,8 @@ github.com/gooddata/gooddata-docs-theme v0.0.0-20250129122538-80db631526db h1:/Y github.com/gooddata/gooddata-docs-theme v0.0.0-20250129122538-80db631526db/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA= github.com/gooddata/gooddata-docs-theme v0.0.0-20250218135411-9b695c2f96fb h1:BwV4BkG0UTF15qMO3q4X+qhtReGTnGkFqe8KMnwcDAs= github.com/gooddata/gooddata-docs-theme v0.0.0-20250218135411-9b695c2f96fb/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA= +github.com/gooddata/gooddata-docs-theme v0.0.0-20250728083840-04b9dbaa193b h1:W9rFVkzudqvKQnHwQqy4HKgh+le78DHXqY+JVvcQIHc= +github.com/gooddata/gooddata-docs-theme v0.0.0-20250728083840-04b9dbaa193b/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA= github.com/google/docsy v0.7.1 h1:DUriA7Nr3lJjNi9Ulev1SfiG1sUYmvyDeU4nTp7uDxY= github.com/google/docsy v0.7.1/go.mod h1:JCmE+c+izhE0Rvzv3y+AzHhz1KdwlA9Oj5YBMklJcfc= github.com/google/docsy/dependencies v0.7.1 h1:NbzYKJYMin2q50xdWSUzR2c9gCp7zR/XHDBcxklEcTQ= diff --git a/docs/layouts/docs/baseof.html b/docs/layouts/docs/baseof.html index 3a9e9af84..7268a14c5 100644 --- a/docs/layouts/docs/baseof.html +++ b/docs/layouts/docs/baseof.html @@ -22,7 +22,7 @@
{{ partial "toc.html" . }}
-
+
{{ partial "version-banner.html" . }} {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} {{ if .Draft }} diff --git a/docs/layouts/partials/sidebar-tree.html b/docs/layouts/partials/sidebar-tree.html index a50bad78d..b01da0d9a 100644 --- a/docs/layouts/partials/sidebar-tree.html +++ b/docs/layouts/partials/sidebar-tree.html @@ -1,6 +1,7 @@ +