Новый стили для таблицы
This commit is contained in:
parent
b722c54036
commit
8b3a7efd7e
4 changed files with 215 additions and 87 deletions
|
|
@ -152,6 +152,38 @@ const heroImage = getPostImageUrl(post);
|
|||
font-style: italic;
|
||||
}
|
||||
|
||||
.post-content :global(table) {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 2rem 0;
|
||||
font-size: 0.95rem;
|
||||
background: #fff;
|
||||
border-radius: 0.5rem;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.post-content :global(th) {
|
||||
background: #1e3a5f;
|
||||
color: #fff;
|
||||
padding: 1rem;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.post-content :global(td) {
|
||||
padding: 0.875rem 1rem;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.post-content :global(tr:last-child td) {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.post-content :global(tr:hover td) {
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.post-content :global(h2) {
|
||||
font-size: 1rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue