diff --git a/src/backend/views/pages/form.twig b/src/backend/views/pages/form.twig index d2bedd7..6f55824 100644 --- a/src/backend/views/pages/form.twig +++ b/src/backend/views/pages/form.twig @@ -13,14 +13,18 @@ }
- - - New Page at the +
{% set currentPageId = 0 %} {% if page is not empty %} {% set currentPageId = page._id %} {% endif %} - {% for _page in pagesAvailableGrouped %} {% if _page._id != currentPageId %} @@ -34,24 +38,25 @@ {% endif %} {% endfor %} - - +
{% if parentsChildrenOrdered is not empty %} - - Put Above - {% for _page in parentsChildrenOrdered %} {% endfor %} - + {% endif %} -
- - {% if page is not empty %} -

- {% endif %} + {% if page is not empty %} +
+ + +
+ {% endif %} +
diff --git a/src/frontend/styles/components/writing.pcss b/src/frontend/styles/components/writing.pcss index 5bb1efa..6462f67 100644 --- a/src/frontend/styles/components/writing.pcss +++ b/src/frontend/styles/components/writing.pcss @@ -1,5 +1,4 @@ .writing-header { - display: flex; position: sticky; top: 0; padding: 15px 0; @@ -15,18 +14,32 @@ margin: auto; } - &__left { + &__inner-container { margin: auto 0; + display: flex; color: var(--color-text-second); + gap: 10px; - & span { - margin-right: 10px; + @media(--mobile) { + flex-flow: column; } - } - select { - max-width: 100px; - vertical-align: bottom; + & > * { + flex: 0 1 33.3%; + } + + label { + display: block; + margin-bottom: 6px; + } + + select { + @apply --select; + } + + input { + @apply --input; + } } } @@ -38,16 +51,6 @@ } } -.uri-input { - box-sizing: border-box; - width: 100%; - padding: 10px 12px; - border-radius: 3px; - border: 1px solid rgba(201, 201, 204, 0.48); - box-shadow: inset 0 1px 2px 0 rgba(35, 44, 72, 0.06); - outline: none; -} - .writing-editor { font-size: 15px; line-height: 1.6; diff --git a/src/frontend/styles/vars.pcss b/src/frontend/styles/vars.pcss index ed96a46..dc7214d 100644 --- a/src/frontend/styles/vars.pcss +++ b/src/frontend/styles/vars.pcss @@ -6,6 +6,8 @@ --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; @@ -77,6 +79,49 @@ } } + --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; @@ -95,4 +140,4 @@ @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) \ No newline at end of file +@custom-media --can-hover all and (hover:hover); diff --git a/src/frontend/svg/arrow-down.svg b/src/frontend/svg/arrow-down.svg new file mode 100644 index 0000000..4ddbc96 --- /dev/null +++ b/src/frontend/svg/arrow-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/webpack.config.js b/webpack.config.js index 4011607..997726a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -40,7 +40,7 @@ module.exports = () => { options: { // you can specify a publicPath here // by default it use publicPath in webpackOptions.output - publicPath: '../', + // publicPath: '../', }, }, {