Skip to content

Commit

Permalink
Merge pull request #167 from DaleStudy/152-sidebar-header-fix
Browse files Browse the repository at this point in the history
Progress νŽ˜μ΄μ§€μ—μ„œ Sidebarκ°€ Header μœ„μ— μŒ“μ΄λŠ” ν˜„μƒ
  • Loading branch information
Sunjae95 authored Jan 3, 2025
2 parents d06c4d1 + 5f04786 commit dcbc658
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/components/Header/Header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
width: 100%;
border-bottom: 1px solid var(--bg-300);
background-color: var(--bg-200);
z-index: var(--z-index-header);

header {
display: flex;
Expand Down
9 changes: 2 additions & 7 deletions src/components/Sidebar/Sidebar.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
aside {
position: sticky;
top: 87px;
width: 260px;
height: calc(100vh - 40px);
overflow-y: auto;
align-items: center;
z-index: var(--z-index-aside);
max-width: 203px;
}

.cohort {
Expand All @@ -13,9 +11,6 @@ aside {
}

.container {
top: 230px;
left: 20px;
width: 250px;
padding: 20px 35px;
background-color: var(--bg-200);
border-radius: 10px;
Expand Down
4 changes: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
--bg-300: #eee8fe;
--bg-400: #5333e1;
--text-900: #160b46;

--font-weight-light: 300;
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-bold: 700;

--z-index-header: 100;
--z-index-aside: 10;
}

* {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Progress/Progress.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ h1 {
}

.sideBar {
width: 20%;
width: 30%;
}

.problemTableWrapper {
Expand Down

0 comments on commit dcbc658

Please sign in to comment.