Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rough first pass at making highlighting patches work #211

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<!-- Stylesheets -->
<style>{%- include modern-normalize.css -%}</style>
<style>{%- include inline-style.css -%}</style>
<style>{%- include inline-code-style.css -%}</style>
DanielOaks marked this conversation as resolved.
Show resolved Hide resolved
{% if include.with_hero %}
<style>{%- include inline-hero-style.css -%}</style>
{% endif %}
Expand Down
78 changes: 78 additions & 0 deletions _includes/inline-code-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
color: #f8f8f2;
background-color: #272822;
}
.highlight .err {
color: #151515;
background-color: #ac4142;
}
.highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs {
color: #505050;
}
.highlight .cp {
color: #f4bf75;
}
.highlight .nt {
color: #f4bf75;
}
.highlight .o, .highlight .ow {
color: #d0d0d0;
}
.highlight .p, .highlight .pi {
color: #d0d0d0;
}
.highlight .gi {
color: #90a959;
}
.highlight .gd {
color: #ac4142;
}
.highlight .gh {
color: #6a9fb5;
background-color: #151515;
font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
color: #aa759f;
}
.highlight .kc {
color: #d28445;
}
.highlight .kt {
color: #d28445;
}
.highlight .kd {
color: #d28445;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
color: #90a959;
}
.highlight .sr {
color: #75b5aa;
}
.highlight .si {
color: #8f5536;
}
.highlight .se {
color: #8f5536;
}
.highlight .nn {
color: #f4bf75;
}
.highlight .nc {
color: #f4bf75;
}
.highlight .no {
color: #f4bf75;
}
.highlight .na {
color: #6a9fb5;
}
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx {
color: #90a959;
}
.highlight .ss {
color: #90a959;
}
8 changes: 4 additions & 4 deletions content/_minutes/2022-01-28-mgm-minutes.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This has previously been discussed on the [July 2021 MGM][2021-07-sm], and the
<details>
<summary>Patch for bylaws change</summary>

```patch
{% highlight diff %}
bylaws.md | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)

Expand Down Expand Up @@ -133,7 +133,7 @@ index 0000000..0000000 100644
## Specialised Committees

1. There are three specialised committees: Operations, Engineering, and
```
{% endhighlight %}

</details>

Expand All @@ -149,7 +149,7 @@ adopted. This increases the retention period for abuse mitigation data.
<details>
<summary>Patch for privacy policy change</summary>

```patch
{% highlight diff %}
privacy.md | 10 ++++++++++
1 file changed, 10 insertions(+)

Expand All @@ -174,7 +174,7 @@ index 0000000..0000000 100644
Data collected by email or our support system in relation to project
registration, sponsorship and channel namespace management will be stored at
least until the project is deregistered or the sponsorship is terminated, this
```
{% endhighlight %}

</details>

Expand Down
4 changes: 2 additions & 2 deletions static/css/additional-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
font-display: swap;
}

code, pre, kbd {
font-family: 'Ubuntu Mono', monospace;
code, pre, kbd, code *, pre *, kbd * {
font-family: 'Ubuntu Mono', monospace !important;
background-color: var(--c-bg-secondary);
overflow-x: auto;
border-radius: .3rem;
Expand Down