Skip to content
Closed
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
110 changes: 110 additions & 0 deletions assets/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
169 changes: 106 additions & 63 deletions assets/scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ $announcement-size-adjustment: 8px;
}

main {
padding-left: 2rem;

*:not(figure) > img {
max-width: 100%;
}
Expand Down Expand Up @@ -157,79 +159,98 @@ body.td-404 main .error-details {

/* HEADER */

.td-navbar {
body > header:first-child nav.td-navbar {
width: 100vw;
position: fixed !important;
width: 100%;
margin: 0;
padding: 0;
padding-bottom: 1rem !important;
background: transparent !important;
background: transparent;
transition: 0.3s;

.navbar-brand {
position: absolute;
width: 45px;
height: 44px;
background-repeat: no-repeat;
background-size: contain;
background-image: url("/images/logo-header.png");
display: inline-block;
margin-top: 0.5rem;
}

#hamburger {
&:focus {
outline: none;
}
.navbar-site-title {
display: none;
visibility: collapse;
}

@media only screen and (min-width: 768px) {
.navbar-brand {
background-image: url("/images/nav_logo.svg");
top: 1.5rem;
width: 180px;
margin-left: 1rem;
#main_navbar {
ul.navbar-nav > li {
a.nav-link {
display: block;
border-bottom : 2px solid transparent;
}

a.nav-link.active {
border-bottom : 2px solid $white;
}
}
}
}

.td-navbar-nav-scroll {
overflow: visible !important;
display: none;

.navbar-nav {
overflow: visible !important;
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
@media only screen and (max-width: 1280px) and (min-width: 1024px) {
.search-bar {
display: none;
}
#main_navbar {
position: fixed;
right: 0;

.nav-item {
position: relative;
height: 10%;
}
}
@media only screen and (max-width: 512px) {
& {
min-height: 10rem;
}
#main_navbar {
ul.navbar-nav {
visibility: hidden;
}
}
}
@media only screen and (max-width: 1024px) {
#main_navbar {
ul.navbar-nav {
justify-content: center;
max-width: calc(max(80vw, 100vw-1.5rem));
flex-wrap: wrap;
overflow-x: clip;
min-height: 2rem;

.active::after {
position: absolute;
width: 100%;
height: 2px;
content: "";
bottom: -4px;
left: 0;
background: #fff;
}
}
}

@media only screen and (min-width: 768px) {
display: block;
margin-top: 3.5rem !important;
#hamburger {
position: fixed;
right: 1rem;
top: 1rem;
&:focus {
outline: none;
}
}
// Kubernetes logo starts off with white text
.navbar-logo #kubernetes-logo-text {
fill: $white;
}
Comment on lines +235 to +238
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is using CSS to style the text within the SVG logo.

}

@media only screen and (min-width: 1170px) {
margin-top: 1rem !important;
body > header:first-child nav.td-navbar + section.header-hero {
@media only screen and (max-width: 512px) {
h1 {
visibility: hidden;
}
h1 {
visibility: collapse; // if supported
}
}
}

// Flip-Nav
.flip-nav .td-navbar {
background-color: white !important;
.flip-nav body > header:first-child nav.td-navbar {
background-color: $white;
box-shadow: 0 1px 2px $medium-grey;

.navbar-nav {
Expand All @@ -251,14 +272,6 @@ body.td-404 main .error-details {
}
}

.navbar-nav .nav-item .active {
color: $dark-grey;

&::after {
background: $dark-grey;
}
}

#hamburger:hover {
div,
&:before,
Expand All @@ -267,14 +280,13 @@ body.td-404 main .error-details {
}
}

@media only screen and (min-width: 768px) {
.navbar-brand {
background-image: url("/images/nav_logo2.svg");
}
// Kubernetes logo changes to blue text
.navbar-logo #kubernetes-logo-text {
fill: $primary;
}
}

.search-item.nav-item {
header nav.navbar .search-bar {
input, input::placeholder {
color: black;
width: 200px;
Expand Down Expand Up @@ -416,6 +428,37 @@ footer {
}
}

/* SPLITTER (resizable sidebar) */
.gutter {
background-color: #eee;
background-repeat: no-repeat;
background-position: 50%;
flex-grow: 0;
padding: 0;
}

.gutter.gutter-horizontal {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
cursor: col-resize;
}

#sidebarnav,
#maindoc {
max-width: 100%;
}

#maindoc {
overflow-wrap: break-word;
}

@media (max-width: 768px) {
#sidebarnav {
padding-left: 15px;
padding-right: 15px;
}

}

/* SIDE-DRAWER MENU */

.pi-pushmenu .sled {
Expand Down
5 changes: 5 additions & 0 deletions assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ $tooltip-font-size: 1rem;
$tooltip-padding: 5px 8px;
$tooltip-border-radius: 6px;
$tooltip-font-weight: 400;

// input placeholders
$input-placeholder-color: $gray-600 !default;
$placeholder-opacity-max: .5 !default;
$placeholder-opacity-min: .2 !default;
2 changes: 2 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ url = "https://v1-28.docs.kubernetes.io"

# User interface configuration
[params.ui]
# Allow resizing the sidebar gutter
sidebar_resizable = true
# Enable to show the side bar menu in its compact state.
sidebar_menu_compact = false
# Show this many levels in compact mode
Expand Down
Loading