foss_alternatives/list.css

352 lines
6.6 KiB
CSS
Raw Normal View History

2024-08-23 10:10:39 +02:00
/*
2024-08-26 12:01:26 +02:00
foss_alternatives website
2024-08-23 10:10:39 +02:00
Copyright (C) 2024 interstellar_development
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-06-18 12:26:48 +02:00
/* Reset and global styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
2024-06-19 08:58:57 +02:00
font-family: "Roboto", Arial, sans-serif;
2024-06-29 23:28:48 +02:00
transition: 0.5s; /* Smooth transitions */
2024-06-18 12:26:48 +02:00
}
/* Body styles */
body {
2024-06-19 08:58:57 +02:00
background-color: #f9f9f9;
2024-06-18 12:26:48 +02:00
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
2024-06-19 08:58:57 +02:00
margin: 0;
padding: 0;
2024-06-18 12:26:48 +02:00
}
2024-06-29 23:28:48 +02:00
.div-menu{
z-index: 0;
background-color: #2c3e50;
width: 100%;
position: fixed;
top: 0;
left: 0;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
padding: 0; /* Further reduce the padding */
height: auto;
}
2024-06-19 06:47:45 +02:00
/* Header styles */
header {
2024-06-19 08:58:57 +02:00
background-color: #2c3e50;
2024-06-19 06:47:45 +02:00
width: 100%;
position: fixed;
top: 0;
left: 0;
2024-06-19 08:58:57 +02:00
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
2024-06-29 23:28:48 +02:00
padding: 0; /* Further reduce the padding */
height: auto;
z-index: 10; /* Higher z-index to ensure it is above other elements */
2024-07-01 09:30:40 +02:00
height: 5em;
2024-06-19 06:47:45 +02:00
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
2024-06-24 17:53:58 +02:00
max-width: 1200px;
2024-06-19 06:47:45 +02:00
margin: 0 auto;
2024-06-29 23:28:48 +02:00
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 0 20px; /* Original padding */
z-index: 10;
}
.div-menu li {
margin: 0;
z-index: -100;
2024-07-01 09:30:40 +02:00
padding: 1em;
2024-06-29 23:28:48 +02:00
}
.div-menu a {
width: 100%;
padding: 12px 0;
text-align: center; /* Center align the menu items */
color: #ffffff;
text-decoration: none;
padding: 8px; /* Smaller padding */
border-radius: 5px;
transition: background-color 0.3s ease;
justify-content: center;
z-index: -100;
}
.div-menu a:hover {
background-color: #34495e;
2024-06-19 06:47:45 +02:00
}
.project-name {
2024-06-29 23:28:48 +02:00
text-decoration: none;
2024-06-19 08:58:57 +02:00
color: #ffffff;
2024-06-29 23:28:48 +02:00
font-size: 1.5em; /* Updated font size */
2024-06-19 08:58:57 +02:00
font-weight: bold;
2024-06-29 23:28:48 +02:00
z-index: 11; /* Higher z-index to ensure it is above the menu */
2024-06-19 06:47:45 +02:00
}
.burger-menu {
background: none;
border: none;
2024-06-19 08:58:57 +02:00
color: #ffffff;
2024-06-29 23:28:48 +02:00
font-size: 1.5em; /* Updated font size */
2024-06-19 06:47:45 +02:00
cursor: pointer;
2024-06-29 23:28:48 +02:00
display: block;
padding: 0;
z-index: 12; /* Higher z-index to ensure it is above the menu */
2024-06-19 06:47:45 +02:00
}
.menu {
display: flex;
2024-06-29 23:28:48 +02:00
flex-direction: column;
background-color: #2c3e50;
position: absolute;
top: -40vh;
left: 0;
width: 100%; /* Full width of the header */
z-index: 0; /* Lower z-index than header, header content, and project name */
padding: 0;
list-style: none;
justify-content: center; /* Center items vertically */
text-align: center; /* Center items horizontally */
animation: top 1s ease-in-out; /* Initial animation state */
2024-06-19 06:47:45 +02:00
}
2024-06-29 23:28:48 +02:00
.menu.active {
display: flex;
2024-07-01 09:30:40 +02:00
top: 5em;
2024-06-29 23:28:48 +02:00
z-index: 0; /* Lower z-index than header, header content, and project name */
2024-06-19 06:47:45 +02:00
}
2024-06-18 12:26:48 +02:00
/* Article styles */
article {
2024-06-19 06:47:45 +02:00
margin-bottom: 50px;
2024-06-18 12:26:48 +02:00
padding: 20px;
width: 90%;
max-width: 800px;
2024-06-19 08:58:57 +02:00
background-color: #ffffff;
2024-06-18 12:26:48 +02:00
border-radius: 10px;
2024-06-19 08:58:57 +02:00
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
text-align: left;
2024-06-29 23:28:48 +02:00
margin-top: 140px; /* Increase margin-top for better readability */
padding-top: 20px;
}
h1 {
2024-06-19 08:58:57 +02:00
color: #333333;
2024-06-18 12:26:48 +02:00
margin-bottom: 20px;
2024-06-19 08:58:57 +02:00
font-size: 2.5em;
}
2024-06-18 12:26:48 +02:00
p.text {
2024-06-19 08:58:57 +02:00
color: #555555;
line-height: 1.6;
2024-06-18 12:26:48 +02:00
margin-bottom: 20px;
2024-06-19 08:58:57 +02:00
font-size: 1.1em;
2024-06-18 12:26:48 +02:00
}
img {
max-width: 100%;
height: auto;
margin-bottom: 20px;
2024-06-19 08:58:57 +02:00
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
2024-06-18 12:26:48 +02:00
}
button {
2024-06-19 08:58:57 +02:00
padding: 12px 24px;
margin: 1em 0;
2024-06-18 12:26:48 +02:00
border: none;
2024-06-19 08:58:57 +02:00
background-color: #3498db;
color: #ffffff;
2024-06-18 12:26:48 +02:00
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
2024-06-19 08:58:57 +02:00
background-color: #2980b9;
}
2024-06-18 12:26:48 +02:00
.flex {
display: flex;
align-items: center;
}
nav {
2024-06-19 08:58:57 +02:00
margin: 20px;
2024-06-18 12:26:48 +02:00
}
.folder-list {
2024-06-29 23:28:48 +02:00
justify-content: center;
2024-06-19 08:58:57 +02:00
list-style-type: none;
padding: 0;
2024-06-18 12:26:48 +02:00
}
.folder-list-item {
2024-06-19 08:58:57 +02:00
margin-bottom: 10px;
2024-06-29 23:28:48 +02:00
justify-content: center;
2024-06-18 12:26:48 +02:00
}
.folder-link {
text-decoration: none;
2024-06-19 08:58:57 +02:00
color: #ffffff;
2024-06-18 12:26:48 +02:00
font-weight: bold;
display: block;
padding: 10px;
border-radius: 5px;
2024-06-19 08:58:57 +02:00
background-color: #2c3e50;
transition: background-color 0.3s ease;
2024-06-18 12:26:48 +02:00
}
.folder-link:hover {
2024-06-19 08:58:57 +02:00
background-color: #34495e;
2024-06-18 12:26:48 +02:00
}
.folder-link:active {
transform: scale(0.98); /* Slight scale down on click */
}
.death .item-link {
text-decoration: none;
font-weight: bold;
display: block;
padding: 2px;
border-radius: 5px;
transition: background-color 0.3s ease;
color: black;
}
.item-link {
text-decoration: none;
font-weight: bold;
display: block;
padding: 2px;
border-radius: 5px;
transition: background-color 0.3s ease;
color: white;
}
.item-link:hover {
background-color: #0080ff38;
}
.item-link:active {
transform: scale(0.98); /* Slight scale down on click */
}
ul.fully-free {
2024-06-18 12:26:48 +02:00
border: 2px solid #4CAF50;
}
ul.non-free-assets {
2024-06-18 12:26:48 +02:00
border: 2px solid #FF5722;
}
2024-06-19 06:47:45 +02:00
article ul li {
2024-06-18 12:26:48 +02:00
padding: 12px;
border-bottom: 1px solid #ddd;
text-align: center;
}
ul li:last-child {
2024-06-18 12:26:48 +02:00
border-bottom: none;
}
ul.fully-free li {
2024-06-18 12:26:48 +02:00
background-color: #e8f5e9;
2024-09-03 17:33:01 +02:00
color: black;
}
ul.non-free-assets li {
2024-06-18 12:26:48 +02:00
background-color: #ffebee;
2024-09-03 17:33:01 +02:00
color: black;
2024-06-18 12:26:48 +02:00
}
.fiveStar, .fourStar, .threeStar, .twoStar, .oneStar, .death{
margin-bottom: 1em;
color: white;
font-weight: bold;
text-shadow: red;
}
ul.fiveStar {
2024-06-18 19:43:40 +02:00
background: #01ab04;
}
ul.fourStar {
background: #59ff00;
}
ul.threeStar {
2024-06-18 19:43:40 +02:00
background: rgb(226, 226, 0);
}
ul.twoStar {
2024-06-18 19:43:40 +02:00
background: #ff9d00;
}
ul.oneStar {
2024-06-18 19:43:40 +02:00
background: #ff0000;
}
ul.death {
2024-06-20 06:28:46 +02:00
background: #000000;
color: white;
font-weight: bold;
text-shadow: red;
}
2024-06-29 23:28:48 +02:00
article ul{
list-style: none;
margin: 1em;
}
/* styles.css */
/* Other styles... */
/* Styling the back button */
.back-button {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #ff4081; /* Change to your preferred color */
color: white;
border: none;
font-size: 24px;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
justify-content: center;
}
.back-button:hover {
background-color: #e91e63; /* Darker shade on hover */
}