Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
CrackerakiUA committed Jan 28, 2025
2 parents 055c1ba + 6253b71 commit 0856ca6
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/app/core/theme/user/user.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ul>
</nav>

<div class="main" [class.showTable]="showSidebar">
<div class="main" [class.documents-wrapper--open]="isMenuOpen">
<div class="fade" [@showInOut]="showSidebar" *ngIf="showSidebar"></div>
<div class="nav__burger _active" [class._active]="showSidebar">
<div class="nav__burger-list">
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/theme/user/user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { Component } from '@angular/core';
standalone: false
})
export class UserComponent {
isMenuOpen = false

readonly url = environment.url;
forceAvatarUrl = '';
showSidebar = false;
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/user/projects/project/project.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="document__title">
<div class="documents__title">
{{project.name}}
</div>
<div class="document__description">
<div class="documents__description">
{{project.description}}
</div>
70 changes: 52 additions & 18 deletions src/scss/layout/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,10 @@ wform {
height: 27px;
position: relative;
}

.burger {
height: 5px;
width: 100%;
background-color: rgb(255, 255, 255);
background-color: var(--c-text-primary);
transition: all .3s;
}

Expand All @@ -269,7 +268,7 @@ wform {
width: 100%;
height: 5px;
display: block;
background-color: rgb(255, 255, 255);
background-color: var(--c-text-primary);
transition: all .3s;
position: absolute;
left: 0;
Expand All @@ -287,11 +286,12 @@ wform {

.documents{
&-wrapper{
overflow-y: scroll;
//overflow-y: scroll;
height: 100vh;
background: #282626;
background: var(--c-bg-primary);
color: #fff;
position: relative;
/*
&--open{
overflow-y: unset;
&::before{
Expand All @@ -304,42 +304,48 @@ wform {
left: 0;
}
}
*/
}
&-container{
max-width: 1260px;
width: 100%;
margin: 0 auto;
height: 100%;
padding: 0 15px;
}
&-list{
display: flex;
flex-flow: row wrap;
}
&-main{
flex: 1 0;
padding-left: 280px;
&-content{
padding: 15px;
}
&-row{
padding: 10px 20px;
background: #1c1b1b;
background: var(--c-bg-secondary);
margin-bottom: 20px;
border-radius: 10px;
}
}
&-sidebar{
flex: 0 0 280px;
max-width: 280px;
background: #1c1b1b;
height: calc(100vh - 10px);
border-radius: 0 0 12px 12px;
position: sticky;
top: 0;
background: var(--c-bg-secondary);
height: calc(100vh - 100px);
border-radius: 12px;
position: fixed;
top: 80px;
&-content{
padding: 15px;
height: 100%;
overflow-y: scroll;
scrollbar-width: none;
&::-webkit-scrollbar{
width: 0px; /* Для вертикальной полосы прокрутки */
height: 0px; /* Для горизонтальной полосы прокрутки */
}
}
&__img{
img{
Expand All @@ -352,6 +358,10 @@ wform {
&__title{
font-weight: 600;
padding: 15px 0 5px 0;
color: var(--c-text-primary);
}
&__description{
color: var(--c-text-primary);
}
}
&-tags{
Expand Down Expand Up @@ -415,12 +425,20 @@ wform {
&__title{
font-size: 20px;
font-weight: 600;
color: var(--c-text-primary);
}
&__description{
color: var(--c-text-primary);
}
}
&__title{
font-size: 20px;
font-weight: 600;
padding-bottom: 10px;
color: var(--c-text-primary);
}
&__description{
color: var(--c-text-primary);
}
&__btn{
max-width: 200px;
Expand All @@ -445,31 +463,41 @@ wform {
flex: 0 0 240px;
max-width: 240px;
}
.documents-main {
flex: 1 0;
padding-left: 236px;
}
}
@media screen and (max-width: 991px) {
.documents-sidebar {
flex: 0 0 100%;
max-width: 100%;
height: 0;
border-radius: 12px;
position: absolute;
position: fixed;
top: 0;
left: 0;
margin: 15px;
transition: all .3s;
overflow: hidden;
&--open{
height: calc(100% - 25px);
height: calc(100% - 75px);
}
}
.documents-sidebar-content {
padding: 15px 30px 15px 15px;
}
.documents-main {
padding-left: 0;
}
.burger-wrap {
display: flex;
align-items: center;
position: fixed;
z-index: 3;
right: 40px;
transform: translateX(50%);
top: 35px;
right: 3px;
transform: translateX(-50%);
top: 8px;
}

.burger--close {
Expand All @@ -478,7 +506,7 @@ wform {
}

.burger--close::before {
transform: translateY(-1px) rotate(45deg);
transform: translateY(0px) rotate(45deg);
}

.burger--close::after {
Expand All @@ -489,6 +517,12 @@ wform {
.burger--close::before {
transform-origin: 0;
}
.documents-container {
padding: 30px 0 0 0;
}
.documents-main-row{
padding: 10px 30px 20px 15px;
}
}
@media screen and (max-width: 767px) {
.documents-triggers__wrap{
Expand Down

0 comments on commit 0856ca6

Please sign in to comment.