Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced Documentation for index.css #79

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 11 additions & 2 deletions server/src/main/resources/twitter-server/css/index.css
Expand Up @@ -18,10 +18,12 @@ h1,h2,h3,h4,h5,h6 {
transition: all 0.5s ease;
}

/* Adjusts the margin to hide the sidebar when toggled for a responsive design. */
#wrapper.toggled {
margin-left: -250px;
}

/* Styles for the fixed sidebar including its background color, size, and scroll behavior. */
#sidebar {
position: fixed;
height: 100%;
Expand All @@ -36,11 +38,15 @@ h1,h2,h3,h4,h5,h6 {
z-index: 10;
}

/* Main Content */
/* Ensures the main content area is correctly positioned and padded when the sidebar is visible. */
#contents {
margin-left: 270px;
padding-top: 10px;
}

/* Sidebar Toggle Button */
/* Styles the toggle button with a fixed position and transitions for visual effect. */
#toggle {
z-index: 1000;
position: fixed;
Expand All @@ -58,10 +64,12 @@ h1,h2,h3,h4,h5,h6 {
transition: all 0.5s ease;
}

/* Changes the toggle button's color on hover for a visual indicator. */
#toggle:hover {
background-color: #2972B1;
}

/* Adjusts the position of the toggle button when the sidebar is toggled. */
#wrapper.toggled #toggle {
left: 0;
}
Expand All @@ -78,6 +86,7 @@ nav a:hover, nav a:visited, nav a:link, nav a:active {
text-decoration: none;
}

/* Organizes navigation items in a list without default list styling for a clean appearance. */
nav ul {
list-style-type: none;
padding-left: 0;
Expand Down Expand Up @@ -264,8 +273,8 @@ caption {
}

@keyframes spin {
from { transform: scale(1) rotate(0deg);}
to { transform: scale(1) rotate(360deg);}
from { transform: scale(1) rotate(0deg);}
to { transform: scale(1) rotate(360deg);}
}

/** Popover */
Expand Down