diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-15 15:39:09 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-15 15:39:09 -0500 |
| commit | 877e02087739e446cb000b619ac0a12d171d04ab (patch) | |
| tree | 5ee8f6a9cd744312559703bd89a54837b90a06c1 /app/assets/stylesheets | |
| parent | e8ffe46148128e99a2fb84e7d7fc22b358d39312 (diff) | |
| download | thoughts-877e02087739e446cb000b619ac0a12d171d04ab.tar.gz thoughts-877e02087739e446cb000b619ac0a12d171d04ab.tar.bz2 thoughts-877e02087739e446cb000b619ac0a12d171d04ab.zip | |
Created mobile layout for blog
Diffstat (limited to 'app/assets/stylesheets')
| -rw-r--r-- | app/assets/stylesheets/main/entries.scss | 13 | ||||
| -rw-r--r-- | app/assets/stylesheets/main/layout.scss | 48 |
2 files changed, 41 insertions, 20 deletions
| diff --git a/app/assets/stylesheets/main/entries.scss b/app/assets/stylesheets/main/entries.scss index 609a5f7..4afd15d 100644 --- a/app/assets/stylesheets/main/entries.scss +++ b/app/assets/stylesheets/main/entries.scss | |||
| @@ -3,9 +3,9 @@ | |||
| 3 | // You can use Sass (SCSS) here: http://sass-lang.com/ | 3 | // You can use Sass (SCSS) here: http://sass-lang.com/ |
| 4 | 4 | ||
| 5 | .blog-post { | 5 | .blog-post { |
| 6 | font-size: 16px; | 6 | line-height: 1.5em; |
| 7 | line-height: 24px; | ||
| 8 | margin: 0 1em 1em; | 7 | margin: 0 1em 1em; |
| 8 | clear: both; | ||
| 9 | 9 | ||
| 10 | .blog-title { | 10 | .blog-title { |
| 11 | flex-grow: 1; | 11 | flex-grow: 1; |
| @@ -41,6 +41,7 @@ | |||
| 41 | .post-calendar { | 41 | .post-calendar { |
| 42 | width: 45px; | 42 | width: 45px; |
| 43 | height: 49px; | 43 | height: 49px; |
| 44 | flex-shrink: 0; | ||
| 44 | 45 | ||
| 45 | &.post-date-1 { | 46 | &.post-date-1 { |
| 46 | background: image-url("date-bg-1.gif") no-repeat; | 47 | background: image-url("date-bg-1.gif") no-repeat; |
| @@ -198,6 +199,10 @@ | |||
| 198 | max-width: 100%; | 199 | max-width: 100%; |
| 199 | } | 200 | } |
| 200 | 201 | ||
| 202 | iframe { | ||
| 203 | max-width: 100%; | ||
| 204 | } | ||
| 205 | |||
| 201 | figure { | 206 | figure { |
| 202 | background-color: #eee; | 207 | background-color: #eee; |
| 203 | border: 1px solid #bbb; | 208 | border: 1px solid #bbb; |
| @@ -205,6 +210,10 @@ | |||
| 205 | font-size: 0.75em; | 210 | font-size: 0.75em; |
| 206 | line-height: 24px; | 211 | line-height: 24px; |
| 207 | 212 | ||
| 213 | @media only screen and (max-width: 767px) { | ||
| 214 | margin: 0; | ||
| 215 | } | ||
| 216 | |||
| 208 | img { | 217 | img { |
| 209 | display: block; | 218 | display: block; |
| 210 | border: 1px solid #bbb; | 219 | border: 1px solid #bbb; |
| diff --git a/app/assets/stylesheets/main/layout.scss b/app/assets/stylesheets/main/layout.scss index 6d79c73..ef31ada 100644 --- a/app/assets/stylesheets/main/layout.scss +++ b/app/assets/stylesheets/main/layout.scss | |||
| @@ -1,42 +1,47 @@ | |||
| 1 | body#main-body { | 1 | body#main-body { |
| 2 | height: 100%; | 2 | height: 100%; |
| 3 | font-family: sans-serif; | 3 | font-family: sans-serif; |
| 4 | font-size: 16px; | ||
| 4 | } | 5 | } |
| 5 | 6 | ||
| 6 | #container { | 7 | #container { |
| 7 | height: 100%; | 8 | height: 100%; |
| 8 | margin: 10px auto; | ||
| 9 | width: 75%; /* 66% */ | ||
| 10 | box-sizing: border-box; | 9 | box-sizing: border-box; |
| 11 | min-width: 910px; | 10 | |
| 11 | @media only screen and (min-width: 768px) { | ||
| 12 | margin: 10px auto; | ||
| 13 | width: 75%; /* 66% */ | ||
| 14 | min-width: 910px; | ||
| 15 | } | ||
| 12 | } | 16 | } |
| 13 | 17 | ||
| 14 | #banner { | 18 | #banner { |
| 15 | background-image: image-url("fourisland_header.png"); | ||
| 16 | width: 900px; | ||
| 17 | height: 200px; | ||
| 18 | margin: 0 auto; | 19 | margin: 0 auto; |
| 19 | 20 | ||
| 20 | h1 { | 21 | h1 { |
| 21 | margin: 0; | 22 | display: none; |
| 23 | } | ||
| 22 | 24 | ||
| 23 | a { | 25 | img { |
| 24 | display: block; | 26 | width: 100%; |
| 25 | width: 900px; | 27 | max-width: 900px; |
| 26 | height: 200px; | 28 | display: block; |
| 27 | text-indent: -5000px; | 29 | margin: 0 auto; |
| 28 | text-decoration: none; | ||
| 29 | margin: 0; | ||
| 30 | } | ||
| 31 | } | 30 | } |
| 32 | } | 31 | } |
| 33 | 32 | ||
| 34 | #page-body { | 33 | #page-body { |
| 35 | display: flex; | 34 | display: flex; |
| 35 | |||
| 36 | @media only screen and (max-width: 767px) { | ||
| 37 | flex-direction: column-reverse; | ||
| 38 | } | ||
| 36 | } | 39 | } |
| 37 | 40 | ||
| 38 | #main { | 41 | #main { |
| 39 | width: 70%; | 42 | @media only screen and (min-width: 768px) { |
| 43 | width: 70%; | ||
| 44 | } | ||
| 40 | } | 45 | } |
| 41 | 46 | ||
| 42 | #content { | 47 | #content { |
| @@ -62,15 +67,22 @@ body#main-body { | |||
| 62 | 67 | ||
| 63 | #sidebar { | 68 | #sidebar { |
| 64 | box-sizing: border-box; | 69 | box-sizing: border-box; |
| 65 | width: 30%; | ||
| 66 | font-size: .75em; | 70 | font-size: .75em; |
| 67 | color: black; | 71 | color: black; |
| 68 | margin-top: 1em; | 72 | margin-top: 1em; |
| 69 | margin-bottom: 2em; | 73 | margin-bottom: 2em; |
| 70 | font-family: sans-serif; | 74 | font-family: sans-serif; |
| 75 | |||
| 76 | @media only screen and (max-width: 767px) { | ||
| 77 | width: 100%; | ||
| 78 | } | ||
| 79 | |||
| 80 | @media only screen and (min-width: 768px) { | ||
| 81 | width: 30%; | ||
| 82 | } | ||
| 71 | } | 83 | } |
| 72 | 84 | ||
| 73 | #sidebar h2 { | 85 | #sidebar h2, #mobile-header h2 { |
| 74 | font-size: 1em; | 86 | font-size: 1em; |
| 75 | } | 87 | } |
| 76 | 88 | ||
