mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 03:49:45 +00:00
Стили для проектов, хук для динамического размера
This commit is contained in:
1 parent
f22179654b
commit
3b201e8a8b
5 files changed
+196
-154
No files matched your search
@@ -17,7 +17,7 @@ $background-tape: #F5F5F7;
|
||||
.project {
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 4em;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.wp-block-columns {
|
||||
@@ -82,7 +82,8 @@ $background-tape: #F5F5F7;
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
font-size: 20px;
|
||||
font-size: 18px;
|
||||
word-wrap: normal;
|
||||
|
||||
th,
|
||||
td {
|
||||
|
||||
@@ -2,6 +2,7 @@ import { ReactNode } from "react";
|
||||
|
||||
import MediaBlock from "@/widgets/MediaBlock/MediaBlock";
|
||||
import { PageContent, PageHeader } from "@/widgets/WpPost";
|
||||
import { useResizeObserver } from "@/shared/lib/ResizeObserver/ResizeObserver";
|
||||
import { App } from "@/shared/types/app";
|
||||
|
||||
import "./Projects.scss";
|
||||
@@ -15,6 +16,8 @@ export default function WpPost({
|
||||
post,
|
||||
children,
|
||||
}: WpPostProps) {
|
||||
useResizeObserver({parentSelector: '.wp-block-pullquote'});
|
||||
|
||||
return (
|
||||
<div className={post.categories?.includes('projects') ? "project" : ""}>
|
||||
<PageHeader className="header">
|
||||
|
||||
Reference in new issue
Block a user