1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-08 06:55:26 +02:00

make page and editor more similar

This commit is contained in:
Peter Savchenko 2022-09-15 22:09:47 +03:00
parent c0d7f48910
commit d45a3abae8
No known key found for this signature in database
GPG key ID: E68306B1AB0F727C
3 changed files with 40 additions and 22 deletions

View file

@ -58,6 +58,7 @@
&__title {
@apply --text-content-title;
margin-bottom: 10px;
line-height: 1.35em;
}
.cdx-marker {
@ -103,10 +104,12 @@
.block-header {
@apply --text-header;
margin-top: 10px;
display: flex;
align-items: center;
transform: translateX(-36px);
cursor: text;
&--2 {
@apply --text-header-2;
}
@ -336,17 +339,7 @@
* ==================
*/
.block-list {
margin: 0;
list-style: outside;
padding-left: 40px;
&--ordered {
list-style-type: decimal
}
li:not(:last-of-type) {
margin-bottom: 8px;
}
@apply --text-list;
}
/**

View file

@ -58,13 +58,17 @@
border-radius: 8px;
}
.ce-paragraph a {
.ce-paragraph {
line-height: inherit;
a {
@apply --text-inline-link;
}
}
.ce-header {
@apply --text-header;
padding: 0;
padding: 0 0 10px;
}
h2.ce-header {
@ -75,10 +79,6 @@
@apply --text-header-3;
}
.cdx-block {
padding: 0;
}
.inline-code {
@apply --text-inline-code;
}
@ -92,7 +92,11 @@
}
.cdx-list {
padding-left: 40px;
@apply --text-list;
&__item {
line-height: inherit;
}
}
@media (--desktop) {
@ -107,7 +111,7 @@
@apply --text-content-title;
}
.ce-block {
.cdx-block {
@apply --content-block;
}

View file

@ -148,7 +148,7 @@
* The common styles for the Page blocks as well as Editor blocks
*/
--content-block {
margin: 20px 0;
padding: 10px 0;
}
/**
@ -184,7 +184,7 @@
* Common styles for text headings (H2, H3, H4)
*/
--text-header {
margin: 28px 0 0;
margin: 20px 0 0;
line-height: 1.35em;
}
@ -257,6 +257,27 @@
}
}
/**
* Styles for the List block
*/
--text-list {
margin: 0;
list-style: outside;
padding-left: 40px;
&--ordered {
list-style-type: decimal
}
li {
padding: 0;
&:not(:last-of-type){
margin-bottom: 8px;
}
}
}
}
/**