|
| 1 | +--- |
| 2 | +layout: single |
| 3 | +title: "pyOS Website Theme Docs" |
| 4 | +excerpt: "pyOpenSci minimal mistakes theme documentation." |
| 5 | +author: "Leah Wasser" |
| 6 | +permalink: docs/pyos-website/ |
| 7 | +header: |
| 8 | + overlay_filter: 0.6 |
| 9 | + overlay_color: "#333" |
| 10 | +last_modified: 2024-08-23 |
| 11 | +toc: true |
| 12 | +categories: |
| 13 | + - docs |
| 14 | + - blog-post |
| 15 | +--- |
| 16 | + |
| 17 | + |
| 18 | +## Text alignment |
| 19 | + |
| 20 | +Align text blocks with the following classes. |
| 21 | + |
| 22 | +Left aligned text `.text-left` |
| 23 | +{: .text-left} |
| 24 | + |
| 25 | +```markdown |
| 26 | +Left aligned text |
| 27 | +{: .text-left} |
| 28 | +``` |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +Center aligned text. `.text-center` |
| 33 | +{: .text-center} |
| 34 | + |
| 35 | +```markdown |
| 36 | +Center aligned text. |
| 37 | +{: .text-center} |
| 38 | +``` |
| 39 | + |
| 40 | +--- |
| 41 | + |
| 42 | +Right aligned text. `.text-right` |
| 43 | +{: .text-right} |
| 44 | + |
| 45 | +```markdown |
| 46 | +Right aligned text. |
| 47 | +{: .text-right} |
| 48 | +``` |
| 49 | + |
| 50 | +--- |
| 51 | + |
| 52 | +**Justified text.** `.text-justify` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vel eleifend odio, eu elementum purus. In hac habitasse platea dictumst. Fusce sed sapien eleifend, sollicitudin neque non, faucibus est. Proin tempus nisi eu arcu facilisis, eget venenatis eros consequat. |
| 53 | +{: .text-justify} |
| 54 | + |
| 55 | +```markdown |
| 56 | +Justified text. |
| 57 | +{: .text-justify} |
| 58 | +``` |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +No wrap text. `.text-nowrap` |
| 63 | +{: .text-nowrap} |
| 64 | + |
| 65 | +```markdown |
| 66 | +No wrap text. |
| 67 | +{: .text-nowrap} |
| 68 | +``` |
| 69 | + |
| 70 | +## Image alignment |
| 71 | + |
| 72 | +Position images with the following classes. |
| 73 | + |
| 74 | + |
| 75 | +### Figure -- align center |
| 76 | + |
| 77 | +<figure class="align-center"> |
| 78 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024." style="width: 50%;"> |
| 79 | + <figcaption>Growth of pyOpenSci from 2019 to 2024. Growth of pyOpenSci from 2019 to 2024. Growth of pyOpenSci from 2019 to 2024. Growth of pyOpenSci from 2019 to 2024. </figcaption> |
| 80 | +</figure> |
| 81 | + |
| 82 | +The image above happens to be **centered**. |
| 83 | + |
| 84 | +```html |
| 85 | +<figure class="align-center"> |
| 86 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024."> |
| 87 | + <figcaption>Growth of pyOpenSci from 2019 to 2024</figcaption> |
| 88 | +</figure> |
| 89 | +``` |
| 90 | + |
| 91 | + |
| 92 | +### Figure -- align left |
| 93 | + |
| 94 | +<figure class="align-left"> |
| 95 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024." style="width: 50%;"> |
| 96 | + <figcaption>Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024</figcaption> |
| 97 | +</figure> |
| 98 | + |
| 99 | + |
| 100 | +The rest of this paragraph is filler for the sake of seeing the text wrap around the 150×150 image, which is **left aligned**. There should be plenty of room above, below, and to the right of the image. Just look at him there --- Hey guy! Way to rock that left side. I don't care what the right aligned image says, you look great. Don't let anyone else tell you differently. |
| 101 | + |
| 102 | +```html |
| 103 | +<figure class="align-left"> |
| 104 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024."> |
| 105 | + <figcaption>Growth of pyOpenSci from 2019 to 2024</figcaption> |
| 106 | +</figure> |
| 107 | +``` |
| 108 | + |
| 109 | +You can also adjust the width inline: |
| 110 | + |
| 111 | +```html |
| 112 | +<figure class="align-left"> |
| 113 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024." style="width: 50%;"> |
| 114 | + <figcaption>Growth of pyOpenSci from 2019 to 2024</figcaption> |
| 115 | +</figure> |
| 116 | +``` |
| 117 | + |
| 118 | +### Figure -- align right |
| 119 | + |
| 120 | +And now we're going to shift things to the **right align**. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there --- Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently. |
| 121 | + |
| 122 | +<figure class="align-right"> |
| 123 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024." style="width: 50%;"> |
| 124 | + <figcaption>Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024</figcaption> |
| 125 | +</figure> |
| 126 | + |
| 127 | +The html looks like this: |
| 128 | + |
| 129 | + |
| 130 | +```html |
| 131 | +<figure class="align-right"> |
| 132 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024."> |
| 133 | + <figcaption>Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024</figcaption> |
| 134 | +</figure> |
| 135 | +``` |
| 136 | + |
| 137 | +### Figure -- full extending outside of the current area |
| 138 | + |
| 139 | +The image below should extend outside of the parent container on right. |
| 140 | + |
| 141 | + |
| 142 | +<figure class="full"> |
| 143 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024."> |
| 144 | + <figcaption>Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024</figcaption> |
| 145 | +</figure> |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | +```html |
| 151 | +<figure class="full"> |
| 152 | + <img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024."> |
| 153 | + <figcaption>Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024</figcaption> |
| 154 | +</figure> |
| 155 | +``` |
| 156 | + |
| 157 | +## Blockquote styles |
| 158 | + |
| 159 | +### Regular blockquote |
| 160 | + |
| 161 | +```markdown |
| 162 | +> This entire effort underscores the power of community when guided in |
| 163 | +> the right direction, showcasing how collective effort can drive |
| 164 | +> meaningful progress. |
| 165 | +{: .highlight-quote } |
| 166 | +``` |
| 167 | + |
| 168 | +> This entire effort underscores the power of community when guided in |
| 169 | +> the right direction, showcasing how collective effort can drive |
| 170 | +> meaningful progress. |
| 171 | +
|
| 172 | + |
| 173 | +### Fancy blockquote |
| 174 | + |
| 175 | +```markdown |
| 176 | +> This entire effort underscores the power of community when guided in |
| 177 | +> the right direction, showcasing how collective effort can drive |
| 178 | +> meaningful progress. |
| 179 | +{: .highlight-quote } |
| 180 | +``` |
| 181 | + |
| 182 | +> This entire effort underscores the power of community when guided in |
| 183 | +> the right direction, showcasing how collective effort can drive |
| 184 | +> meaningful progress. |
| 185 | +{: .highlight-quote } |
| 186 | + |
| 187 | +## Buttons |
| 188 | + |
| 189 | +Make any link standout more when applying the `.btn .btn--primary` classes. |
| 190 | + |
| 191 | +```html |
| 192 | +<a href="#" class="btn btn--primary">Link Text</a> |
| 193 | +``` |
| 194 | + |
| 195 | +| Button Type | Example | Class | Kramdown | |
| 196 | +| ------ | ------- | ----- | ------- | |
| 197 | +| Default | [Text](#link){: .btn} | `.btn` | `[Text](#link){: .btn}` | |
| 198 | +| Primary | [Text](#link){: .btn .btn--primary} | `.btn .btn--primary` | `[Text](#link){: .btn .btn--primary}` | |
| 199 | +| Success | [Text](#link){: .btn .btn--success} | `.btn .btn--success` | `[Text](#link){: .btn .btn--success}` | |
| 200 | +| Warning | [Text](#link){: .btn .btn--warning} | `.btn .btn--warning` | `[Text](#link){: .btn .btn--warning}` | |
| 201 | +| Danger | [Text](#link){: .btn .btn--danger} | `.btn .btn--danger` | `[Text](#link){: .btn .btn--danger}` | |
| 202 | +| Info | [Text](#link){: .btn .btn--info} | `.btn .btn--info` | `[Text](#link){: .btn .btn--info}` | |
| 203 | +| Inverse | [Text](#link){: .btn .btn--inverse} | `.btn .btn--inverse` | `[Text](#link){: .btn .btn--inverse}` | |
| 204 | +| Light Outline | [Text](#link){: .btn .btn--light-outline} | `.btn .btn--light-outline` | `[Text](#link){: .btn .btn--light-outline}` | |
| 205 | + |
| 206 | +| Button Size | Example | Class | Kramdown | |
| 207 | +| ----------- | ------- | ----- | -------- | |
| 208 | +| X-Large | [X-Large Button](#){: .btn .btn--primary .btn--x-large} | `.btn .btn--primary .btn--x-large` | `[Text](#link){: .btn .btn--primary .btn--x-large}` | |
| 209 | +| Large | [Large Button](#){: .btn .btn--primary .btn--large} | `.btn .btn--primary .btn--large` | `[Text](#link){: .btn .btn--primary .btn--large}` | |
| 210 | +| Default | [Default Button](#){: .btn .btn--primary} | `.btn .btn--primary` | `[Text](#link){: .btn .btn--primary }` | |
| 211 | +| Small | [Small Button](#){: .btn .btn--primary .btn--small} | `.btn .btn--primary .btn--small` | `[Text](#link){: .btn .btn--primary .btn--small}` | |
| 212 | + |
| 213 | +## Notices |
| 214 | + |
| 215 | +Call attention to a block of text. |
| 216 | + |
| 217 | +| Notice Type | Class | |
| 218 | +| ----------- | ----- | |
| 219 | +| Default | `.notice` | |
| 220 | +| Primary | `.notice--primary` | |
| 221 | +| Info | `.notice--info` | |
| 222 | +| Warning | `.notice--warning` | |
| 223 | +| Success | `.notice--success` | |
| 224 | +| Danger | `.notice--danger` | |
| 225 | + |
| 226 | +**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice}` class. The purpose of this test paragraph is to check how different styles are applied across various sections of text. You can [highlight](#) certain words or phrases, adjust the [font size](#), or change the [text color](#) to see how the styling adapts. Additionally, experimenting with [different classes](#) and observing the effects on alignment, spacing, and other typographic elements will help ensure that your CSS is applied consistently and effectively across your site. |
| 227 | +{: .notice} |
| 228 | + |
| 229 | +**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--primary}` class. |
| 230 | +{: .notice--primary} |
| 231 | + |
| 232 | +**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--info}` class. |
| 233 | +{: .notice--info} |
| 234 | + |
| 235 | +**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--warning}` class. |
| 236 | +{: .notice--warning} |
| 237 | + |
| 238 | +**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--success}` class. |
| 239 | +{: .notice--success} |
| 240 | + |
| 241 | +**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--danger}` class. |
| 242 | +{: .notice--danger} |
| 243 | + |
| 244 | +<div class="notice" markdown="1"> |
| 245 | +You can also add the `.notice` class to a `<div>` element like this: |
| 246 | + |
| 247 | +```html |
| 248 | +<div class="notice"> |
| 249 | +You can also add the .notice class to a <div> element. |
| 250 | + |
| 251 | +* Bullet point 1 |
| 252 | +* Bullet point 2 |
| 253 | +</div> |
| 254 | +``` |
| 255 | + |
| 256 | +</div> |
| 257 | + |
| 258 | +To add a heading element to a notice block but ignore in the TOC, use `no_toc` as a class like this: |
| 259 | + |
| 260 | +```html |
| 261 | +<div class="notice--info"> |
| 262 | + <h4 class="no_toc">Notice Headline:</h4> |
| 263 | + here is some html text. |
| 264 | +</div> |
| 265 | +``` |
| 266 | + |
| 267 | +Which will render like this |
| 268 | + |
| 269 | +<div class="notice--info"> |
| 270 | + <h4 class="no_toc">Notice Headline that won't appear in toc</h4> |
| 271 | + {{ notice-text | markdownify }}. |
| 272 | + You can add more text here too |
| 273 | +</div> |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | +Using the Kramdown Markdown renderer with Jekyll allows you to add [block](http://kramdown.gettalong.org/quickref.html#block-attributes) and [inline attributes](http://kramdown.gettalong.org/quickref.html#inline-attributes). This is nice if you want to add custom styling to text and image, and still write in Markdown. |
| 279 | + |
| 280 | +**Jekyll 3:** Kramdown is the default for `jekyll new` sites and those hosted on GitHub Pages. Not using Kramdown? That's OK. The following classes are still available when used with standard HTML. |
| 281 | +{: .notice--warning} |
0 commit comments