Last active
June 22, 2024 14:06
-
-
Save nndda/4d021ea9d1c97b84ce28a3ae3bf3dc42 to your computer and use it in GitHub Desktop.
Repository snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 id="title">Repository snippet</h1> | |
<div class="container"> | |
<div class="custom-repo"> | |
<div> | |
<div> | |
<img src="https://s2.svgbox.net/octicons.svg?ic=repo&color=fff" height="24px" loading="lazy"> | |
<h2> | |
Repository / src / | |
</h2> | |
</div> | |
</div> | |
<div> | |
<div> | |
<img | |
src="https://s2.svgbox.net/octicons.svg?ic=file-code&color=fff" | |
height="20px" loading="lazy"> | |
<a | |
target="_blank" href="https://github.com/nndda" | |
referrerpolicy="origin" rel="nofollow noopener"> | |
codes.py | |
</a> | |
</div> | |
<div> | |
<img | |
src="https://s2.svgbox.net/octicons.svg?ic=image&color=fff" | |
height="20px" loading="lazy"> | |
<a | |
target="_blank" href="https://github.com/nndda" | |
referrerpolicy="origin" rel="nofollow noopener"> | |
art.png | |
</a> | |
</div> | |
<div> | |
<img | |
src="https://s2.svgbox.net/octicons.svg?ic=file&color=fff" | |
height="20px" loading="lazy"> | |
<a | |
target="_blank" href="https://github.com/nndda" | |
referrerpolicy="origin" rel="nofollow noopener"> | |
music.ogg | |
</a> | |
</div> | |
<div class="text-center">...</div> | |
<div> | |
<a target="_blank" href="https://github.com/nndda" referrerpolicy="origin" rel="nofollow noopener"> | |
View source code | |
<img src="https://cdn.simpleicons.org/github/fff" height="20px" loading="lazy"> | |
</a> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700"); | |
:root { | |
--bg: #0a0909; | |
--bg2s: #242424; | |
} | |
/* HEADING ------------------------------------------------- */ | |
.custom-repo > :first-child { | |
background: var(--bg2s); | |
border: 1px solid #aaa4; | |
border-bottom: none; | |
border-radius: 4px 4px 0 0; | |
box-sizing: border-box; | |
padding-bottom: .1em; | |
} | |
.custom-repo > :first-child > div { | |
border-bottom: 1px solid #aaa8; | |
display: flex; | |
margin: .8em; | |
padding-bottom: .5em; | |
} | |
.custom-repo > :first-child h2 { | |
font-size: 1.2em; | |
letter-spacing: .1ch; | |
margin: 0; | |
margin-left: .75em | |
} | |
/* CONTENT ------------------------------------------------- */ | |
.custom-repo > div { | |
border-radius: 4px; | |
font-size: 95%; | |
width: 100%; | |
} | |
.custom-repo > div:last-child > div { | |
background: var(--bg); | |
border: 1px solid #aaa4; | |
border-bottom: none; | |
padding: .5em 1em; | |
} | |
.custom-repo > div:last-child > div > img { | |
margin: 0 .2em 0 .2em; | |
vertical-align: -.35em; | |
} | |
.custom-repo a { | |
text-decoration-color: #fff7 | |
} | |
/* FOOTER -------------------------------------------------- */ | |
.custom-repo > div:last-child > div:last-child { | |
background: var(--bg2s); | |
border-bottom: 1px solid #aaa4; | |
border-radius: 0 0 4px 4px; | |
text-align: right; | |
} | |
.custom-repo div > div:last-child > a{ | |
text-decoration: none; | |
} | |
.custom-repo div > div:last-child img { | |
vertical-align: -0.25em; | |
} | |
/* Containers - plz ignore */ | |
html { | |
color-scheme: dark; | |
} | |
body { | |
background: var(--bg); | |
font-family: 'Lato'; | |
} | |
a { | |
color: #fbebac; | |
} | |
#title { | |
margin: 1.25em 0; | |
text-align: center; | |
} | |
.container { | |
margin: auto; | |
max-width: 480px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment