Skip to content

Commit

Permalink
fixed sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
kemsguy7 committed Apr 8, 2024
1 parent f2e7e4b commit 8fe920e
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 16 deletions.
2 changes: 1 addition & 1 deletion prototype/Frontend/admin_mailing_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
</a>
</li>
<li class="sidebar-item">
<a href="admin_mailing_list.html" class="sidebar-link" data-text="Mailing Lists">
<a href="admin_mailing_list.html" class="sidebar-link" data-text="Mailing List">
<i class="fa-solid fa-envelope"></i>
<span class="sidebar-text"> Mailing list </span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion prototype/Frontend/createChallenge.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
</a>
</li>
<li class="sidebar-item">
<a href="admin_mailing_list.html" class="sidebar-link" data-text="Mailing Lists">
<a href="admin_mailing_list.html" class="sidebar-link" data-text="Mailing List">
<i class="fa-solid fa-envelope"></i>
<span class="sidebar-text"> Mailing list </span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion prototype/Frontend/user_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
</a>
</li>
<li class="sidebar-item">
<a href="user_notifications.html" class="sidebar-link" data-text="Notifications">
<a href="user_notifications.html" class="sidebar-link" data-text="Notification">
<i class="fas fa-bell"></i>
<span class="sidebar-text">Notifications</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion prototype/Frontend/user_notifications.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
</a>
</li>
<li class="sidebar-item">
<a href="user_notifications.html" class="sidebar-link" data-text="Notifications">
<a href="user_notifications.html" class="sidebar-link" data-text="Notification">
<i class="fas fa-bell"></i>
<span class="sidebar-text">Notifications</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion prototype/Frontend/user_replies.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
</a>
</li>
<li class="sidebar-item">
<a href="user_notifications.html" class="sidebar-link" data-text="Notifications">
<a href="user_notifications.html" class="sidebar-link" data-text="Notification">
<i class="fas fa-bell"></i>
<span class="sidebar-text">Notifications</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion prototype/Frontend/user_view_comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
</a>
</li>
<li class="sidebar-item">
<a href="user_notifications.html" class="sidebar-link" data-text="Notifications">
<a href="user_notifications.html" class="sidebar-link" data-text="Notification">
<i class="fas fa-bell"></i>
<span class="sidebar-text">Notifications</span>
</a>
Expand Down
44 changes: 34 additions & 10 deletions public/css/user_dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ body {
.card i{
color: black;
}

#sidebar a {
border: 2px solid #000;
}
main.content {
background-color: var(--bg-blue-hero);
}
Expand Down Expand Up @@ -93,7 +97,14 @@ body,
#sidebar.expand
{
background-color: #c4c1c1;
border: none;
}

#sidebar a {
text-decoration: none;
border: 2px solid white;
}

.btn-primary {
background-color: var(--dark-btn);
color: var(--text-color-def);
Expand Down Expand Up @@ -518,7 +529,7 @@ body {
width: 50px;
padding-top: 1rem;
margin-top: 1.8rem;
min-width: 75px;
min-width: 76px;
position: fixed;
height: 100vh;
transition: all .25s ease-in-out;
Expand All @@ -535,7 +546,7 @@ body {

#sidebar a {
text-decoration: none;
border: 1px solid #c4c1c1 ;
border: 2px solid #c4c1c1;
}
.sidebar-nav .sidebar-item a {
position: relative;
Expand All @@ -555,36 +566,36 @@ body {
padding-left: 6rem;
background-color: rgba(0, 0, 0, 0.5); /* Background color of the overlay */
color: #fff; /* Text color */
font-size: 2rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: flex-end; /* Align text to the right */
padding-right: 7px;
transition: all 0.3s ease;
word-wrap: break-word;
font-size: 0.8rem;
/* justify-content: flex-start; */

z-index: 1000;
}

.sidebar-nav .sidebar-item a:hover::before {
visibility: visible;
z-index: 1000;
}


#sidebar.expand {
width: 150px; /* Expanded width */
min-width: 260px;
background-color: #92e3a9;
/* z-index: 1000;
position:static;
height: 100%; */

z-index: 1000;
position:fixed;
height: 100vh;
}

#sidebar.expand a {
border: none;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
display: none;
Expand Down Expand Up @@ -963,6 +974,19 @@ table.table {
}
}

@media screen and (min-width: 1024px) and (max-width: 1280px) { /*for desktop screens (Nest Hub) */
body {
height: 100vh;
}
main {
margin-bottom: 15rem;
}
.main-content {
overflow-y: scroll;
}

}

/*--------------------------------------------------------------
# Helper Styles For dashboard related pages
--------------------------------------------------------------*/
Expand All @@ -984,7 +1008,7 @@ table.table {
cursor: pointer;
}


/* Create Challenge Page */
@media screen and (min-width: 800px){
.create-challenge {
padding-top: 3rem;
Expand Down

0 comments on commit 8fe920e

Please sign in to comment.