diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-05-28 14:45:09 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-05-28 14:45:09 +0530 |
commit | a4a83e4b549e858d4f8c821591bfb74706d846e8 (patch) | |
tree | ff6a149e5be2da768f6fec5c9c5145e44d689f6b /src/web/styles/home.scss | |
parent | 8580139fe065036d4946a5fbd27a1334a0d92ab7 (diff) |
Moved the blog to new repositorymain
Diffstat (limited to 'src/web/styles/home.scss')
-rw-r--r-- | src/web/styles/home.scss | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/src/web/styles/home.scss b/src/web/styles/home.scss new file mode 100644 index 0000000..c2d6242 --- /dev/null +++ b/src/web/styles/home.scss @@ -0,0 +1,133 @@ +@import "theme/global"; +@import "theme/home"; +@import "partials/home"; + +body { @include home-body; } + +.header { + text-align: center; + #welcome-title { + color: $welcomeHeadingFG; + } + #welcome-subtitle { + font-size: 1.1em; + color: $welcomeHeadingAltFG; + } +} + +.links-container { + width: 100%; + display: flex; + justify-content: center; + // border: 1px solid pink; + + .links { + max-width: 42em; + width: 100%; + + display: flex; + flex-wrap: wrap; + justify-content: space-around; + + a { + display: flex; + align-items: center; + justify-content: center; + font-size: 1.1em; + background-color: $buttonBackgroundColor; + height: 3rem; + min-width: 10em; + border: 1px solid $buttonBorderColor; + border-radius: 2em; + } + } +} + +.recents { + display: flex; + flex-direction: column; + + .recents-label { + color: $recentsLabelFG; + margin-bottom: 0.5rem; + } + + .posts, .tags { + background-color: $recentsItemBG; + border: 1px solid $buttonBorderColor; + width: 100%; + padding: 3px 7px; + overflow-y: scroll; + } + + .posts { + font-size: 1.3rem; + max-height: 13em; + .post { + margin: 0.3em auto; + a { + word-break: break-word; + color: $postTitleFG; + // font-weight: bold; + font-size: 0.95em; + } + a:hover { + color: $defLinkForeground; + } + .post-createdat { + color: $postCreatedAtFG; + font-size: 0.9em; + } + } + } + + .tags { + height: 28em; + } +} + +@media screen and (max-width: 1200px) { + body { @include home-body-1200px; } +} + +@media screen and (max-width: 800px) { + body { @include home-body-800px; } + .links-container .links { + a { + font-size: 1em; + min-width: 9em; + margin: 0.3em auto; + } + } +} + +@media screen and (max-width: 600px) { + body { @include home-body-600px; } + .links-container .links { + a { + font-size: 0.9em; + min-width: 8.5em; + } + } + .recents { + .recents-label { + padding: 0 0.8rem + } + .posts, .tags { + padding: 0.2rem 0.8rem; + width: 100%; + border: none; + } + .posts { + // background-color: $defBackgroundColor; + .post { + a { + font-size: 0.8em; + } + .post-createdat { + font-size: 0.7em; + } + } + } + } +} |