Files
kaubuntu.re/css/styles.css
T

784 lines
13 KiB
CSS
Raw Normal View History

2025-04-08 06:37:14 +04:00
/* Styles généraux */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
2025-04-08 06:51:33 +04:00
:root {
--primary-red: #FF0000;
--primary-green: #008000;
--primary-black: #000000;
--sidebar-bg: #f0f0f0;
--main-bg: #ffffff;
--text-color: #000000;
--tag-bg: #f8f8f8;
--tag-border: #e0e0e0;
--search-bg: #e0e0e0;
--card-bg: #ffffff;
--card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
--divider-color: #e5e5e5;
}
2025-04-08 06:37:14 +04:00
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
2025-04-08 06:51:33 +04:00
color: var(--text-color);
background-color: var(--main-bg);
display: flex;
flex-direction: row;
2025-04-08 06:37:14 +04:00
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
a {
text-decoration: none;
2025-04-08 06:51:33 +04:00
color: var(--text-color);
2025-04-08 06:37:14 +04:00
}
img {
max-width: 100%;
height: auto;
}
2025-04-08 06:51:33 +04:00
/* Layout */
.sidebar {
width: 250px;
height: 100vh;
position: fixed;
2025-04-08 06:37:14 +04:00
top: 0;
2025-04-08 06:51:33 +04:00
left: 0;
background-color: var(--sidebar-bg);
overflow-y: auto;
padding: 15px 0;
2025-04-08 06:37:14 +04:00
z-index: 100;
}
2025-04-08 06:51:33 +04:00
.main-content {
margin-left: 250px;
width: calc(100% - 250px);
padding: 20px;
}
/* Logo */
.logo {
display: block;
padding: 10px 15px;
margin-bottom: 20px;
2025-04-08 06:37:14 +04:00
}
.logo img {
height: 40px;
}
2025-04-08 06:51:33 +04:00
/* Navigation */
.sidebar-nav {
margin-bottom: 30px;
}
.nav-item {
2025-04-08 06:37:14 +04:00
display: flex;
2025-04-08 06:51:33 +04:00
align-items: center;
padding: 12px 15px;
font-size: 18px;
font-weight: 500;
transition: background-color 0.2s;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.nav-item:hover {
background-color: rgba(0, 0, 0, 0.05);
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.nav-item i, .nav-item img {
margin-right: 15px;
width: 24px;
text-align: center;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.nav-divider {
height: 1px;
background-color: var(--divider-color);
margin: 15px 0;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.category-title {
font-size: 20px;
font-weight: 600;
padding: 10px 15px;
margin-top: 20px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.tag-item {
display: flex;
align-items: center;
padding: 8px 15px;
font-size: 16px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.tag-item .tag-dot {
width: 16px;
height: 16px;
border-radius: 50%;
background-color: var(--primary-red);
margin-right: 15px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: var(--main-bg);
position: sticky;
top: 0;
z-index: 50;
2025-04-08 06:37:14 +04:00
}
.search-container {
2025-04-08 06:51:33 +04:00
flex: 1;
2025-04-08 06:37:14 +04:00
max-width: 600px;
margin: 0 auto;
}
.search-container form {
display: flex;
2025-04-08 06:51:33 +04:00
position: relative;
2025-04-08 06:37:14 +04:00
}
.search-container input {
2025-04-08 06:51:33 +04:00
width: 100%;
2025-04-08 06:37:14 +04:00
padding: 12px 15px;
border: none;
2025-04-08 06:51:33 +04:00
border-radius: 4px;
background-color: var(--search-bg);
2025-04-08 06:37:14 +04:00
font-size: 16px;
}
.search-container button {
2025-04-08 06:51:33 +04:00
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
background: none;
2025-04-08 06:37:14 +04:00
border: none;
cursor: pointer;
2025-04-08 06:51:33 +04:00
color: #555;
2025-04-08 06:37:14 +04:00
font-size: 18px;
}
2025-04-08 06:51:33 +04:00
.social-icons, .action-icons {
display: flex;
align-items: center;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.icon-button {
background: none;
border: none;
font-size: 24px;
color: var(--text-color);
margin-left: 15px;
cursor: pointer;
}
/* Hero Section */
2025-04-08 08:22:02 +04:00
.hero-mastodon-wrapper {
display: flex;
gap: 20px;
margin-bottom: 30px;
}
2025-04-08 06:51:33 +04:00
.hero {
position: relative;
2025-04-08 08:22:02 +04:00
width: 50%;
2025-04-08 06:51:33 +04:00
height: 400px;
background-color: #888;
overflow: hidden;
border-radius: 8px;
}
2025-04-08 08:22:02 +04:00
#mt-container {
width: 50%;
height: 400px;
border-radius: 8px;
2025-04-08 08:36:27 +04:00
display: flex;
flex-direction: column;
}
.mt-header {
padding: 12px 15px;
background: linear-gradient(45deg, #000000, #333333);
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.mt-title {
color: white;
font-size: 20px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
text-align: center;
}
.mt-title i {
color: var(--primary-red);
2025-04-08 08:22:02 +04:00
}
.mt-body {
2025-04-08 08:36:27 +04:00
height: calc(100% - 50px);
2025-04-08 08:22:02 +04:00
overflow-y: auto;
}
2025-04-08 06:51:33 +04:00
.hero-content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
}
.hero-logo {
font-size: 50px;
font-weight: 700;
2025-04-08 06:37:14 +04:00
margin-bottom: 20px;
2025-04-08 06:51:33 +04:00
text-transform: uppercase;
}
.hero-logo .re {
color: var(--primary-red);
}
.play-button {
width: 80px;
height: 80px;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.play-button i {
color: white;
font-size: 36px;
}
/* Tags Section */
.tags-section {
margin-bottom: 30px;
overflow-x: auto;
white-space: nowrap;
padding-bottom: 10px;
}
.tag {
display: inline-block;
padding: 8px 15px;
margin-right: 10px;
border: 1px solid var(--tag-border);
border-radius: 20px;
font-size: 14px;
background-color: var(--tag-bg);
cursor: pointer;
transition: background-color 0.2s;
}
.tag:hover {
background-color: rgba(0, 0, 0, 0.05);
}
/* Section Headers */
.section-header {
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 20px;
}
.section-logo {
margin-right: 15px;
}
.section-logo img {
height: 40px;
}
.section-title {
font-size: 24px;
font-weight: 600;
}
/* Video Sections */
.video-section {
margin-bottom: 40px;
2025-04-08 10:49:46 +04:00
position: relative;
2025-04-08 06:37:14 +04:00
}
.video-grid {
display: grid;
2025-04-08 10:49:46 +04:00
grid-template-columns: repeat(3, 1fr);
2025-04-08 06:37:14 +04:00
gap: 20px;
}
.video-card {
2025-04-08 06:51:33 +04:00
background-color: var(--card-bg);
2025-04-08 06:37:14 +04:00
border-radius: 8px;
overflow: hidden;
2025-04-08 06:51:33 +04:00
box-shadow: var(--card-shadow);
2025-04-08 06:37:14 +04:00
transition: transform 0.3s;
2025-04-08 06:51:33 +04:00
cursor: pointer;
2025-04-08 10:49:46 +04:00
height: 100%;
display: flex;
flex-direction: column;
2025-04-08 06:37:14 +04:00
}
.video-card:hover {
transform: translateY(-5px);
}
.video-thumbnail {
position: relative;
padding-top: 56.25%; /* 16:9 aspect ratio */
2025-04-08 10:49:46 +04:00
overflow: hidden;
2025-04-08 06:37:14 +04:00
}
.video-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
2025-04-08 06:51:33 +04:00
.video-play-icon {
2025-04-08 06:37:14 +04:00
position: absolute;
2025-04-08 06:51:33 +04:00
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2025-04-08 06:37:14 +04:00
color: white;
2025-04-08 06:51:33 +04:00
font-size: 50px;
opacity: 0;
transition: opacity 0.3s;
}
.video-card:hover .video-play-icon {
opacity: 1;
2025-04-08 06:37:14 +04:00
}
.video-info {
padding: 15px;
2025-04-08 10:49:46 +04:00
flex-grow: 1;
display: flex;
flex-direction: column;
2025-04-08 06:37:14 +04:00
}
.video-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
2025-04-08 06:51:33 +04:00
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
2025-04-08 10:49:46 +04:00
flex-grow: 1;
}
.video-channel {
font-size: 14px;
color: #555;
margin-bottom: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2025-04-08 06:37:14 +04:00
}
.video-metadata {
display: flex;
2025-04-08 06:51:33 +04:00
align-items: center;
justify-content: space-between;
2025-04-08 06:37:14 +04:00
font-size: 12px;
2025-04-08 06:51:33 +04:00
color: #666;
2025-04-08 10:49:46 +04:00
margin-top: auto;
}
.video-metadata i {
margin-right: 4px;
font-size: 13px;
color: var(--primary-red);
}
.video-views, .video-date {
display: flex;
align-items: center;
font-size: 12px;
}
.video-duration {
position: absolute;
bottom: 10px;
right: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 3px 6px;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.video-tag {
display: inline-block;
padding: 3px 8px;
background-color: #f0f0f0;
border-radius: 4px;
font-size: 12px;
margin-right: 5px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
/* Carousel */
.carousel {
2025-04-08 06:37:14 +04:00
position: relative;
overflow: hidden;
2025-04-08 10:49:46 +04:00
margin: 15px 0 30px;
padding: 10px 0;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.carousel-container {
display: flex;
transition: transform 0.5s ease;
2025-04-08 10:49:46 +04:00
padding-bottom: 10px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.carousel-item {
flex: 0 0 auto;
2025-04-08 10:49:46 +04:00
width: 220px;
2025-04-08 06:51:33 +04:00
margin-right: 20px;
}
.carousel-controls {
2025-04-08 06:37:14 +04:00
display: flex;
2025-04-08 06:51:33 +04:00
justify-content: center;
margin-top: 15px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.carousel-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #ccc;
margin: 0 5px;
cursor: pointer;
2025-04-08 10:49:46 +04:00
transition: all 0.2s ease;
2025-04-08 06:51:33 +04:00
}
.carousel-dot.active {
background-color: var(--primary-red);
2025-04-08 10:49:46 +04:00
transform: scale(1.2);
2025-04-08 06:51:33 +04:00
}
/* View More Button */
.view-more {
display: block;
width: max-content;
2025-04-08 10:49:46 +04:00
margin: 25px auto 5px;
padding: 12px 30px;
background-color: var(--primary-red);
color: white;
2025-04-08 06:51:33 +04:00
border: none;
border-radius: 4px;
font-size: 16px;
2025-04-08 10:49:46 +04:00
font-weight: 500;
2025-04-08 06:51:33 +04:00
cursor: pointer;
2025-04-08 10:49:46 +04:00
transition: all 0.2s;
text-transform: uppercase;
letter-spacing: 1px;
2025-04-08 06:51:33 +04:00
}
.view-more:hover {
2025-04-08 10:49:46 +04:00
background-color: #cc0000;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.view-more:disabled {
background-color: #999;
cursor: not-allowed;
transform: none;
box-shadow: none;
2025-04-08 06:51:33 +04:00
}
/* Info Section */
.info-section {
margin: 40px 0;
padding: 30px;
background-color: var(--card-bg);
border-radius: 8px;
box-shadow: var(--card-shadow);
}
.info-header {
font-size: 24px;
2025-04-08 06:37:14 +04:00
font-weight: 600;
2025-04-08 06:51:33 +04:00
margin-bottom: 20px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.info-text {
font-size: 16px;
line-height: 1.6;
margin-bottom: 20px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.info-image {
width: 100%;
margin: 20px 0;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
/* Footer */
.footer {
margin-top: 40px;
padding: 30px 0;
background-color: var(--sidebar-bg);
text-align: center;
}
.footer-logo {
2025-04-08 06:37:14 +04:00
margin-bottom: 20px;
}
2025-04-08 06:51:33 +04:00
.footer-logo img {
height: 50px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.footer-social {
display: flex;
justify-content: center;
margin-bottom: 20px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.footer-social a {
margin: 0 10px;
font-size: 24px;
color: var(--text-color);
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.footer-contact {
font-size: 18px;
font-weight: 600;
margin-bottom: 10px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.footer-email {
font-size: 16px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
/* Dark Mode Toggle */
.dark-mode-toggle {
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: var(--text-color);
margin-left: 15px;
2025-04-08 06:37:14 +04:00
}
/* Mobile Menu */
2025-04-08 06:51:33 +04:00
.mobile-menu-toggle {
display: none;
background: none;
border: none;
font-size: 24px;
cursor: pointer;
2025-04-08 06:37:14 +04:00
position: fixed;
2025-04-08 06:51:33 +04:00
top: 15px;
right: 15px;
2025-04-08 06:37:14 +04:00
z-index: 200;
}
.mobile-menu {
position: fixed;
top: 0;
left: 0;
2025-04-08 06:51:33 +04:00
width: 100%;
2025-04-08 06:37:14 +04:00
height: 100%;
2025-04-08 06:51:33 +04:00
background-color: var(--main-bg);
z-index: 150;
padding: 60px 20px 20px;
transform: translateX(-100%);
transition: transform 0.3s;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.mobile-menu.active {
transform: translateX(0);
2025-04-08 06:37:14 +04:00
}
.mobile-menu-close {
2025-04-08 06:51:33 +04:00
position: absolute;
top: 15px;
right: 15px;
2025-04-08 06:37:14 +04:00
background: none;
border: none;
font-size: 24px;
cursor: pointer;
}
/* Media Queries */
2025-04-08 10:24:29 +04:00
@media (max-width: 1200px) and (min-width: 1001px) {
2025-04-08 10:21:20 +04:00
.sidebar {
width: 70px;
}
.main-content {
margin-left: 70px;
width: calc(100% - 70px);
}
2025-04-08 10:28:34 +04:00
.nav-item span {
2025-04-08 10:21:20 +04:00
display: none;
}
2025-04-08 10:28:34 +04:00
/* Masquer complètement la section Hashtags */
.category-title,
2025-04-08 10:21:20 +04:00
.tag-item {
2025-04-08 10:28:34 +04:00
display: none;
}
.nav-item {
2025-04-08 10:21:20 +04:00
justify-content: center;
padding: 15px 0;
position: relative;
}
2025-04-08 10:28:34 +04:00
.nav-item i {
2025-04-08 10:21:20 +04:00
margin-right: 0;
font-size: 20px;
}
/* Tooltip for compact mode */
2025-04-08 10:28:34 +04:00
.nav-item:hover::after {
2025-04-08 10:21:20 +04:00
content: attr(data-title);
position: absolute;
left: 70px;
top: 50%;
transform: translateY(-50%);
background: var(--sidebar-bg);
color: var(--text-color);
padding: 5px 10px;
border-radius: 4px;
white-space: nowrap;
box-shadow: 0 1px 5px rgba(0,0,0,0.2);
z-index: 100;
}
.logo {
text-align: center;
padding: 10px 0;
}
.logo img {
height: 30px;
}
}
2025-04-08 10:24:29 +04:00
@media (max-width: 1000px) {
2025-04-08 06:51:33 +04:00
.sidebar {
2025-04-08 06:37:14 +04:00
display: none;
}
2025-04-08 06:51:33 +04:00
.main-content {
margin-left: 0;
width: 100%;
}
2025-04-08 06:37:14 +04:00
.mobile-menu-toggle {
display: block;
}
2025-04-08 06:51:33 +04:00
.header {
padding: 10px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.search-container {
max-width: 100%;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.social-icons {
display: none;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
2025-04-08 08:22:02 +04:00
.hero-mastodon-wrapper {
flex-direction: column;
}
.hero, #mt-container {
width: 100%;
2025-04-08 06:51:33 +04:00
height: 300px;
}
2025-04-08 10:13:32 +04:00
#mt-container {
height: 600px;
}
/* Réduire la taille des boutons du footer Mastodon en mobile */
.mt-footer .mt-btn-violet {
font-size: 12px !important;
padding: 5px 10px !important;
}
2025-04-08 06:51:33 +04:00
.hero-logo {
font-size: 40px;
2025-04-08 06:37:14 +04:00
}
}
2025-04-08 10:24:29 +04:00
@media (max-width: 992px) {
.video-grid {
2025-04-08 10:49:46 +04:00
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.video-title {
font-size: 15px;
2025-04-08 10:24:29 +04:00
}
}
2025-04-08 06:37:14 +04:00
@media (max-width: 576px) {
.video-grid {
grid-template-columns: 1fr;
2025-04-08 10:49:46 +04:00
gap: 15px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.section-title {
font-size: 20px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 06:51:33 +04:00
.hero-logo {
font-size: 36px;
}
.play-button {
width: 60px;
height: 60px;
}
.play-button i {
font-size: 24px;
2025-04-08 06:37:14 +04:00
}
2025-04-08 10:49:46 +04:00
.video-title {
font-size: 16px;
}
2025-04-08 06:37:14 +04:00
}