Skip to content

Commit 9d07113

Browse files
authored
website: Fixed alignment of items. (#4270)
* added the styles to fix the alignment in the navbar, rendered a margin from the top of the Kubeflow icon. Signed-off-by: D.Leap <dilipkumar2000.r@gmail.com> * added media breakpoint for the vertical line. Signed-off-by: D.Leap <dilipkumar2000.r@gmail.com> --------- Signed-off-by: D.Leap <dilipkumar2000.r@gmail.com>
1 parent 02df389 commit 9d07113

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

assets/scss/_styles_project.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,21 @@ nav.foldable-nav {
398398
.vr {
399399
display: inline-block;
400400
width: 1px;
401-
height: 100%;
402-
background-color: white;
403-
opacity: 0.15;
401+
height: 24px;
402+
background-color: rgba(255, 255, 255, 0.3);
403+
align-self: center;
404+
margin: 0 0.5rem;
405+
@include media-breakpoint-down(md){
406+
rotate: 90deg;
407+
}
404408
}
405409

406410
.navbar-brand {
407411
margin: 0;
408412
padding: 0;
413+
display: flex;
414+
align-items: center;
415+
justify-content: center;
409416

410417
.text-uppercase {
411418
display: none;
@@ -415,10 +422,11 @@ nav.foldable-nav {
415422
svg {
416423
display: inline-block;
417424
position: absolute;
425+
border-radius: 5px;
418426
top: 0;
419427
z-index: 33;
420428
padding: 10px;
421-
margin: 0;
429+
margin: 10px;
422430
height: 95px;
423431
background: $navbar-logo-bg;
424432
border: 2px solid $navbar-logo-border;
@@ -455,6 +463,8 @@ nav.foldable-nav {
455463
.navbar-nav {
456464
// allow wrapping of navbar links
457465
white-space: normal;
466+
display: flex;
467+
align-items: center;
458468

459469
.dropdown-toggle {
460470
white-space: normal;

0 commit comments

Comments
 (0)