249 lines
No EOL
4.9 KiB
CSS
249 lines
No EOL
4.9 KiB
CSS
/* Header */
|
|
|
|
:root {
|
|
--background-color-dark: #111111;
|
|
--background-color-light: rgb(255, 224, 229);
|
|
--article-bg-dark: #161616;
|
|
--article-bg-light:#d3adb3;
|
|
--color-dark: lightpink;
|
|
--color-light: #111111;
|
|
--color-button-dark: rgb(160, 61, 76);
|
|
--color-buton-light: #333;
|
|
--color-button-hover-light: rgb(160, 61, 76);
|
|
--color-button-hover-dark: #333;
|
|
|
|
--color-bg-body-dark: black;
|
|
--color-bg-body-light: lightpink;
|
|
--color-body-light: lightpink;
|
|
--color-body-dark: black;
|
|
}
|
|
|
|
header {
|
|
background-color: var(--background-color-dark);
|
|
color: var(--color-light);
|
|
padding: 5px;
|
|
text-align: left;
|
|
position: fixed;
|
|
width: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
background-color: #111111;
|
|
color: lightpink;
|
|
padding: 5px;
|
|
text-align: center;
|
|
position: fixed;
|
|
width: 100%;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
|
|
/* Add the following styles for the popup */
|
|
.image-popup {
|
|
position: relative;
|
|
display: inline-block;
|
|
max-width: 300px;
|
|
width: min-content;
|
|
}
|
|
|
|
|
|
.popup-content {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
width: min-content;
|
|
background-color: #1d1d1d;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
|
z-index: 1;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.image-popup:hover .popup-content {
|
|
display: flex;
|
|
}
|
|
|
|
.popup-content img {
|
|
width: 40px;
|
|
height: auto;
|
|
margin-right: 10px;
|
|
box-sizing: border-box;
|
|
transition: transform 0.1s ease-in-out;
|
|
}
|
|
|
|
.popup-content img:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
/* Add the following style to remove margin on the last child */
|
|
.popup-content > :last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.popup-content img:hover {
|
|
transform: scale(1.1); /* Add a slight scale effect on hover */
|
|
}
|
|
|
|
/* Navigation in Header*/
|
|
nav.top-nav ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center; /* Align items vertically in the center */
|
|
}
|
|
|
|
nav.top-nav a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
padding: 10px 15px; /* Adjust padding for better spacing */
|
|
transition: color 0.3s; /* Add a smooth transition for color change */
|
|
}
|
|
|
|
nav.top-nav li {
|
|
margin: 0 15px;
|
|
border-right: 2px solid rgb(0, 0, 0); /* Add a right border to create a separator */
|
|
padding-right: 15px; /* Adjust padding for better spacing */
|
|
}
|
|
|
|
/* Style the last li to remove the border */
|
|
nav.top-nav li:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
/* Change text color on hover */
|
|
nav.top-nav a:hover {
|
|
color: rgb(255, 246, 247); /* Change to the desired hover color */
|
|
}
|
|
|
|
/* Navigation in Footer */
|
|
nav.bottom-nav ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
justify-content: center; /* Center the items horizontally */
|
|
align-items: center; /* Align items vertically in the center */
|
|
}
|
|
|
|
nav.bottom-nav li {
|
|
margin: 0 15px;
|
|
}
|
|
|
|
/* Navigation links in Footer */
|
|
nav.bottom-nav a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
padding: 10px 15px; /* Adjust padding for better spacing */
|
|
transition: color 0.3s; /* Add a smooth transition for color change */
|
|
}
|
|
|
|
/* Change text color on hover */
|
|
nav.bottom-nav a:hover {
|
|
color: inherit; /* Change to the desired hover color */
|
|
}
|
|
|
|
.toggle-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #333;
|
|
color: inherit;
|
|
width: 40px;
|
|
height: 40px;
|
|
padding: 10px 20px;
|
|
border-color: #11111100;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toggle-button img {
|
|
transform: scale(.08);
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/*ARTICLES*/
|
|
|
|
#article-list {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
position: fixed;
|
|
align-items: flex-start;
|
|
left: 0;
|
|
width: 20%;
|
|
height: 100vh;
|
|
background-color: var(--article-bg-dark);
|
|
color: var(--color-dark);
|
|
overflow-y: auto;
|
|
padding-top: 6%;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/* Style for the subtitles */
|
|
.article-subtitle {
|
|
bottom: 0;
|
|
left: 10%;
|
|
width: 80%;
|
|
padding: 5px;
|
|
text-align: center;
|
|
position: relative;
|
|
font-size: small;
|
|
}
|
|
|
|
/* Style for the container of the article content */
|
|
#article-container {
|
|
flex-grow: 1;
|
|
position: relative;
|
|
width: 85%; /* Adjusted width to accommodate the article list */
|
|
padding-left: 45%;
|
|
padding-right: 20%; /* Add some padding for spacing */
|
|
}
|
|
|
|
#article-container h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
#article-container h3 {
|
|
text-align: left;
|
|
position: absolute;
|
|
left: 20%;
|
|
margin-top: 2%;
|
|
}
|
|
|
|
#article-container h6 {
|
|
text-align: left;
|
|
position: absolute;
|
|
left: 20%;
|
|
margin-top: 5%;
|
|
}
|
|
|
|
#article-container p {
|
|
text-align: left;
|
|
position: absolute;
|
|
left: 20%;
|
|
margin-top: 8%;
|
|
}
|
|
|
|
/* Responsive styles for smaller screens */
|
|
@media screen and (max-width: 768px) {
|
|
body {
|
|
padding-top: 10%; /* Adjust as needed */
|
|
}
|
|
|
|
#article-list {
|
|
width: 100%;
|
|
padding-top: 10%; /* Adjust as needed */
|
|
}
|
|
|
|
#article-container {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
}
|
|
} |