Skip to content

Commit

Permalink
Add quick padding changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MathyouMB committed Jun 27, 2023
1 parent 11cfb23 commit a66662e
Showing 1 changed file with 7 additions and 39 deletions.
46 changes: 7 additions & 39 deletions src/components/resources/Sidebar/Sidebar.style.scss
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
/*
.resources-sidebar {
&__body {
padding: 1rem;
background-color: white;
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
min-height: 90vh;
width: 17rem;
position: fixed;
bottom: 0;
z-index: 900;
}
&__list {
list-style: none;
margin: 0;
padding: 0;
margin-top: 2rem;
}
&__item {
margin-bottom: 1rem;
}
&__link {
text-decoration: none;
color: var(--color-text);
font-weight: bold;
&:hover {
color: var(--color-text-red);
}
}
}
*/

.sidebar {
position: fixed;
width: 260px;
Expand All @@ -55,10 +20,15 @@
}

.sidebar-item {
padding: 0.75em 1em;
padding: 0.75em 0rem;
padding-left: 0.7rem;
display: block;
transition: background-color 0.15s;
border-radius: 5px;

i {
padding-right: 0.5rem;
}
}
.sidebar-item:hover {
background-color: rgba(169, 169, 169, 0.1);
Expand Down Expand Up @@ -86,6 +56,7 @@
height: 0;
overflow: hidden;
}

.sidebar-item.open > .sidebar-content {
height: auto;
}
Expand All @@ -94,9 +65,6 @@
color: #000000;
text-decoration: none;
}
.sidebar-item.plain:hover {
text-decoration: underline;
}
.sidebar-item.plain i {
display: inline-block;
width: 1.7em;
Expand Down

0 comments on commit a66662e

Please sign in to comment.