mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-09 23:45:25 +02:00
page styles updated
This commit is contained in:
parent
73d5d29806
commit
6ef1a867fc
4 changed files with 89 additions and 47 deletions
|
@ -46,10 +46,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
@apply --font-serif;
|
font-size: 36px;
|
||||||
font-size: 35px;
|
font-weight: 800;
|
||||||
font-weight: 900;
|
|
||||||
letter-spacing: -0.04em;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +109,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&-block {
|
&-block {
|
||||||
padding: 8px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,6 +120,8 @@
|
||||||
* ==================
|
* ==================
|
||||||
*/
|
*/
|
||||||
.block-paragraph {
|
.block-paragraph {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
.inline-code {
|
.inline-code {
|
||||||
-webkit-font-smoothing: initial;
|
-webkit-font-smoothing: initial;
|
||||||
-moz-osx-font-smoothing: initial;
|
-moz-osx-font-smoothing: initial;
|
||||||
|
@ -133,21 +133,17 @@
|
||||||
* ==================
|
* ==================
|
||||||
*/
|
*/
|
||||||
.block-header {
|
.block-header {
|
||||||
@apply --font-serif;
|
margin: 18px 0 0;
|
||||||
margin: 2.1em 0 0.5em;
|
line-height: 1.35em;
|
||||||
|
|
||||||
&--2 {
|
&--2 {
|
||||||
font-size: 22px;
|
font-size: 24px;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--3 {
|
&--3 {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
}
|
|
||||||
|
|
||||||
& + p {
|
|
||||||
margin-top: 0.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -197,14 +193,26 @@
|
||||||
* ==================
|
* ==================
|
||||||
*/
|
*/
|
||||||
.block-code {
|
.block-code {
|
||||||
background: var(--color-bg-light);
|
--color-code-bg: #252935;
|
||||||
border: 1px solid #f1f1f4;
|
--color-code-main: #E1EBFE;
|
||||||
border-radius: 5px;
|
--color-code-keyword: #ff6675;
|
||||||
|
--color-code-class: #bf9dff;
|
||||||
|
--color-code-variable: #69c6ff;
|
||||||
|
--color-code-string: #81bcff;
|
||||||
|
--color-code-params: #ffa259;
|
||||||
|
--color-code-tag: #74e59d;
|
||||||
|
--color-code-number: #ff6262;
|
||||||
|
--color-code-comment: #6c7f93;
|
||||||
|
|
||||||
|
|
||||||
|
background: var(--color-code-bg);
|
||||||
|
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
line-height: 1.7em;
|
line-height: 1.5em;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
margin: 15px 0;
|
|
||||||
|
@apply --squircle;
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
display: inline-block !important;
|
display: inline-block !important;
|
||||||
|
@ -212,7 +220,7 @@
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
padding: 15px !important;
|
padding: 15px !important;
|
||||||
color: #41314e !important;
|
color: var(--color-code-main) !important;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
@ -223,13 +231,31 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hljs-params {
|
||||||
|
color: var(--color-code-params);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-number {
|
||||||
|
color: var(--color-code-number);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.hljs-title,
|
||||||
|
.hljs-title.class_,
|
||||||
|
.hljs-title.class_.inherited__,
|
||||||
|
.hljs-title.function_ {
|
||||||
|
color: var(--color-code-class);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.hljs-name,
|
.hljs-name,
|
||||||
.hljs-section{
|
.hljs-section,
|
||||||
color: #359f3f;
|
.hljs-selector-tag {
|
||||||
|
color: var(--color-code-tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-tag {
|
.hljs-tag {
|
||||||
color: #718c77;
|
color: var(--color-code-main);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-attr,
|
.hljs-attr,
|
||||||
|
@ -238,7 +264,13 @@
|
||||||
.hljs-selector-id,
|
.hljs-selector-id,
|
||||||
.hljs-selector-pseudo,
|
.hljs-selector-pseudo,
|
||||||
.hljs-title {
|
.hljs-title {
|
||||||
color: #904eb3;
|
color: var(--color-code-class);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-attribute,
|
||||||
|
.hljs-literal,
|
||||||
|
.hljs-operator {
|
||||||
|
color: var(--color-code-variable);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-emphasis,
|
.hljs-emphasis,
|
||||||
|
@ -247,8 +279,29 @@
|
||||||
.hljs-strong,
|
.hljs-strong,
|
||||||
.hljs-template-variable,
|
.hljs-template-variable,
|
||||||
.hljs-variable {
|
.hljs-variable {
|
||||||
color: #c21f04;
|
color: var(--color-code-string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hljs-doctag,
|
||||||
|
.hljs-keyword,
|
||||||
|
.hljs-meta .hljs-keyword,
|
||||||
|
.hljs-template-tag,
|
||||||
|
.hljs-template-variable,
|
||||||
|
.hljs-type {
|
||||||
|
color: var(--color-code-keyword);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-variable.language_ {
|
||||||
|
color: var(--color-code-variable) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-code,
|
||||||
|
.hljs-comment,
|
||||||
|
.hljs-formula {
|
||||||
|
color: var(--color-code-comment);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -256,10 +309,12 @@
|
||||||
* ==================
|
* ==================
|
||||||
*/
|
*/
|
||||||
.block-list {
|
.block-list {
|
||||||
margin: 20px 0;
|
margin: 0;
|
||||||
|
list-style: outside;
|
||||||
|
padding-left: 26px;
|
||||||
|
|
||||||
li {
|
li:not(:last-of-type) {
|
||||||
margin: 10px 0;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,10 +68,6 @@
|
||||||
.ce-paragraph a {
|
.ce-paragraph a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ce-header {
|
|
||||||
@apply --font-serif;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.codex-editor__redactor .ce-block:first-of-type .ce-header {
|
.codex-editor__redactor .ce-block:first-of-type .ce-header {
|
||||||
|
|
|
@ -2,27 +2,23 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
span {
|
|
||||||
color: inherit !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--added {
|
&--added {
|
||||||
color: #277030;
|
color: #70b979;
|
||||||
background-color: #e2fce7;
|
background-color: #25f84d21;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: '+';
|
content: '+';
|
||||||
opacity: 0.4;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&--removed {
|
&--removed {
|
||||||
color: rgb(174, 54, 60);
|
color: #f1acaf;
|
||||||
background-color: rgba(255, 230, 230, 1);
|
background-color: #95000069;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: '-';
|
content: '-';
|
||||||
opacity: 0.4;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,11 +44,6 @@
|
||||||
|
|
||||||
--font-mono: Menlo,Monaco,Consolas,Courier New,monospace;
|
--font-mono: Menlo,Monaco,Consolas,Courier New,monospace;
|
||||||
|
|
||||||
--font-serif {
|
|
||||||
font-family: "Lucida Grande","Lucida Sans Unicode","Lucida Sans", Geneva, Arial, sans-serif;
|
|
||||||
letter-spacing: -0.03em;
|
|
||||||
}
|
|
||||||
|
|
||||||
--button {
|
--button {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 9px 15px;
|
padding: 9px 15px;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue