228 lines
4.7 KiB
CSS
228 lines
4.7 KiB
CSS
/* Styling the body */
|
||
body {
|
||
margin: 0;
|
||
padding: 0;
|
||
font-family: Arial, sans-serif;
|
||
background-color: #f4f4f4;
|
||
}
|
||
|
||
/* Styling section, giving background image and dimensions */
|
||
section {
|
||
width: 100%;
|
||
min-height: 100vh;
|
||
background: #161616;
|
||
background-size: cover;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
/* Styling the left floating section */
|
||
section .leftBox {
|
||
width: 100%;
|
||
max-width: 600px;
|
||
padding: 20px;
|
||
box-sizing: border-box;
|
||
position: sticky;
|
||
flex: 1;
|
||
}
|
||
|
||
/* Styling the background of left floating section */
|
||
section .leftBox .content {
|
||
color: #fff;
|
||
background: rgba(0, 0, 0, 0.5);
|
||
padding: 20px;
|
||
border-radius: 8px;
|
||
transition: 0.5s;
|
||
}
|
||
|
||
/* Styling the hover effect of left floating section */
|
||
section .leftBox .content:hover {
|
||
background: #e91e63;
|
||
transition: ease-in-out 2.0s;
|
||
}
|
||
|
||
/* Styling the header of left floating section */
|
||
section .leftBox .content h1 {
|
||
margin: 0;
|
||
padding: 0;
|
||
font-size: 50px;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
/* Styling the paragraph of left floating section */
|
||
section .leftBox .content p {
|
||
margin: 10px 0 0;
|
||
padding: 0;
|
||
text-transform: uppercase;
|
||
font-size: 20px;
|
||
}
|
||
|
||
/* Styling the events section */
|
||
section .events {
|
||
width: 100%;
|
||
padding: 20px;
|
||
box-sizing: border-box;
|
||
flex: 2;
|
||
}
|
||
|
||
/* Styling the event list */
|
||
section .events ul {
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
/* Styling the individual event */
|
||
section .events ul li {
|
||
background: #fff;
|
||
margin-bottom: 20px;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
/* Styling the time class of events section */
|
||
section .events ul li .time {
|
||
background: #262626;
|
||
color: #fff;
|
||
padding: 20px;
|
||
box-sizing: border-box;
|
||
text-align: center;
|
||
flex: 1 1 150px;
|
||
transition: 0.5s;
|
||
}
|
||
|
||
/* Styling the hover effect of events section */
|
||
section .events ul li:hover .time {
|
||
background: #e91e63;
|
||
}
|
||
|
||
/* Styling the header of time class of events section */
|
||
section .events ul li .time h2 {
|
||
margin: 0;
|
||
padding: 0;
|
||
font-size: 24px;
|
||
}
|
||
|
||
/* Styling the details class of events section */
|
||
section .events ul li .details {
|
||
padding: 20px;
|
||
background: #161616;
|
||
color: #fff;
|
||
box-sizing: border-box;
|
||
flex: 3 1 300px;
|
||
}
|
||
|
||
/* Styling the header of the details class of events section */
|
||
section .events ul li .details h3 {
|
||
margin: 0;
|
||
padding: 0;
|
||
font-size: 22px;
|
||
|
||
|
||
}
|
||
|
||
/* Styling the paragraph of details class of events section */
|
||
section .events ul li .details p {
|
||
margin: 10px 0 0;
|
||
padding: 0;
|
||
font-size: 16px;
|
||
}
|
||
|
||
/* Styling the links of details class of events section */
|
||
section .events ul li .details a {
|
||
display: inline-block;
|
||
text-decoration: none;
|
||
padding: 10px 15px;
|
||
border: 1.5px solid #262626;
|
||
margin-top: 8px;
|
||
font-size: 18px;
|
||
transition: 0.5s;
|
||
}
|
||
|
||
/* Styling the details class's hover effect */
|
||
section .events ul li .details a:hover {
|
||
background: #e91e63;
|
||
color: #fff;
|
||
border-color: #e91e63;
|
||
}
|
||
|
||
|
||
button[type="submit"] {
|
||
background-color: #6a0dad;
|
||
color: white;
|
||
padding: 10px 20px;
|
||
border: none;
|
||
border-radius: 5px;
|
||
font-size: 16px;
|
||
cursor: pointer;
|
||
transition: background-color 0.3s, box-shadow 0.3s;
|
||
}
|
||
|
||
button[type="submit"]:hover {
|
||
background-color: #551a8b;
|
||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
|
||
textarea {
|
||
width: 100%;
|
||
height: 100px;
|
||
padding: 10px;
|
||
border: 1px solid #d1d1d1;
|
||
border-radius: 5px;
|
||
font-size: 16px;
|
||
resize: vertical;
|
||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
||
transition: border-color 0.3s;
|
||
}
|
||
|
||
textarea:focus {
|
||
border-color: #6a0dad;
|
||
outline: none;
|
||
box-shadow: 0 0 5px rgba(106, 13, 173, 0.5);
|
||
}
|
||
|
||
input {
|
||
width: 50%;
|
||
height: 30px;
|
||
padding: 10px;
|
||
border: 1px solid #d1d1d1;
|
||
border-radius: 5px;
|
||
font-size: 16px;
|
||
resize: vertical;
|
||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
||
transition: border-color 0.3s;
|
||
}
|
||
|
||
input:focus {
|
||
border-color: #6a0dad;
|
||
outline: none;
|
||
box-shadow: 0 0 5px rgba(106, 13, 173, 0.5);
|
||
background-color: #6a0dad;
|
||
color: white;
|
||
padding: 10px 20px;
|
||
border: none;
|
||
border-radius: 5px;
|
||
font-size: 16px;
|
||
cursor: pointer;
|
||
transition: background-color 0.3s, box-shadow 0.3s;
|
||
}
|
||
|
||
a.delete-button {
|
||
display: inline-block;
|
||
background-color: #6a0dad;
|
||
color: white;
|
||
padding: 10px 20px;
|
||
border: none;
|
||
border-radius: 5px;
|
||
font-size: 16px;
|
||
cursor: pointer;
|
||
text-decoration: none;
|
||
transition: background-color 0.3s, box-shadow 0.3s;
|
||
}
|
||
|
||
a.delete-button:hover {
|
||
background-color: #551a8b;
|
||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||
} |