freeftf/styles.css

259 lines
4.8 KiB
CSS
Raw Permalink Normal View History

2024-08-15 14:54:04 +02:00
/*
freeftf website
2024-08-23 10:11:06 +02:00
Copyright (C) 2024 interstellar_development
2024-08-15 14:54:04 +02:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2024-08-15 06:06:49 +02:00
/* Browser reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Body styling */
body {
background-color: #353d51;
color: #f1f1f1;
font-family: 'Arial', sans-serif;
line-height: 1.6;
padding: 0 20px;
}
/* Header styling */
header {
background-color: #222732;
position: fixed;
width: 100%;
padding: 15px 20px;
top: 0;
left: 0;
2024-08-15 07:22:45 +02:00
margin-bottom: 10em;
2024-08-15 06:06:49 +02:00
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
header ul {
list-style: none;
display: flex;
gap: 20px;
}
header ul li {
display: inline;
}
header ul li a {
text-decoration: none;
color: #f1f1f1;
font-weight: bold;
padding: 5px 10px;
transition: background-color 0.3s ease;
}
header ul li a:hover {
background-color: #353d51;
border-radius: 5px;
}
.project-name {
font-size: 1.5em;
color: #f1f1f1;
text-decoration: none;
}
.project-name:hover {
color: #ffcc00;
}
/* Article styling */
article {
max-width: 800px;
margin: 6.25em auto;
padding: 20px;
background-color: #444b5e;
border-radius: 10px;
}
article h1 {
font-size: 2.5em;
margin-bottom: 20px;
}
article p {
hyphens: auto;
color: #f1f1f1;
margin-bottom: 20px;
}
/* Download list styling */
article h2 {
font-size: 1.8em;
color: #ffcc00;
margin-top: 20px;
margin-bottom: 10px;
}
article ul {
list-style-type: none; /* Remove bullet points */
padding-left: 0;
}
article ul li {
background-color: #353d51;
margin-bottom: 10px;
border-radius: 5px;
padding: 10px;
transition: background-color 0.3s ease;
}
article ul li a {
text-decoration: none;
color: #ffcc00;
font-weight: bold;
font-size: 1.1em;
display: block;
}
article ul li:hover {
background-color: #2c3447;
}
2024-08-15 07:22:45 +02:00
/* License section styling */
.license {
margin-top: 20px;
padding: 15px;
background-color: #444b5e; /* Consistent with article background */
border-radius: 10px;
}
.license h2 {
font-size: 1.8em;
color: #ffcc00;
margin-top: 0;
}
.license ol {
list-style-type: none; /* Remove bullet points */
padding-left: 0;
}
.license ol li {
margin-bottom: 10px;
border-radius: 5px;
padding: 10px;
transition: background-color 0.3s ease;
}
.license ol li a {
text-decoration: none;
color: #ffcc00;
font-weight: bold;
font-size: 1.1em;
display: block;
}
2024-08-15 06:06:49 +02:00
/* Footer styling */
footer {
background-color: #222732;
padding: 10px 20px;
color: #f1f1f1;
width: 100%;
position: fixed;
bottom: 0;
left: 0;
}
.footer-content {
text-align: center;
font-size: 0.9em;
}
footer p {
margin: 0;
}
/* Responsive design */
@media (max-width: 768px) {
/* Header */
.header-content {
flex-direction: column;
align-items: flex-start;
}
header ul {
flex-direction: column;
gap: 10px;
margin-top: 10px;
2024-08-15 07:22:45 +02:00
padding-left: 0;
2024-08-15 06:06:49 +02:00
}
header ul li {
display: block; /* Ensure list items stack vertically */
}
header ul li a {
2024-08-15 07:22:45 +02:00
padding: 10px;
2024-08-15 06:06:49 +02:00
}
/* Article */
article {
2024-08-15 07:22:45 +02:00
margin: 12em 10px;
2024-08-15 06:06:49 +02:00
padding: 15px;
}
article h1 {
font-size: 1.8em; /* Adjust font size for smaller screens */
}
article h2 {
2024-08-15 07:22:45 +02:00
font-size: 1.5em;
2024-08-15 06:06:49 +02:00
margin-bottom: 15px;
}
article ul {
2024-08-15 07:22:45 +02:00
padding-left: 0;
margin-left: 0;
2024-08-15 06:06:49 +02:00
}
article ul li {
2024-08-15 07:22:45 +02:00
font-size: 1em;
padding: 8px;
margin-bottom: 10px;
2024-08-15 06:06:49 +02:00
}
article ul li a {
font-size: 1em; /* Ensure links are readable */
}
/* Footer */
footer {
padding: 10px 15px; /* Adjust padding for smaller screens */
}
.footer-content {
font-size: 0.9em; /* Ensure footer text is readable but not oversized */
}
/* Project Name */
.project-name {
font-size: 1.2em; /* Slightly smaller project name font size for smaller screens */
margin-bottom: 10px; /* Adjust spacing below project name */
}
}