0% found this document useful (0 votes)
8 views7 pages

New Text Document

The document contains CSS styles for a web application, focusing on layout and design elements for components such as the app header, navbar, main page, and patient board. It includes responsive design adjustments for smaller screens and styles for patient lists, items, and collapsible panels. The styles aim to create a visually appealing and user-friendly interface with specific color schemes and hover effects.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views7 pages

New Text Document

The document contains CSS styles for a web application, focusing on layout and design elements for components such as the app header, navbar, main page, and patient board. It includes responsive design adjustments for smaller screens and styles for patient lists, items, and collapsible panels. The styles aim to create a visually appealing and user-friendly interface with specific color schemes and hover effects.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

.

App {
text-align: center;
}

.App-header {
background-color: #19071b;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.Patient-board{
background-color: #19071b;
min-height: 100vh;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

/* Navbar */

body {
margin: 0;
font-family: Arial, sans-serif;
overflow: hidden;
}

.navbar {
background-color: #333;
position: fixed;
width: 100%;
z-index: 1000;
}

.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 20px;
}

.navbar-logo-img {
height: 40px;
}

.navbar-menu {
list-style: none;
display: flex;
margin: 0;
padding: 0;
transition: max-height 0.3 ease-in-out; /* it will make it smooth */
max-height: none; /* i found a problem that the links dont appear I solve it by
using this so i will search more about it after ending this task*/
overflow: hidden; /*i will use it to prevent content form overflow*/
}

.navbar-item {
margin-left: 20px;
}

.navbar-link {
color: #fff;
text-decoration: none;
padding: 8px 16px;
transition: background 0.3s;
}

.navbar-link:hover {
background: #575757;
border-radius: 4px;
}

/* Toggle button - initially hidden */


.navbar-toggle {
display: none;
cursor: pointer;
color: #fff;
font-size: 24px;
padding: 12px 20px;
height: 40px;
}

/* Responsive Styles for smaller screens */


@media (max-width: 768px) {
.navbar-container {
flex-direction: row;
justify-content: space-between;
}

.navbar-menu {
flex-direction: column;
width: 100%;
display: none;
max-height: 0;
}

.navbar-item {
margin: 0;
width: 100%;
}

.navbar-link {
display: block;
width: 100%;
text-align: left;
padding: 12px 20px;
}
.navbar-toggle {
display: block; /*it Show toggle button on smaller screens */
}

.navbar-menu.open {
display: flex;
max-height: 500px;
}
}

/* MAIN PAGE */

.MainPage {
object-fit: cover;
width: 612px;
height: 441px;
border: #570c7a 4px solid ;
border-radius: 1rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #2b1136;
overflow: hidden;

.MainPage img{
width: 80%;
border-radius: 0.5rem;
}

/* PatientBoard.css */

.patients-board {
padding-top: 68px;
display: flex;
flex-direction: row;
height: 100vh;
width: 100%;
overflow-y: auto;
}

.patients-waiting-line {
flex: 1;
background-color: #f1f1f1;
padding: 20px;
overflow-y: auto;
height: calc(100vh - 68px);

.current-patient-details {
flex: 2;
background-color: #fff;
padding: 20px;
overflow-y: auto;
}
.patient-details{
border: 2px solid blueviolet;
padding: 2px;
margin: 70px;
}
ul {
list-style-type: none;
}

h1,h2,h3{
margin : 0;
font-weight: bold;
}

@media (max-width: 768px) {


.patients-board {
flex-direction: column;
}

.patients-waiting-line,
.current-patient-details {
order: unset;
}

/*make h1 be smaller when I minimize the screen*/


h1{
font-size: 1.5em;
}
h2{
font-size: 1.5em;
}
h3{
font-size: 1.5em;
}
/*dont forget to make it more responsive when we minimize the screen */
}
/* now I will start customizw patients-waiting-line after rename it to be more
comfortable working with

/*Styles for the patient list container */


.patient-list-container {
height: auto;
max-width: 800px;
margin: 0 auto;
margin-top: 26px;
padding-top: 27px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
position: absolute;
/*top: 85;*/
left: 0;
right: 0;
}

/* Styles for the patient list */


.patient-list {
list-style: none;
padding: 0;
margin: 0;
max-height: 780px;
overflow-y: auto;
border-top: 1px solid #ddd;
}

/* Custom scroll styling */


.patient-list::-webkit-scrollbar {
width: 8px;
}

.patient-list::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}

.patient-list::-webkit-scrollbar-thumb {
background: #888;
border-radius: 10px;
}

.patient-list::-webkit-scrollbar-thumb:hover {
background: #555;
}

/* Styles for each patient item */


.patient-item {
background-color: #fff;
padding: 15px;
margin-bottom: 10px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s;
}
.active{
color: rgb(44, 43, 43);
background-color: #555;
}
.patient-item:hover {
transform: translateY(-5px);
}

.patient-item h1 {
font-size: 1.5em;
margin-bottom: 10px;
}

.patient-item p {
margin: 5px 0;
}

.patient-item .status{

display: flex;
align-items: center;
}
.pateints-item .status-cricle{
width: 10px;
height: 10px;
background-color: green;
border-radius: 50%;
margin-right: 8px;
display: inline-block;
}
.patient-item button {
display: inline-block;
padding: 10px 20px;
margin-top: 10px;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s;
}

.patient-item button:hover {
background-color: #0056b3;
}

/*Collpase Panel */
.collapsible-panel{
position: absolute;
bottom: 40px;
left: 0;
right: 0;
background-color: #fff;
border-top: 2px solid #ddd;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px 10px 0 0;
transform: translateY(100%);
transition: transform 0.3s ease-in-out;
overflow: hidden;
max-height: 50vh;
}
.collapsible-panel.show{
transform: translateY(0);
}
.collapsible-panel button{
width: 100%;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 10px 10px 0 0 ;
cursor: pointer;
transition: background-color 0.2s;
}
.collapsible-panel button:hover{
background-color: #0056b3;
}
.collapsible-panel .patient-details{
padding: 20px;
}
/* Responsive adjustments */
@media (max-width: 600px) {
.patient-item h1 {
font-size: 1.2em;
}

.patient-item p {
font-size: 0.9em;
}

.patient-item button {
padding: 8px 16px;
}
.patient-list-container{
padding: 20px;
}
.collapsible-panel .patient-details{
padding: 10px;
}
.collapsible-panel {
display: block;
}
}
@media(min-width){
.collapsible-panel {
display: none;
}
}

You might also like