aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/stylesheets/hmno_blogg.scss
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2014-01-28 22:51:35 +0100
committerHarald Eilertsen <haraldei@anduin.net>2014-01-28 22:51:35 +0100
commit40dfe8d0bba89e5912af957eeb0d05fbef930215 (patch)
treeba11c8a0f49a5c8080f1ed446dfd929c35c46b76 /app/assets/stylesheets/hmno_blogg.scss
parentd1c9b7ce9f54d00a965b1b98b31915b498ef842b (diff)
downloadhmnoweb-40dfe8d0bba89e5912af957eeb0d05fbef930215.tar.gz
hmnoweb-40dfe8d0bba89e5912af957eeb0d05fbef930215.tar.bz2
hmnoweb-40dfe8d0bba89e5912af957eeb0d05fbef930215.zip
Refactor stylesheets and do a major overhaul of the styling.
Diffstat (limited to 'app/assets/stylesheets/hmno_blogg.scss')
-rw-r--r--app/assets/stylesheets/hmno_blogg.scss74
1 files changed, 57 insertions, 17 deletions
diff --git a/app/assets/stylesheets/hmno_blogg.scss b/app/assets/stylesheets/hmno_blogg.scss
index 2bf0301..9dbb7a2 100644
--- a/app/assets/stylesheets/hmno_blogg.scss
+++ b/app/assets/stylesheets/hmno_blogg.scss
@@ -1,27 +1,15 @@
+@import "color_scheme";
+
#blog_posts {
article {
- background-color: #010101;
- border: 1px solid darkslategray;
+ background-color: $bg2;
+ border: 1px solid $dark-border-fg;
padding: 3px;
margin-bottom: 1em;
- header {
- h1 {
- font-size: 115%;
- margin: 0;
- a {
- text-decoration: none;
- color: inherit;
- }
- }
-
- .details {
- font-size: 75%;
- }
- }
-
footer {
position: relative;
+ border: 0;
.comment_count {
position: absolute;
@@ -31,3 +19,55 @@
}
}
}
+
+#blog_posts, #show_blog_post {
+ header {
+ padding-bottom: $spacing;
+
+ .details {
+ color: $deemph-text-fg;
+ font-size: 75%;
+ }
+ }
+}
+
+#comments {
+ article {
+ min-height: 60px;
+ border: 1px solid $dark-border-fg;
+ padding: $spacing / 2;
+ img {
+ float: left;
+ }
+ footer {
+ border: 0;
+ padding: 0;
+ font-size: 80%;
+ background: inherit;
+ }
+ p {
+ margin-left: 60px + $spacing;
+ &:first-of-type {
+ margin-top: 0;
+ }
+ }
+ }
+}
+
+#new_comment {
+ .field {
+ padding: 2px;
+ label {
+ display: inline-block;
+ min-width: 5em;
+ }
+ input, textarea {
+ border: 1px solid $dark-border-fg;
+ background-color: $bg2;
+ color: $fg;
+ }
+ }
+ .form-actions {
+ margin-left: 5.2em;
+ }
+}