foss_alternatives/list.css

295 lines
4.4 KiB
CSS
Raw Normal View History

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;
transition: all 0.3s ease; /* 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-19 06:47:45 +02:00
/* Header styles */
header {
2024-06-19 08:58:57 +02:00
background-color: #2c3e50;
padding: 15px 0;
2024-06-19 06:47:45 +02:00
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
2024-06-19 08:58:57 +02:00
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
2024-06-19 06:47:45 +02:00
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
2024-06-21 21:17:51 +02:00
max-width: 1400px;
2024-06-19 06:47:45 +02:00
margin: 0 auto;
2024-06-19 08:58:57 +02:00
padding: 0 20px;
2024-06-19 06:47:45 +02:00
}
.project-name {
2024-06-19 08:58:57 +02:00
color: #ffffff;
font-size: 1.8em;
font-weight: bold;
2024-06-19 06:47:45 +02:00
}
.burger-menu {
background: none;
border: none;
2024-06-19 08:58:57 +02:00
color: #ffffff;
font-size: 1.8em;
2024-06-19 06:47:45 +02:00
cursor: pointer;
display: none;
}
.menu {
list-style: none;
display: flex;
justify-content: space-around;
2024-06-19 08:58:57 +02:00
align-items: center;
2024-06-19 06:47:45 +02:00
flex-grow: 1;
2024-06-19 08:58:57 +02:00
margin: 0;
2024-06-19 06:47:45 +02:00
}
header li {
2024-06-19 08:58:57 +02:00
margin: 15px;
2024-06-19 06:47:45 +02:00
}
header a {
2024-06-19 08:58:57 +02:00
color: #ffffff;
text-decoration: none;
2024-06-19 06:47:45 +02:00
padding: 10px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
header a:hover {
2024-06-19 08:58:57 +02:00
background-color: #34495e;
2024-06-19 06:47:45 +02:00
}
2024-06-18 12:26:48 +02:00
/* Article styles */
article {
2024-06-20 06:28:46 +02:00
margin-top: 8em;
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;
}
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-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-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 */
}
2024-06-19 06:47:45 +02:00
/* Mobile Styles */
2024-06-21 21:17:51 +02:00
@media (max-width: 1400px) {
2024-06-19 06:47:45 +02:00
.burger-menu {
display: block;
}
.menu {
display: none;
flex-direction: column;
2024-06-19 08:58:57 +02:00
background-color: #2c3e50;
2024-06-19 06:47:45 +02:00
position: absolute;
top: 100%; /* Adjusted position */
left: 0;
width: 100%;
z-index: 999;
2024-06-19 08:58:57 +02:00
padding: 0;
2024-06-19 06:47:45 +02:00
}
.menu.active {
display: flex;
2024-06-19 08:58:57 +02:00
padding: 10px;
2024-06-19 06:47:45 +02:00
}
header {
2024-06-19 08:58:57 +02:00
padding: 10px 0;
2024-06-19 06:47:45 +02:00
height: auto;
}
.header-content {
flex-direction: row;
justify-content: space-between;
align-items: center;
2024-06-19 08:58:57 +02:00
padding: 0 10px;
2024-06-19 06:47:45 +02:00
}
.project-name {
2024-06-19 08:58:57 +02:00
font-size: 1.5em;
2024-06-19 06:47:45 +02:00
}
header li {
margin: 0;
2024-06-19 08:58:57 +02:00
padding: 10px;
2024-06-19 06:47:45 +02:00
}
header a {
width: 100%;
2024-06-19 08:58:57 +02:00
padding: 12px 0;
text-align: center; /* Center align the menu items */
2024-06-19 06:47:45 +02:00
}
article {
2024-06-19 08:58:57 +02:00
margin-top: 140px; /* Increase margin-top for better readability */
2024-06-19 06:47:45 +02:00
padding-top: 20px;
2024-06-19 08:58:57 +02:00
margin-bottom: 20px; /* Adjust margin-bottom for consistency */
2024-06-19 06:47:45 +02:00
}
2024-06-18 12:26:48 +02:00
}
article ul {
list-style-type: none;
padding: 0;
width: 50%;
margin: 0 auto;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
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;
}
ul.non-free-assets li {
2024-06-18 12:26:48 +02:00
background-color: #ffebee;
}
.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;
}