1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-09 23:45:25 +02:00

page header nav fix, inline code style fix, table, navigator

This commit is contained in:
Peter Savchenko 2022-09-05 21:06:39 +03:00
parent 6ef1a867fc
commit afb014f7ab
No known key found for this signature in database
GPG key ID: E68306B1AB0F727C
4 changed files with 43 additions and 38 deletions

View file

@ -3,19 +3,21 @@
{% block body %} {% block body %}
<article class="page" data-module="page"> <article class="page" data-module="page">
<header class="page__header"> <header class="page__header">
<a href="/" class="page__header-nav"> <div class="page__header-nav">
Documentation <a href="/" class="page__header-nav-item">
</a> Documentation
{% if page._parent %}
<a class="page__header-nav"
{% if pageParent.uri %}
href="/{{ pageParent.uri }}"
{% else %}
href="/page/{{ pageParent._id }}"
{% endif %}>
{{ pageParent.title }}
</a> </a>
{% endif %} {% if page._parent %}
<a class="page__header-nav-item"
{% if pageParent.uri %}
href="/{{ pageParent.uri }}"
{% else %}
href="/page/{{ pageParent._id }}"
{% endif %}>
{{ pageParent.title }}
</a>
{% endif %}
</div>
<time class="page__header-time"> <time class="page__header-time">
Last edit {{ (page.body.time / 1000) | date("M d Y") }} Last edit {{ (page.body.time / 1000) | date("M d Y") }}
</time> </time>

View file

@ -10,13 +10,13 @@
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
background-color: var(--color-link-hover); background-color: var(--color-link-hover);
border-radius: 10px;
padding: 12px 16px 12px 16px; padding: 12px 16px 12px 16px;
color: black; color: black;
width: max-content; width: max-content;
font-weight: 500;
font-size: 14px; font-size: 14px;
@apply --squircle;
&--previous { &--previous {
align-items: flex-start; align-items: flex-start;
margin-left: 0; margin-left: 0;
@ -31,11 +31,13 @@
text-transform: capitalize; text-transform: capitalize;
color: var(--color-direction-navigation); color: var(--color-direction-navigation);
font-size: 12px; font-size: 12px;
font-weight: 400; line-height: 140%;
margin-bottom: 2px;
} }
&-label { &-label {
width: 100%; width: 100%;
font-weight: 500;
} }
} }

View file

@ -12,21 +12,23 @@
} }
&-nav { &-nav {
color: inherit; &-item {
text-decoration: none; color: inherit;
text-decoration: none;
@media (--mobile) { @media (--mobile) {
display: none; display: none;
} }
&:hover { &:hover {
color: var(--color-link-active); color: var(--color-link-active);
} }
&:not(:last-of-type) { &:not(:last-of-type) {
&::after { &::after {
content: '»'; content: '»';
margin: 0 0.7em 0 0.45em; margin: 0 0.7em 0 0.45em;
}
} }
} }
} }
@ -58,15 +60,12 @@
.inline-code, .inline-code,
.block-header a .inline-code { .block-header a .inline-code {
@apply --squircle;
font-size: 14px; font-size: 14px;
display: inline-block; display: inline-block;
background: rgba(251,241,241,0.78); background: rgba(251,241,241,0.78);
color: #C44545; color: #C44545;
padding: 3px 6px 2px; padding: 3px 6px 2px;
border-radius: 2px;
margin: -1px 2px 0; margin: -1px 2px 0;
font-family: Menlo, Monaco, Consolas, Courier New, monospace; font-family: Menlo, Monaco, Consolas, Courier New, monospace;
font-size: 0.84em; font-size: 0.84em;
@ -100,7 +99,7 @@
border-bottom: 1px dashed rgba(84, 151, 255, 0.99); border-bottom: 1px dashed rgba(84, 151, 255, 0.99);
color: #1f6fd8; color: #1f6fd8;
background-color: #daf1fe; background-color: #daf1fe;
@apply --squircle; border-radius: 0 !important;
&:hover { &:hover {
background-color: #c8edfe; background-color: #c8edfe;
@ -301,6 +300,10 @@
color: var(--color-code-comment); color: var(--color-code-comment);
} }
.hljs-regexp {
color: var(--color-code-tag);
}
} }
@ -390,7 +393,6 @@
* ================== * ==================
*/ */
.block-table { .block-table {
margin: 20px 0;
table-layout: fixed; table-layout: fixed;
width: 100%; width: 100%;
border-radius: 3px; border-radius: 3px;
@ -398,7 +400,7 @@
border: 1px solid var(--color-line-gray); border: 1px solid var(--color-line-gray);
td { td {
padding: 8px 10px; padding: 6px 8px;
border: 1px solid var(--color-line-gray); border: 1px solid var(--color-line-gray);
} }
} }
@ -410,10 +412,9 @@
.block-warning { .block-warning {
display: flex; display: flex;
padding: 20px; padding: 20px;
margin: 30px 0; background: #fffad0;
border-radius: 7px;
background: #fff9ef; @apply --squircle;
color: #392e2f;
&__icon { &__icon {
margin-right: 15px; margin-right: 15px;

View file

@ -1,5 +1,5 @@
:root { :root {
--color-text-main: #313649; --color-text-main: #060C26;
--color-text-second: #5d6068; --color-text-second: #5d6068;
--color-direction-navigation: #717682; --color-direction-navigation: #717682;
--color-line-gray: #E8E8EB; --color-line-gray: #E8E8EB;