summaryrefslogtreecommitdiff
path: root/themes/m10c/assets/css/components
diff options
context:
space:
mode:
Diffstat (limited to 'themes/m10c/assets/css/components')
-rw-r--r--themes/m10c/assets/css/components/_app.scss40
-rw-r--r--themes/m10c/assets/css/components/_error_404.scss7
-rw-r--r--themes/m10c/assets/css/components/_icon.scss6
-rw-r--r--themes/m10c/assets/css/components/_pagination.scss24
-rw-r--r--themes/m10c/assets/css/components/_post.scss17
-rw-r--r--themes/m10c/assets/css/components/_posts_list.scss17
-rw-r--r--themes/m10c/assets/css/components/_tag.scss15
7 files changed, 126 insertions, 0 deletions
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);
+ }
+}