mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-24 15:49:42 +02:00
* Added navigation on page * Removed useless log, added docs to navigator component * Fixed duplicated variables, some changes in navigation functions, changed pages.twig and navigator.twig * Added flatArray model, changed navigation functions * Replaced page footer style to page.pcss * Fixed generating flat array, when pages remove * Removed useless generating * Renamed flatArray model to pagesFlatArray, updated descriptions, renamed generate to regenerate, removed hardcoded key name in cache * Changed styles naming and added margin for navigation * Added ability to change nesting in flat array, fixed BEM * Updated nesting parameter, fixed BEM * Changed navigator component by passing objects, removed navigator wrapper * Style navigator renamed to navigator__item * Update src/backend/models/pagesFlatArray.ts Co-authored-by: Peter Savchenko <specc.dev@gmail.com> * Renamed navigator__item to navigator_item * Deleted wrappers from navigator buttons, removed page__footer Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
144 lines
3.7 KiB
Text
144 lines
3.7 KiB
Text
:root {
|
|
--color-text-main: #313649;
|
|
--color-text-second: #5d6068;
|
|
--color-direction-navigation: #717682;
|
|
--color-line-gray: #E8E8EB;
|
|
--color-link-active: #2071cc;
|
|
--color-link-hover: #F3F6F8;
|
|
--color-bg-light: #f8f7fa;
|
|
--color-page-active: #ff1767;
|
|
--color-input-primary: #F3F6F8;
|
|
--color-input-border: #477CFF;
|
|
|
|
--color-button-primary: #3389FF;
|
|
--color-button-primary-hover: #2E7AE6;
|
|
--color-button-primary-active: #296DCC;
|
|
|
|
--color-button-secondary: #717682;
|
|
--color-button-secondary-hover: #5D6068;
|
|
--color-button-secondary-active: #4B4F5B;
|
|
|
|
--color-button-warning: #EF5C5C;
|
|
--color-button-warning-hover: #D65151;
|
|
--color-button-warning-active: #BD4848;
|
|
|
|
|
|
/**
|
|
* Site layout sizes
|
|
*/
|
|
--layout-padding-horizontal: 22px;
|
|
--layout-padding-vertical: 30px;
|
|
--layout-sidebar-width: 290px;
|
|
--layout-width-main-col: 650px;
|
|
--layout-height-header: 56px;
|
|
|
|
@media (--mobile) {
|
|
--layout-padding-horizontal: 15px;
|
|
--layout-padding-vertical: 15px;
|
|
--layout-height-header: 88px;
|
|
}
|
|
|
|
@media (--wide-desktop) {
|
|
--layout-sidebar-width: 344px;
|
|
}
|
|
|
|
--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 {
|
|
display: inline-block;
|
|
padding: 9px 15px;
|
|
border-radius: 3px;
|
|
color: #6c6375;
|
|
background: #fcfcff;
|
|
box-shadow: inset 0 0 0 1px rgba(184, 189, 206, 0.2);
|
|
font-size: 14px;
|
|
line-height: 1em;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
-webkit-appearance: none;
|
|
border: 0;
|
|
|
|
svg {
|
|
margin: 0 0.3em 0 -0.05em;
|
|
}
|
|
}
|
|
|
|
|
|
--button-primary {
|
|
background: var(--color-link-active);
|
|
color: #fff;
|
|
box-shadow: none;
|
|
|
|
&:hover {
|
|
background: color-mod(var(--color-link-active) blackness(+10%));
|
|
}
|
|
}
|
|
|
|
--select {
|
|
position: relative;
|
|
padding: 10px 30px 10px 10px;
|
|
width: 100%;
|
|
border: solid 1px transparent;
|
|
border-radius: 8px;
|
|
background-color: var(--color-input-primary);
|
|
box-sizing: border-box;
|
|
appearance: none;
|
|
line-height: 18px;
|
|
background-image: url("../svg/arrow-down.svg");
|
|
background-repeat: no-repeat;
|
|
background-position: right 15px center;
|
|
|
|
&:focus {
|
|
border: solid 1px var(--color-input-border);
|
|
box-shadow: 0 0 0 3px rgba(18, 155, 255, 0.33);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
--input {
|
|
padding: 10px;
|
|
width: 100%;
|
|
line-height: 18px;
|
|
border: solid 1px transparent;
|
|
border-radius: 8px;
|
|
background-color: var(--color-input-primary);
|
|
box-sizing: border-box;
|
|
|
|
&:focus {
|
|
border: solid 1px var(--color-input-border);
|
|
box-shadow: 0 0 0 3px rgba(18, 155, 255, 0.33);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
--squircle {
|
|
border-radius: 8px;
|
|
|
|
@supports(-webkit-mask-box-image: url('')){
|
|
border-radius: 0;
|
|
-webkit-mask-box-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10.3872C0 1.83334 1.83334 0 10.3872 0H13.6128C22.1667 0 24 1.83334 24 10.3872V13.6128C24 22.1667 22.1667 24 13.6128 24H10.3872C1.83334 24 0 22.1667 0 13.6128V10.3872Z' fill='black'/%3E%3C/svg%3E%0A") 48% 41% 37.9% 53.3%;;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Custom media queries
|
|
*/
|
|
@custom-media --wide-desktop all and (min-width: 1300px);
|
|
@custom-media --desktop all and (min-width: 1050px);
|
|
@custom-media --tablet all and (min-width: 980px) and (max-width: 1050px);
|
|
@custom-media --mobile all and (max-width: 980px);
|
|
@custom-media --retina all and (-webkit-min-device-pixel-ratio: 1.5);
|
|
@custom-media --can-hover all and (hover:hover);
|