mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:09:46 +00:00
Общие стили для кастомных проектов: "Цитаты", таблицы
This commit is contained in:
1 parent
9c24289c07
commit
5c1ebf1055
4 files changed
+144
No files matched your search
@@ -0,0 +1,72 @@
|
||||
$background-tape: #F5F5F7;
|
||||
|
||||
:root {
|
||||
--wp--preset--spacing--10: 5%;
|
||||
--wp--preset--spacing--20: 10%;
|
||||
--wp--preset--spacing--30: 15%;
|
||||
--wp--preset--spacing--40: 20%;
|
||||
--wp--preset--spacing--50: 25%;
|
||||
--wp--preset--spacing--60: 30%;
|
||||
}
|
||||
|
||||
.content>h1,
|
||||
.content>h2,
|
||||
.content>h3 {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.custom {
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 4em;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-columns {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.is-layout-flex {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 2em;
|
||||
|
||||
figure {
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
object-fit: contain !important; // Wordpress накидывает styles к элементу, приходится перебивать
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.has-text-align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.is-style-rounded * {
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
* {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding: 16px 0;
|
||||
background: $background-tape;
|
||||
|
||||
p {
|
||||
display: inline-block;
|
||||
max-width: 40%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user