diff --git a/CHANGELOG.md b/CHANGELOG.md index 036c931..b3bb98e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.3.12 + +- Update light theme +- Sticky navbar +- Sticky post modal header + ## 0.3.11 - Add saved posts section diff --git a/package.json b/package.json index 9ba71f8..a205f94 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "newsreader", - "version": "0.3.11", + "version": "0.3.12", "description": "Application for viewing RSS feeds", "main": "index.js", "scripts": { diff --git a/pyproject.toml b/pyproject.toml index 89c7d2e..39f7c78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "newsreader" -version = "0.3.11" +version = "0.3.12" description = "Webapplication for reading RSS feeds" authors = ["Sonny "] license = "GPL-3.0" diff --git a/src/newsreader/js/pages/homepage/components/PostModal.js b/src/newsreader/js/pages/homepage/components/PostModal.js index 6da8044..9746aee 100644 --- a/src/newsreader/js/pages/homepage/components/PostModal.js +++ b/src/newsreader/js/pages/homepage/components/PostModal.js @@ -73,55 +73,60 @@ class PostModal extends React.Component { return (
-
- - -
-

{`${post.title} `}

- diff --git a/src/newsreader/scss/components/navbar/_navbar.scss b/src/newsreader/scss/components/navbar/_navbar.scss index 54ddde6..afdacce 100644 --- a/src/newsreader/scss/components/navbar/_navbar.scss +++ b/src/newsreader/scss/components/navbar/_navbar.scss @@ -3,10 +3,14 @@ justify-content: center; align-items: center; - margin: 0 0 5px 0; padding: 10px 0; width: 100%; + position: sticky; + top: 0; + + background-color: var(--lightest-accent-color); + ol { display: flex; justify-content: flex-start; @@ -28,5 +32,7 @@ &__item:last-child { margin: 0 10px 0 auto; + + border-right: 2px solid var(--lighter-accent-color); } } diff --git a/src/newsreader/scss/components/post/_post.scss b/src/newsreader/scss/components/post/_post.scss index dc5f829..cf64836 100644 --- a/src/newsreader/scss/components/post/_post.scss +++ b/src/newsreader/scss/components/post/_post.scss @@ -15,6 +15,17 @@ cursor: initial; + &__header { + display: flex; + flex-direction: column; + align-items: center; + + position: sticky; + top: 0; + + width: 100%; + } + &__actions { display: flex; justify-content: flex-end; @@ -24,10 +35,11 @@ gap: 20px; } - &__header { + &__heading { display: flex; flex-direction: column; padding: 20px 0 10px 0; + width: 75%; } @@ -51,7 +63,7 @@ background-color: var(--lightest-accent-color) !important; & a { - color: $black; + color: var(--font-color); } } diff --git a/src/newsreader/scss/components/posts-info/_posts-info.scss b/src/newsreader/scss/components/posts-info/_posts-info.scss index 58a2da4..47eae4f 100644 --- a/src/newsreader/scss/components/posts-info/_posts-info.scss +++ b/src/newsreader/scss/components/posts-info/_posts-info.scss @@ -10,8 +10,8 @@ } & .badge { - & a { - color: $black; + & .link { + color: var(--font-color); } } } diff --git a/src/newsreader/scss/components/sidebar/_sidebar.scss b/src/newsreader/scss/components/sidebar/_sidebar.scss index 1650a40..0521af4 100644 --- a/src/newsreader/scss/components/sidebar/_sidebar.scss +++ b/src/newsreader/scss/components/sidebar/_sidebar.scss @@ -5,7 +5,7 @@ align-self: start; position: sticky; - top: 5%; + top: 50px; width: 20%; diff --git a/src/newsreader/scss/partials/_colors.scss b/src/newsreader/scss/partials/_colors.scss index 4683c54..621fcfe 100644 --- a/src/newsreader/scss/partials/_colors.scss +++ b/src/newsreader/scss/partials/_colors.scss @@ -25,18 +25,18 @@ $focus-blue: darken($azureish-white, +10%); $checkbox-blue: rgba(34, 170, 253, 1); // White theme -$background-color: $white; +$background-color: rgba(255, 249, 176, 1); $font-color: rgba(83, 87, 91, 1); -$link-color: darken($azureish-white, 30%); +$link-color: rgba(45, 142, 202, 1); $read-color: darken($gainsboro, 10%); $confirm-button-font-color: rgba(255, 255, 255, 1); -$accent-color: $gainsboro; -$lighter-accent-color: $gainsboro; -$lightest-accent-color: $orange; +$accent-color: rgba(255, 171, 115, 1); +$lighter-accent-color: rgba(255, 211, 132, 1); +$lightest-accent-color: rgba(255, 174, 192, 1); -$confirm-color: rgba(89, 181, 128, 1); +$confirm-color: rgba(117, 207, 184, 1); $danger-color: rgba(237, 118, 105, 1); $warning-color: rgba(255, 218, 119, 1); $info-color: rgba(162, 213, 242, 1); @@ -51,7 +51,7 @@ $dark-confirm-button-font-color: $dark-font-color; $dark-accent-color: rgba(19, 59, 92, 1); $dark-lighter-accent-color: rgba(30, 95, 116, 1); -$dark-lightest-accent-color: rgba(252, 218, 183, 1); +$dark-lightest-accent-color: rgba(88, 61, 114, 1); $dark-confirm-color: rgba(0, 121, 101, 1); $dark-danger-color: rgba(175, 45, 45, 1);