From 29d309db5196099982d96933acdc4c0d0ae45436 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 25 Apr 2020 16:50:56 -0300 Subject: Initial commit, migrating from Ghost --- themes/m10c/assets/css/components/_app.scss | 40 ++++++++++++++++++++++ themes/m10c/assets/css/components/_error_404.scss | 7 ++++ themes/m10c/assets/css/components/_icon.scss | 6 ++++ themes/m10c/assets/css/components/_pagination.scss | 24 +++++++++++++ themes/m10c/assets/css/components/_post.scss | 17 +++++++++ themes/m10c/assets/css/components/_posts_list.scss | 17 +++++++++ themes/m10c/assets/css/components/_tag.scss | 15 ++++++++ 7 files changed, 126 insertions(+) create mode 100644 themes/m10c/assets/css/components/_app.scss create mode 100644 themes/m10c/assets/css/components/_error_404.scss create mode 100644 themes/m10c/assets/css/components/_icon.scss create mode 100644 themes/m10c/assets/css/components/_pagination.scss create mode 100644 themes/m10c/assets/css/components/_post.scss create mode 100644 themes/m10c/assets/css/components/_posts_list.scss create mode 100644 themes/m10c/assets/css/components/_tag.scss (limited to 'themes/m10c/assets/css/components') diff --git a/themes/m10c/assets/css/components/_app.scss b/themes/m10c/assets/css/components/_app.scss new file mode 100644 index 0000000..28c7bc9 --- /dev/null +++ b/themes/m10c/assets/css/components/_app.scss @@ -0,0 +1,40 @@ +.app-header { + padding: 2.5em; + background: $darkest-color; + text-align: center; +} + +.app-header-avatar { + max-width: 15rem; + max-height: 15rem; + border-radius: 100%; + border: 0.5rem solid $primary-color; +} + +.app-container { + padding: 2.5rem; +} + +.app-header-social { + font-size: 2em; + color: $lightest-color; + + a { + margin: 0 0.1em; + } +} + +@media (min-width: 940px) { + .app-header { + position: fixed; + top: 0; + left: 0; + width: 20rem; + min-height: 100vh; + } + + .app-container { + max-width: 65rem; + margin-left: 20rem; + } +} diff --git a/themes/m10c/assets/css/components/_error_404.scss b/themes/m10c/assets/css/components/_error_404.scss new file mode 100644 index 0000000..c819570 --- /dev/null +++ b/themes/m10c/assets/css/components/_error_404.scss @@ -0,0 +1,7 @@ +.error-404 { + text-align: center; +} + +.error-404-title { + text-transform: uppercase; +} diff --git a/themes/m10c/assets/css/components/_icon.scss b/themes/m10c/assets/css/components/_icon.scss new file mode 100644 index 0000000..207d421 --- /dev/null +++ b/themes/m10c/assets/css/components/_icon.scss @@ -0,0 +1,6 @@ +.icon { + display: block-inline; + width: 1em; + height: 1em; + vertical-align: -0.125em; +} diff --git a/themes/m10c/assets/css/components/_pagination.scss b/themes/m10c/assets/css/components/_pagination.scss new file mode 100644 index 0000000..cc0d8a1 --- /dev/null +++ b/themes/m10c/assets/css/components/_pagination.scss @@ -0,0 +1,24 @@ +.pagination { + display: block; + list-style: none; + padding: 0; + font-size: 0.8em; + text-align: center; + margin: 3em 0; +} + +.page-item { + display: inline-block; + .page-link { + display: block; + padding: 0.285em 0.8em; + } + + &.active { + .page-link { + color: $lightest-color; + border-radius: 2em; + background: $primary-color; + } + } +} diff --git a/themes/m10c/assets/css/components/_post.scss b/themes/m10c/assets/css/components/_post.scss new file mode 100644 index 0000000..b8265a7 --- /dev/null +++ b/themes/m10c/assets/css/components/_post.scss @@ -0,0 +1,17 @@ +.post-title { + color: $lightest-color; +} + +.post-content { + pre { + border-left: 0.4em solid rgba($primary-color, .8); + padding-left: 1em; + } + img { + max-width: 100%; + } +} + +.post-meta { + font-size: 0.8em; +} diff --git a/themes/m10c/assets/css/components/_posts_list.scss b/themes/m10c/assets/css/components/_posts_list.scss new file mode 100644 index 0000000..2fe0cf0 --- /dev/null +++ b/themes/m10c/assets/css/components/_posts_list.scss @@ -0,0 +1,17 @@ +.posts-list { + padding: 0; +} + +.posts-list-item { + list-style: none; + &:not(:last-child) { + border-bottom: 1px dashed rgba(255, 255, 255, 0.3); + } + padding: 0.4em 0; +} + +.posts-list-item-description { + display: block; + font-size: 0.8em; +} + diff --git a/themes/m10c/assets/css/components/_tag.scss b/themes/m10c/assets/css/components/_tag.scss new file mode 100644 index 0000000..8bf628a --- /dev/null +++ b/themes/m10c/assets/css/components/_tag.scss @@ -0,0 +1,15 @@ +.tag { + display: inline-block; + margin-right: 0.2em; + padding: 0 0.6em; + font-size: 0.9em; + border-radius: 0.2em; + white-space: nowrap; + background: rgba(255, 255, 255, 0.1); + transition: color 0.35s, background 0.35s; + + &:hover { + transition: color 0.25s, background 0.05s; + background: rgba(255, 255, 255, 0.3); + } +} -- cgit v1.2.3