foss_alternatives/list.css
2024-07-01 09:30:40 +02:00

277 lines
No EOL
4.7 KiB
CSS

/* Reset and global styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Roboto", Arial, sans-serif;
transition: 0.5s; /* Smooth transitions */
}
/* Body styles */
body {
background-color: #f9f9f9;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 0;
}
.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;
}
/* Header styles */
header {
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;
z-index: 10; /* Higher z-index to ensure it is above other elements */
height: 5em;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
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;
padding: 1em;
}
.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;
}
.project-name {
text-decoration: none;
color: #ffffff;
font-size: 1.5em; /* Updated font size */
font-weight: bold;
z-index: 11; /* Higher z-index to ensure it is above the menu */
}
.burger-menu {
background: none;
border: none;
color: #ffffff;
font-size: 1.5em; /* Updated font size */
cursor: pointer;
display: block;
padding: 0;
z-index: 12; /* Higher z-index to ensure it is above the menu */
}
.menu {
display: flex;
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 */
}
.menu.active {
display: flex;
top: 5em;
z-index: 0; /* Lower z-index than header, header content, and project name */
}
/* Article styles */
article {
margin-bottom: 50px;
padding: 20px;
width: 90%;
max-width: 800px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
text-align: left;
margin-top: 140px; /* Increase margin-top for better readability */
padding-top: 20px;
}
h1 {
color: #333333;
margin-bottom: 20px;
font-size: 2.5em;
}
p.text {
color: #555555;
line-height: 1.6;
margin-bottom: 20px;
font-size: 1.1em;
}
img {
max-width: 100%;
height: auto;
margin-bottom: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
button {
padding: 12px 24px;
margin: 1em 0;
border: none;
background-color: #3498db;
color: #ffffff;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #2980b9;
}
.flex {
display: flex;
align-items: center;
}
nav {
margin: 20px;
}
.folder-list {
justify-content: center;
list-style-type: none;
padding: 0;
}
.folder-list-item {
margin-bottom: 10px;
justify-content: center;
}
.folder-link {
text-decoration: none;
color: #ffffff;
font-weight: bold;
display: block;
padding: 10px;
border-radius: 5px;
background-color: #2c3e50;
transition: background-color 0.3s ease;
}
.folder-link:hover {
background-color: #34495e;
}
.folder-link:active {
transform: scale(0.98); /* Slight scale down on click */
}
ul.fully-free {
border: 2px solid #4CAF50;
}
ul.non-free-assets {
border: 2px solid #FF5722;
}
article ul li {
padding: 12px;
border-bottom: 1px solid #ddd;
text-align: center;
}
ul li:last-child {
border-bottom: none;
}
ul.fully-free li {
background-color: #e8f5e9;
}
ul.non-free-assets li {
background-color: #ffebee;
}
.fiveStar, .fourStar, .threeStar, .twoStar, .oneStar, .death{
margin-bottom: 1em;
color: white;
font-weight: bold;
text-shadow: red;
}
ul.fiveStar {
background: #01ab04;
}
ul.fourStar {
background: #59ff00;
}
ul.threeStar {
background: rgb(226, 226, 0);
}
ul.twoStar {
background: #ff9d00;
}
ul.oneStar {
background: #ff0000;
}
ul.death {
background: #000000;
color: white;
font-weight: bold;
text-shadow: red;
}
article ul{
list-style: none;
margin: 1em;
}