Files
BOS-React-/frontend/src/Page2.css
2025-02-10 14:24:56 +05:30

169 lines
3.1 KiB
CSS

/* General Styles */
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
height: 100vh; /* Full screen height */
overflow: hidden; /* Prevent scrollbars unless necessary */
background-color: #fff; /* Solid background */
}
/* Header Bar */
.header-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px; /* Adjust padding on the sides */
height: auto; /* Allow header to adjust based on content */
min-height: 100px; /* Minimum height for the header */
background-color: white;
border-bottom: 2px solid #ccc;
width: 100%;
box-sizing: border-box;
}
.header-bar .leftlogo,
.header-bar .rightlogo {
height: 60px; /* Adjust the logo size */
width: auto;
object-fit: contain; /* Ensure logos don't stretch */
}
.header-bar .college-name {
font-size: 28px; /* Adjust font size to prevent overflow */
font-weight: bold;
color: #B7202E;
text-align: center;
flex-grow: 1;
padding: 0 10px;
z-index: 10;
white-space: nowrap; /* Prevent text from wrapping */
overflow: visible; /* Ensure text is not cut off */
text-overflow: clip; /* Remove ellipsis */
margin: 0 20px; /* Add margin to prevent cutting off */
}
/* Navigation Bar */
.navbar {
background-color: rgb(228, 227, 227);
padding: 10px 20px;
display: flex;
justify-content: center;
width: 100%;
}
.navbar ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
}
.navbar ul li {
margin-right: 20px;
margin-left: 30px;
}
.navbar ul li a {
color: black;
text-decoration: none;
font-weight: bold;
text-align: center;
}
.navbar ul li a:hover {
text-decoration: underline;
color: red;
}
/* Main Container */
.main-container {
display: flex;
flex: 1;
width: 100%;
height: calc(100vh - 160px); /* Subtract the height of the header and footer */
}
/* Stream Bar (Right Side) */
.stream-bar {
width: 20%;
background-color: #f0f0f0;
border-left: 2px solid #ccc;
padding: 20px;
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
height: 100%;
position: relative;
}
.stream-bar h3 {
margin-top: 0;
font-size: 18px;
color: #333;
}
.stream-bar ul {
list-style: none;
padding: 0;
margin: 10px 0;
}
.stream-bar ul li {
padding: 10px;
cursor: pointer;
border-bottom: 1px solid #ddd;
transition: background-color 0.3s;
}
.stream-bar ul li:hover {
background-color: black;
color: white;
}
/* Content Area (Left Side) */
.content-area {
flex: 1;
padding: 20px;
background-color: #fff;
border-left: 2px solid #ccc;
overflow-y: auto;
height: 100%;
box-sizing: border-box;
}
/* Footer Styles */
footer {
background-color: white;
padding: 10px;
text-align: center;
width: 100%;
box-sizing: border-box;
margin-top: auto;
position: relative;
}
.terms a {
color: black;
text-decoration: none;
font-weight: bold;
font-size: 16px;
}
.terms a:hover {
text-decoration: underline;
}
.footer-image {
width: 100%;
margin-top: 10px;
margin-bottom: 0;
position: relative;
}
/* Prevent any margin or padding from appearing above or below the page */
body, html {
margin: 0;
padding: 0;
}