Новые изменения компоентов

This commit is contained in:
Web-serfer 2026-05-03 19:46:02 +05:00
parent 8b3a7efd7e
commit 208ad2d967
12 changed files with 151 additions and 476 deletions

View file

@ -184,25 +184,144 @@ const heroImage = getPostImageUrl(post);
background: #f8fafc;
}
/* Comparison Grid */
.post-content :global(.comparison-grid) {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 0;
margin: 2rem 0;
border-radius: 0.5rem;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.post-content :global(.grid-row) {
display: contents;
}
.post-content :global(.grid-cell) {
padding: 1rem;
border-bottom: 1px solid #e2e8f0;
background: #fff;
font-size: 0.95rem;
}
.post-content :global(.grid-header .grid-cell) {
background: #1e3a5f;
color: #fff;
font-weight: 700;
text-align: center;
}
.post-content :global(.grid-row:last-child .grid-cell) {
border-bottom: none;
}
.post-content :global(.grid-row:hover .grid-cell) {
background: #f8fafc;
}
@media (max-width: 768px) {
.post-content {
max-width: 100% !important;
overflow-x: hidden !important;
box-sizing: border-box;
}
.post-content :global(*) {
max-width: 100% !important;
box-sizing: border-box;
}
.post-content :global(h2) {
font-size: 1rem;
text-align: center;
justify-content: center;
box-sizing: border-box;
}
.post-content :global(h3) {
font-size: 0.9rem;
text-align: center;
justify-content: center;
box-sizing: border-box;
}
.post-content :global(p) {
font-size: 0.9rem;
box-sizing: border-box;
}
.post-content :global(li) {
font-size: 0.9rem;
box-sizing: border-box;
}
.post-content :global(table) {
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
max-width: 100% !important;
width: auto !important;
box-sizing: border-box;
}
.post-content :global(blockquote) {
padding: 1rem;
box-sizing: border-box;
max-width: 100%;
}
.post-content :global(ul),
.post-content :global(ol) {
padding-left: 1rem;
box-sizing: border-box;
}
/* Comparison Grid - мобильная версия */
.post-content :global(.comparison-grid) {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.post-content :global(.grid-row) {
display: flex;
flex-direction: column;
background: #fff;
border-radius: 0.5rem;
overflow: hidden;
box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.post-content :global(.grid-header) {
display: none;
}
.post-content :global(.grid-cell) {
padding: 0.75rem 1rem;
border: none;
border-bottom: 1px solid #f1f5f9;
}
.post-content :global(.grid-cell:last-child) {
border-bottom: none;
}
.post-content :global(.cell-label) {
background: #1e3a5f;
color: #fff;
font-weight: 600;
}
.post-content :global(.cell-label + .grid-cell) {
color: #64748b;
font-size: 0.85rem;
}
.post-content :global(.cell-label + .grid-cell + .grid-cell) {
color: #64748b;
font-size: 0.85rem;
}
}
</style>