mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 09:13:35 +01:00
changelog fixes
This commit is contained in:
parent
d011dd5870
commit
f790772553
@ -1,33 +1,49 @@
|
||||
@import 'variables';
|
||||
|
||||
.changelogTitle {
|
||||
.title {
|
||||
margin-top: $spacer * 3;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.changelogContent {
|
||||
.content {
|
||||
padding-top: $spacer * 2;
|
||||
padding-left: $spacer / 2;
|
||||
margin-left: $spacer / 2;
|
||||
border-left: 1px solid $brand-grey-dimmed;
|
||||
|
||||
:global(.dark) & {
|
||||
border-left-color: darken($body-background-color--dark, 5%);
|
||||
border-left-color: rgba($color-headings--dark, 0.2);
|
||||
}
|
||||
|
||||
h2 {
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
position: relative;
|
||||
margin-bottom: $spacer / 4;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
width: 0.4rem;
|
||||
height: 0.4rem;
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
background: $color-headings;
|
||||
position: absolute;
|
||||
left: -($spacer / 1.5);
|
||||
top: $font-size-large / 3;
|
||||
|
||||
:global(.dark) & {
|
||||
background: $color-headings--dark;
|
||||
}
|
||||
}
|
||||
|
||||
+ blockquote {
|
||||
padding-left: 0;
|
||||
font-size: $font-size-small;
|
||||
|
||||
&::before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,7 +63,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.changelogSource {
|
||||
.source {
|
||||
font-size: $font-size-mini;
|
||||
font-family: $font-family-base;
|
||||
font-weight: $font-weight-base;
|
||||
|
@ -56,12 +56,12 @@ export default function Changelog({ repo }: { repo: string }) {
|
||||
|
||||
return (
|
||||
<div className={styles.changelog}>
|
||||
<h2 className={styles.changelogTitle} id="changelog">
|
||||
<h2 className={styles.title} id="changelog">
|
||||
Changelog
|
||||
</h2>
|
||||
<div className={styles.changelogContent}>
|
||||
<div className={styles.content}>
|
||||
{changelogHtml}
|
||||
<p className={styles.changelogSource}>
|
||||
<p className={styles.source}>
|
||||
<em>
|
||||
sourced from{' '}
|
||||
<a href={filePathUrl}>
|
||||
|
Loading…
Reference in New Issue
Block a user