Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/scss/_navbar_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
margin-right: 0.75rem;

.current {
color: $primary !important;
color: $primary;
}

// @media (min-width: 768px) {
Expand Down
37 changes: 26 additions & 11 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,17 @@ a:not([href]):not([class]):hover {
height: calc(100vh - 5.5rem);
top: 5.5rem;
overflow-y: auto;
padding-top: 1rem;
padding-top: 0;
margin-top: 0;
overflow-x: hidden;
}

.td-sidebar #td-sidebar-menu,
.td-sidebar .td-sidebar__search {
padding-top: 0;
margin-top: 0;
}

@media screen and (max-width: 768px) {
.td-sidebar {
position: relative;
Expand Down Expand Up @@ -604,11 +611,23 @@ a:not([href]):not([class]):hover {
.dash-sign-container {
display: flex;
align-items: center;
justify-content: space-between;
text-align: right;

h1.dashboard {
max-width: 40%;
text-align: left;
flex-shrink: 0;
}

@media (max-width: 768px) {
flex-wrap: wrap;
justify-content: center;

h1.dashboard {
max-width: 100%;
text-align: center;
}
}

a.dash-sign {
Expand All @@ -623,18 +642,16 @@ a:not([href]):not([class]):hover {
position: relative;
width: auto;
white-space: nowrap;
// top: 50%;
// left: 50%;
padding: 2rem;
margin: 15rem;
transform: translateX(-50%) translateY(-50%);
margin: 0;
transform: translateX(0%) translateY(0%);

&:hover {
color: "#EBC017" !important;
color: #EBC017;
}

@media (max-width: 1440px) {
margin: 0rem;
@media (max-width: 768px) {
margin: 2rem 0 0 0;
}
}

Expand All @@ -650,7 +667,6 @@ a:not([href]):not([class]):hover {
border: 8px solid $primary;
transform: translateX(-50%) translateY(-50%) rotate(0deg);
animation: 6s alternate ease-in-out tipsy;
// animation-play-state: paused;
}

a.dash-sign:before {
Expand All @@ -665,11 +681,10 @@ a:not([href]):not([class]):hover {

a.dash-sign:visited {
color: $white;
// animation-play-state: running;
}

a.dash-sign:hover {
color: #ebc017 !important;
color: #ebc017;
}
}

Expand Down
1 change: 1 addition & 0 deletions assets/scss/td/_nav.scss

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sbragul26 why this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this because after upgrading Docsy, it now uses td/_nav.scss for navbar styles.
Our old navbar styles (in _nav.scss) were not getting applied, so I imported them here to make sure they work again.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen-Recording.mp4

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, instead of importing, we could directly move our _nav.scss into td/. That should also work — just checking if that approach is preferred? I didn’t change that for now.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "../nav";
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/layer5io/docs
go 1.23

require (
github.com/google/docsy v0.12.0 // indirect
github.com/google/docsy v0.14.3 // indirect
github.com/google/docsy/dependencies v0.7.2 // indirect
)
5 changes: 3 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.12.0 h1:CddZKL39YyJzawr8GTVaakvcUTCJRAAYdz7W0qfZ2P4=
github.com/google/docsy v0.12.0/go.mod h1:1bioDqA493neyFesaTvQ9reV0V2vYy+xUAnlnz7+miM=
github.com/google/docsy v0.14.3 h1:4uFgPWTPj4NT79IboVkXGi49LLQadLVfU4WNOfD/s74=
github.com/google/docsy v0.14.3/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU=
github.com/google/docsy/dependencies v0.7.2 h1:+t5ufoADQAj4XneFphz4A+UU0ICAxmNaRHVWtMYXPSI=
github.com/google/docsy/dependencies v0.7.2/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/twbs/bootstrap v5.3.8+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
Loading