Skip to content

Commit

Permalink
add sidebar styles
Browse files Browse the repository at this point in the history
  • Loading branch information
BasemYahia402 committed Aug 25, 2023
1 parent e15ebfd commit b00ef13
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions Calculator/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,56 @@ button {

#sidebar-toggle {
height: 20px;
}

#sidebar {
position: fixed;
top: 0;
left: -250px;
width: 250px;
height: 100%;
background-color: #2E2E2E;
transition: left 0.3s ease-in-out;
border-radius: 5px;
padding: 15px 10px;
}

#sidebar button {
width: 100%;
display: flex;
justify-content: space-between;
}

#sidebar button p {
color: white;
}

#sidebar #sidebar-cancel {
padding-left: 5px;
}

#sidebar .modes {
width: 100%;
height: 100%;
overflow-y: auto;
}

#sidebar .modes button {
width: 100%;
text-align: start;
}

#sidebar .modes button p {
width: 100%;
margin: 0;
padding: 10px 5px;
color: white;
}

#sidebar .modes button p:hover {
background-color: #3B3B3B;
}

#sidebar.show {
left: 0;
}

0 comments on commit b00ef13

Please sign in to comment.