Skip to content

Commit

Permalink
Merge pull request #135 from kasundie30/main
Browse files Browse the repository at this point in the history
CSS Updated
  • Loading branch information
kasundie30 authored Oct 12, 2024
2 parents 1253ece + 0437eab commit 92d80cb
Show file tree
Hide file tree
Showing 9 changed files with 249 additions and 480 deletions.
2 changes: 0 additions & 2 deletions front-end/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import Footer from "./components/Footer";
import './components/Header.css'
import './components/Overview.css'
import './components/Team.css'
import './components/News.css'
import './components/Download.css'
import './components/Components.css'

import Login from './Pages/Login';
Expand Down
133 changes: 94 additions & 39 deletions front-end/src/components/Components.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* Includes stying for common components */
/******************* Page Title **************************/
/***** Page Title *****/
.pageTitle {
margin-top: 1%;
margin-left: 5%;
Expand All @@ -12,8 +11,7 @@
align-items: center;
margin-right: 5%;
}
/********************************************************************/
/* Action buttons for delete, view and edit (Fontawsome icons) */
/***** Action buttons for delete, view and edit (Fontawsome icons) *****/
.actionButtonsBlock{
display:flex;
flex-direction: row;
Expand All @@ -35,8 +33,7 @@
.actionButton:hover {
background-color:#a6c9f1d6;
}
/********************************************************************/
/* Breadcrumb navigation styles */
/***** Breadcrumb navigation styles *****/
.breadcrumb {
list-style: none;
display: flex;
Expand Down Expand Up @@ -75,9 +72,8 @@
.breadcrumb-item.active {
color: #5c6064; /* Gray color */
}
/********************************************************************/
/******************* Add New Button **************************/

/***** Add New Button *****/
.addNewButton{
margin: 20px 0px;
padding: 15px 45px;
Expand All @@ -95,68 +91,127 @@
background-color: #0056b3;
}

/********************************************************************/
/* Form Styling for pages: Gallery, */
/* Form title */
/************** Forms in Dialog Boxes *************************/

/* Form */
.dataForm form {
justify-items: center;
padding:10px;
}
/* Form title container*/
.formTitle {
text-align: center;
margin-bottom: 20px;
}
/* Form title*/
.dataForm h2{
margin: 0;
font-family: 'Caudex';
color:hsl(226, 64%, 35%);
font-size: 20px;
margin-top: 0px;
}
/* Form */
.dataForm form {
margin-right: 20px;
margin-left: 20px;
justify-items: center;
}

/* Data input boxes and their topics */
.inputbox {
display: flex;
align-items: center;
width: 800px;
width: 95%;
margin: 15px 20px;
justify-content: space-between;
justify-content: flex-start; /* Align all elements to the left */
}
.inputbox label{
width: 150px;
padding: 15px;
font-size: 16px;
}

/* Inside the data input boxes */
.inputbox .field {
width: 80%;
right: 12%;
width: 70%;
background: transparent;
border: 2px solid #c9e1ef;
outline: none;
padding: 15px;
font-size: 16px;
color: #333;
}
/*** Input type - Textarea ***/
.inputbox textarea {
height: 150px;
resize: none;
font-family: sans-serif;
line-height: 1.5;
color: #333;
/* font-synthesis: none;
text-rendering: optimizeLegibility; */
}

/*** Input type - Checkboxes ***/

/* file upload button */
.inputbox[type="file"]::file-selector-button {
/* Hide the default checkbox */
.dataForm Input[type="checkbox"] {
position: relative;
width: 20px;
height: 20px;
appearance: none; /* Removes default checkbox style */
background-color: white;
border: 2px solid #c9e1ef;
border-radius: 4px;
padding: 0 16px;
height: 40px;
cursor: pointer;
background-color: white;
border: 1px solid rgba(0, 0, 0, 0.16);
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
margin-right: 16px;
transition: background-color 200ms;
transition: all 0.3s ease;
margin:0;
}

/* Add a checkmark using the ::after pseudo-element */
.dataForm Input[type="checkbox"]::after {
content: "";
position: absolute;
width: 3px;
height: 10px;
border: 2px solid white;
border-width: 0 2px 2px 0;
top: 2px;
left: 6px;
transform: rotate(45deg);
opacity: 0;
transition: all 0.08s ease;
}

/* Checked state */
.dataForm Input[type="checkbox"]:checked {
background-color: hsl(211, 44%, 66%);
}

/* file upload button hover state */
.inputbox[type="file"]::file-selector-button:hover {
background-color: #f3f4f6;
/* Show the checkmark when checked */
.dataForm Input[type="checkbox"]:checked::after {
opacity: 1;
}

/* file upload button active state */
.inputbox[type="file"]::file-selector-button:active {
background-color: #e5e7eb;
/* Optional: Add a hover effect */
.dataForm Input[type="checkbox"]:hover {
border-color: #0056b3;
}

/*** Input type - File ***/

/* Styling for file input */
.dataForm input[type="file"] {
cursor: pointer; /* Pointer cursor for file input */
}

/* File input styling (optional: custom button) */
.dataForm input[type="file"]::file-selector-button {
background-color: hsla(211, 51%, 76%, 0.629); /* Button background color */
color: #000000;
border: none; /* No border */
border-radius: 4px; /* Rounded corners */
padding: 10px 15px; /* Button padding */
cursor: pointer; /* Pointer cursor for button */
transition: background-color 0.3s ease; /* Transition for background color */
}

/* Hover effect for file input button */
.dataForm input[type="file"]::file-selector-button:hover {
background: hsla(211, 41%, 69%, 0.642);
color: #2a2929;
}

/********************************************************************/
Expand Down
5 changes: 1 addition & 4 deletions front-end/src/components/Contact.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
justify-content: center;
display: flex;
flex-direction: column;

}

/* Contact details of the manager and coordinator alignment */
Expand Down Expand Up @@ -77,9 +76,7 @@
transform: rotate(45deg);
}


/* ** Contact Us Form** */

.contactUsForm {
flex-direction: center;
display: flex;
Expand Down Expand Up @@ -111,7 +108,7 @@
.contactUsForm img{
width: auto;
height: 400px;
margin-top: 205px;
margin-top: 150px;
margin-right: 20px;
margin-left: 20px;
}
Expand Down
41 changes: 1 addition & 40 deletions front-end/src/components/Deliverables.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,49 +63,10 @@
text-align: right;
}

/* Form title */
.formTitle {
text-align: center;
color:hsl(226, 64%, 35%);
font-size: 20px;
margin-top: 0px;
}
/* Form */
.dataForm form {
margin-right: 20px;
margin-left: 20px;
justify-items: center;
}

/* Data input boxes and their topics */
.inputbox {
display: flex;
align-items: center;
margin: 15px 20px;
justify-content: space-between;
}
.inputbox label{
padding: 15px;
font-size: 16px;
}

/* Inside the data input boxes */
.inputbox .field {
width: 60%;
right: 12%;
background: transparent;
border: 2px solid #c9e1ef;
outline: none;
padding: 15px;
font-size: 16px;
color: #333;
}

/* View Interface */
.viewDetails{
display: inline-block;
margin-right: 20px;
margin-bottom: 40px;
margin: 20px 20px 40px 20px;
}

.viewDetails tbody td{
Expand Down
Loading

0 comments on commit 92d80cb

Please sign in to comment.