feat: show WordPress posts
This commit is contained in:
@@ -0,0 +1,204 @@
|
||||
/* Styles pour la liste compacte d'articles WordPress */
|
||||
|
||||
/* Container principal pour timeline + wordpress */
|
||||
.timeline-wordpress-container {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr;
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
align-items: start;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wordpress-container {
|
||||
background: var(--card-bg);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-color);
|
||||
box-shadow: var(--card-shadow);
|
||||
overflow: hidden;
|
||||
height: 400px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.wordpress-section {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* Assurer que le container Mastodon garde son scroll */
|
||||
.timeline-wordpress-container .mt-container {
|
||||
height: 400px !important;
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
|
||||
.wordpress-header {
|
||||
background: var(--primary-red);
|
||||
color: white;
|
||||
padding: 12px 16px;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.wordpress-header a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.wordpress-header a:hover {
|
||||
opacity: 0.8;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.wordpress-posts-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--primary-red) transparent;
|
||||
}
|
||||
|
||||
.wordpress-posts-list::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.wordpress-posts-list::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wordpress-posts-list::-webkit-scrollbar-thumb {
|
||||
background-color: var(--primary-red);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.wordpress-post-item {
|
||||
display: flex;
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: background-color 0.2s ease;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.wordpress-post-item:hover {
|
||||
background: var(--hover-bg);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wordpress-post-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.wordpress-post-thumb {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
background: var(--tag-bg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.wordpress-post-thumb img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.wordpress-post-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.wordpress-post-title {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-color);
|
||||
margin: 0 0 4px 0;
|
||||
line-height: 1.2;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
.wordpress-post-meta {
|
||||
font-size: 0.65rem;
|
||||
color: var(--text-secondary);
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.wordpress-no-posts {
|
||||
text-align: center;
|
||||
color: var(--text-secondary);
|
||||
padding: 20px;
|
||||
font-style: italic;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Ajustement du container Mastodon */
|
||||
.mt-container {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 1024px) {
|
||||
/* Mobile/Tablette: layout vertical */
|
||||
.timeline-wordpress-container {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.wordpress-section {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Maintenir la hauteur et le scroll du container Mastodon en mobile */
|
||||
.timeline-wordpress-container .mt-container {
|
||||
height: 400px !important;
|
||||
overflow-y: auto !important;
|
||||
max-height: 400px !important;
|
||||
}
|
||||
|
||||
.wordpress-container {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.wordpress-post-thumb {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.wordpress-post-item {
|
||||
padding: 10px 12px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.wordpress-post-title {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
|
||||
.wordpress-post-meta {
|
||||
font-size: 0.65rem;
|
||||
}
|
||||
|
||||
.wordpress-header {
|
||||
padding: 10px 12px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user