feat: Contrast and legibility improvements
This commit is contained in:
@ -20,19 +20,19 @@ There should be whitespace between paragraphs.
|
|||||||
|
|
||||||
There should be whitespace between paragraphs. We recommend including a README, or a file with information about your project.
|
There should be whitespace between paragraphs. We recommend including a README, or a file with information about your project.
|
||||||
|
|
||||||
# Header 1
|
# Heading 1
|
||||||
|
|
||||||
> Yes, H1 has ultra-bold style and a dot at the end. You probably shouldn't use it for anything other than page header :)
|
> Yes, H1 has ultra-bold style and a dot at the end. You probably shouldn't use it for anything other than page header :)
|
||||||
|
|
||||||
This is a normal paragraph following a header. Codeberg is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.
|
This is a normal paragraph following a header. Codeberg is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.
|
||||||
|
|
||||||
## Header 2
|
## Heading 2
|
||||||
|
|
||||||
> This is a blockquote following a header.
|
> This is a blockquote following a header.
|
||||||
>
|
>
|
||||||
> > When something is important enough, you do it even if the odds are not in your favor.
|
> > When something is important enough, you do it even if the odds are not in your favor.
|
||||||
|
|
||||||
### Header 3
|
### Heading 3
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Javascript code with syntax highlighting.
|
// Javascript code with syntax highlighting.
|
||||||
@ -49,19 +49,19 @@ GitHubPages::Dependencies.gems.each do |gem, version|
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Header 4
|
#### Heading 4
|
||||||
|
|
||||||
- This is an unordered list following a header.
|
- This is an unordered list following a header.
|
||||||
- This is an unordered list following a header.
|
- This is an unordered list following a header.
|
||||||
- This is an unordered list following a header.
|
- This is an unordered list following a header.
|
||||||
|
|
||||||
##### Header 5
|
##### Heading 5
|
||||||
|
|
||||||
1. This is an ordered list following a header.
|
1. This is an ordered list following a header.
|
||||||
2. This is an ordered list following a header.
|
2. This is an ordered list following a header.
|
||||||
3. This is an ordered list following a header.
|
3. This is an ordered list following a header.
|
||||||
|
|
||||||
###### Header 6
|
###### Heading 6
|
||||||
|
|
||||||
| head1 | head two | three |
|
| head1 | head two | three |
|
||||||
| :----------- | :---------------- | :---- |
|
| :----------- | :---------------- | :---- |
|
||||||
|
@ -101,11 +101,6 @@ h1 {
|
|||||||
a {
|
a {
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
|
||||||
content: ".";
|
|
||||||
color: var(--primary-color);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
@ -146,7 +141,7 @@ strong {
|
|||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
color: var(--fg50);
|
// color: var(--fg50);
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,16 +162,17 @@ dl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border: 0.125rem solid var(--fg05);
|
border: 0.125rem solid var(--fg50);
|
||||||
margin: 3rem auto;
|
margin: 3rem auto;
|
||||||
width: 40%;
|
width: 40%;
|
||||||
|
border-radius: 9999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
padding: 0 1rem;
|
padding: 0 0.75em;
|
||||||
margin-left: 0;
|
|
||||||
color: var(--fg50);
|
|
||||||
border-left: 0.25rem solid var(--primary-color);
|
border-left: 0.25rem solid var(--primary-color);
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 2.5px;
|
||||||
|
|
||||||
> :first-child {
|
> :first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
@ -186,10 +182,10 @@ blockquote {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// make border slightly transparent for nested blockquote
|
// // make border slightly transparent for nested blockquote
|
||||||
> blockquote {
|
// > blockquote {
|
||||||
border-left: 0.3rem solid var(--primary-color-alpha);
|
// border-left: 0.3rem solid var(--primary-color-alpha);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
abbr {
|
abbr {
|
||||||
@ -307,7 +303,7 @@ table {
|
|||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
border: 1px solid var(--fg05);
|
border: 1px solid var(--fg50);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -360,14 +356,14 @@ img {
|
|||||||
.nav {
|
.nav {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
max-width: var(--content-width);
|
// max-width: var(--content-width);
|
||||||
margin: 1rem auto;
|
margin: 1rem auto;
|
||||||
box-shadow: 0px 12px 24px -16px rgba(0, 0, 0, 0.5);
|
box-shadow: 0px 12px 24px -16px rgba(0, 0, 0, 0.5);
|
||||||
border-radius: var(--rounded-corner-big);
|
border-radius: var(--rounded-corner-big);
|
||||||
background-color: var(--nav-bg);
|
background-color: var(--nav-bg);
|
||||||
backdrop-filter: blur(24px);
|
backdrop-filter: blur(24px);
|
||||||
-webkit-backdrop-filter: blur(24px);
|
-webkit-backdrop-filter: blur(24px);
|
||||||
position: sticky;
|
// position: sticky;
|
||||||
top: 1rem;
|
top: 1rem;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
@ -488,7 +484,8 @@ img {
|
|||||||
pre {
|
pre {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
padding: 1rem 1rem;
|
padding: 1rem 1rem;
|
||||||
text-shadow: var(--primary-color-alpha) 0 0 4px, var(--primary-color) 0 0 12px;
|
text-shadow: var(--primary-color-alpha) 0 0 4px,
|
||||||
|
var(--primary-color) 0 0 12px;
|
||||||
// unset some <pre> stuff
|
// unset some <pre> stuff
|
||||||
background-color: unset;
|
background-color: unset;
|
||||||
box-shadow: unset;
|
box-shadow: unset;
|
||||||
@ -621,3 +618,12 @@ img {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.heading {
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: underline;
|
||||||
|
// &::after {
|
||||||
|
// content: ".";
|
||||||
|
// color: var(--primary-color);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ page.title }}</h1>
|
<h1 class="heading">{{ page.title }}</h1>
|
||||||
|
|
||||||
{%- if page.date %}
|
{%- if page.date %}
|
||||||
<small>
|
<small>
|
||||||
|
Reference in New Issue
Block a user