|
| 1 | +// Copyright Dave Verwer, Sven A. Schmidt, and other contributors. |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +// ------------------------------------------------------------------------- |
| 16 | +// Blog styling. |
| 17 | +// ------------------------------------------------------------------------- |
| 18 | + |
| 19 | +body.blog { |
| 20 | + hr { |
| 21 | + &.post-title { |
| 22 | + width: 100%; |
| 23 | + height: 1px; |
| 24 | + margin: 5px 0 10px; |
| 25 | + background-color: var(--rule-thin-background); |
| 26 | + } |
| 27 | + } |
| 28 | + |
| 29 | + h2.post-title { |
| 30 | + margin: 0; |
| 31 | + font-size: 30px; |
| 32 | + } |
| 33 | + |
| 34 | + // We use a different style on the blog and import highlight.js directly, so |
| 35 | + // the background for a code snipplet here needs to match the background colour |
| 36 | + // of the theme specified in `FrontEnd/styles/main.css`. |
| 37 | + pre { |
| 38 | + background-color: #282c34; |
| 39 | + } |
| 40 | + |
| 41 | + .subscribe { |
| 42 | + display: inline-flex; |
| 43 | + flex-direction: row; |
| 44 | + gap: 5px; |
| 45 | + align-items: center; |
| 46 | + padding: 2px 6px; |
| 47 | + font-size: 14px; |
| 48 | + color: white; |
| 49 | + background-color: var(--rss-subscribe-color); |
| 50 | + border-radius: 4px; |
| 51 | + transform: translateY(-25px); |
| 52 | + |
| 53 | + &::before { |
| 54 | + content: ''; |
| 55 | + display: block; |
| 56 | + width: 12px; |
| 57 | + height: 12px; |
| 58 | + background-repeat: no-repeat; |
| 59 | + background-size: contain; |
| 60 | + background-image: var(--image-rss); |
| 61 | + } |
| 62 | + } |
| 63 | + |
| 64 | + .sidebar { |
| 65 | + float: right; |
| 66 | + display: flex; |
| 67 | + flex-direction: column; |
| 68 | + gap: 20px; |
| 69 | + width: 320px; |
| 70 | + padding: 0 0 10px 40px; |
| 71 | + background-color: var(--page-background); |
| 72 | + } |
| 73 | + |
| 74 | + ul.blog-posts { |
| 75 | + padding: 0; |
| 76 | + list-style: none; |
| 77 | + |
| 78 | + li { |
| 79 | + margin-bottom: 40px; |
| 80 | + |
| 81 | + & > a { |
| 82 | + display: block; |
| 83 | + |
| 84 | + h3 { |
| 85 | + margin: 0; |
| 86 | + } |
| 87 | + |
| 88 | + p, |
| 89 | + small { |
| 90 | + color: var(--page-text); |
| 91 | + } |
| 92 | + |
| 93 | + p { |
| 94 | + margin: 5px 0; |
| 95 | + } |
| 96 | + } |
| 97 | + } |
| 98 | + } |
| 99 | + |
| 100 | + .blog-post { |
| 101 | + picture.shadow img { |
| 102 | + box-shadow: 0 3px 8px 2px rgba(100, 100, 100, 20%); |
| 103 | + } |
| 104 | + |
| 105 | + img { |
| 106 | + display: block; |
| 107 | + max-width: 80%; |
| 108 | + margin: 40px auto; |
| 109 | + } |
| 110 | + } |
| 111 | + |
| 112 | + .about-this-blog { |
| 113 | + margin-bottom: 30px; |
| 114 | + padding: 15px; |
| 115 | + background-color: var(--panel-background); |
| 116 | + border: 1px solid var(--panel-border); |
| 117 | + |
| 118 | + h3 { |
| 119 | + margin: 0 0 10px; |
| 120 | + font-size: 20px; |
| 121 | + } |
| 122 | + } |
| 123 | + |
| 124 | + @media screen and (max-width: $mobile-breakpoint) { |
| 125 | + .blog-container { |
| 126 | + display: flex; |
| 127 | + flex-direction: column-reverse; |
| 128 | + } |
| 129 | + } |
| 130 | +} |
0 commit comments