-
-
Notifications
You must be signed in to change notification settings - Fork 351
Fix sidebar toggle behavior #482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wurstbrot
merged 6 commits into
devsecopsmaturitymodel:main
from
Klath123:feature-sidebar-toggle
Feb 21, 2026
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
087ffef
fix sidebar toggle
Klath123 120e8b6
fix linting issues
Klath123 df0f98c
fix navbar and sidenav layout
Klath123 dab8326
fix unit test and linting issues
Klath123 6bbaf94
fix linting issues
Klath123 d095ce3
fix hamburger position
Klath123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,52 +1,99 @@ | ||
| /* --- experimental branch --- */ | ||
| /* .mat-drawer-container { | ||
| background-color: #fffff4; | ||
| } */ | ||
| .tag-line { | ||
| .navbar { | ||
| position: sticky; | ||
| top: 0; | ||
| z-index: 5; | ||
| padding: 0 16px; | ||
| display: flex; | ||
| align-items: center; | ||
| height: 64px; | ||
| transition: all 0.25s ease; | ||
| } | ||
| .logo { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: flex-start; | ||
| text-decoration: none; | ||
| margin-left: -4px; | ||
| height: 100%; | ||
| } | ||
| .logo-icon { | ||
| transform: scale(0.95); | ||
| transform-origin: left center; | ||
| width: auto; | ||
| display: block; | ||
| margin: auto 0; | ||
| } | ||
| .title-container { | ||
| position: absolute; | ||
| left: 50%; | ||
| transform: translateX(-50%); | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| text-align: center; | ||
| animation: fadeSlide 0.4s ease; | ||
| margin-top: 4px; | ||
| gap: 3px; | ||
| } | ||
| .tag-title { | ||
| font-size: 0.9em; | ||
| font-size: 0.85em; | ||
| font-weight: 500; | ||
| line-height: 1; | ||
| letter-spacing: 0.04em; | ||
| } | ||
| .tag-subtitle { | ||
| font-size: 0.7em; | ||
| font-size: 0.65em; | ||
| margin-top: 0; | ||
| letter-spacing: 0.08em; | ||
| opacity: 0.6; | ||
| } | ||
| .github-fork-ribbon::before { | ||
| background-color: #333; | ||
| } | ||
|
|
||
| /* --- experimental branch end --- */ | ||
|
|
||
| .main-container { | ||
| width: 100%; | ||
| height: 100%; | ||
| .menu-btn { | ||
| margin-right: 4px; | ||
| transition: all 0.2s ease; | ||
| } | ||
|
|
||
| .sidenav-content { | ||
| display: flex; | ||
| padding: 10px; | ||
| justify-content: space-between; | ||
| .menu-btn:hover { | ||
| background: rgba(0,0,0,0.04); | ||
| transform: scale(1.05); | ||
| } | ||
|
|
||
| .sidenav-menu { | ||
| padding: 20px; | ||
| .spacer { | ||
| flex: 1 1 auto; | ||
| } | ||
|
|
||
| .menu-close { | ||
| position: absolute; | ||
| right: 0; | ||
| top: 2px; | ||
| background: transparent; | ||
| border: 0; | ||
| color: #ddd; | ||
| } | ||
|
|
||
| .github-fork-ribbon:before { | ||
| background-color: #333; | ||
| .content { | ||
| padding: 24px; | ||
| animation: fadeSlide 1s ease; | ||
| } | ||
| @keyframes fadeSlide { | ||
| from { | ||
| opacity: 0; | ||
| transform: translateY(-5px); | ||
| } | ||
| to { | ||
| opacity: 1; | ||
| transform: translateY(0); | ||
| } | ||
| } | ||
|
|
||
| @media only screen and (max-width: 750px) { | ||
| .github-fork-ribbon { | ||
| @media (max-width: 768px) { | ||
| .title-container { | ||
| font-size: 14px; | ||
| } | ||
| .tag-title { | ||
| font-size: 14px; | ||
| } | ||
| .tag-subtitle { | ||
| font-size: 11px; | ||
| } | ||
| .github-fork-ribbon { | ||
| display: none; | ||
| } | ||
|
|
||
| } | ||
| .logo, | ||
| .logo-icon { | ||
| opacity: 0; | ||
| visibility: hidden; | ||
| width: 0; | ||
| margin: 0; | ||
| overflow: hidden; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,35 @@ | ||
| <mat-drawer-container class="main-container" autosize> | ||
| <mat-drawer #drawer class="sidenav-menu" mode="side" opened="{{ menuIsOpen }}"> | ||
| <button class="menu-close" (click)="toggleMenu()"> | ||
| <mat-icon class="white-icon">close</mat-icon> | ||
| </button> | ||
| <a routerLink="/"><app-logo></app-logo></a> | ||
| <app-sidenav-buttons></app-sidenav-buttons> | ||
| </mat-drawer> | ||
|
|
||
| <div class="sidenav-content"> | ||
| <button type="button" mat-button (click)="toggleMenu()" color="primary"> | ||
| <mat-icon>menu</mat-icon> | ||
| </button> | ||
| <mat-toolbar class="mat-elevation-z2 navbar"> | ||
| <button mat-icon-button (click)="toggleMenu()" class="menu-btn"> | ||
| <mat-icon>menu</mat-icon> | ||
| </button> | ||
| <a routerLink="/" class="logo"> | ||
| <app-logo class="logo-icon"></app-logo> | ||
| </a> | ||
| <div class="title-container"> | ||
| <div class="tag-line"> | ||
| <div class="tag-title">{{ title || defaultTitle }}</div> | ||
| <div class="tag-subtitle">{{ subtitle }}</div> | ||
| <div class="tag-title"> | ||
| {{ title || defaultTitle }} | ||
| </div> | ||
| <div class="tag-subtitle" *ngIf="subtitle"> | ||
| {{ subtitle }} | ||
| </div> | ||
| </div> | ||
| <div class="dummy"></div> | ||
| <a | ||
| target="_blank" | ||
| class="github-fork-ribbon" | ||
| href="https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel" | ||
| data-ribbon="Fork me on GitHub" | ||
| title="Fork me on GitHub" | ||
| >Fork me on GitHub</a | ||
| > | ||
| </div> | ||
| <mat-divider></mat-divider> | ||
| <router-outlet></router-outlet> | ||
| </mat-drawer-container> | ||
| <span class="spacer"></span> | ||
| <a | ||
| target="_blank" | ||
| class="github-fork-ribbon" | ||
| href="https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel" | ||
| data-ribbon="Fork me on GitHub" | ||
| title="Fork me on GitHub"> | ||
| Fork me on GitHub | ||
| </a> | ||
| </mat-toolbar> | ||
| <mat-sidenav-container class="sidenav-container"> | ||
| <mat-sidenav mode="side" opened class="sidenav" [style.width]="sidenavWidth"> | ||
| <app-sidenav-buttons></app-sidenav-buttons> | ||
| </mat-sidenav> | ||
| <mat-sidenav-content class="content" [style.margin-left]="sidenavWidth"> | ||
| <router-outlet></router-outlet> | ||
| </mat-sidenav-content> | ||
| </mat-sidenav-container> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.