Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/trueberryless-org/automatic-starlog-template. Create a Changelog website from GitHub releases
Something went wrong. Try again.
5.7 kB · 323 lines
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324@use "sass:color";@use "./colors.scss" as colors;@use "./type.scss" as type;
$container: 1040px;$tablet: 768px;$mobile: 420px;
* { box-sizing: border-box;}
body { margin: 0 auto; padding: 0 1em; width: 1040px; max-width: 100%; background-color: colors.$white; @media (prefers-color-scheme: dark) { background-color: colors.color(gray, 950); } @media (max-width: $tablet) { font-size: 16px; }}
.glow { width: 100%; height: 100%; position: absolute; z-index: -1; top: 0; left: 0; overflow: hidden;
&:after { content: ""; display: block; position: absolute; top: -120px; left: calc(50% - 360px); width: 720px; height: 240px; background: radial-gradient( 50% 50% at 50% 50%, rgba(colors.color(orange, 500), 0.2) 0%, rgba(colors.color(orange, 500), 0) 100% ); @media (prefers-color-scheme: dark) { background: radial-gradient( 50% 50% at 50% 50%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100% ); } }}
::selection { background: colors.color(orange, 200); @media (prefers-color-scheme: dark) { background: colors.color(orange, 600); }}
a,a:visited { color: colors.color(orange, 600); transition: 0.1s ease; @media (prefers-color-scheme: dark) { color: colors.color(orange, 300); }
&:hover { color: colors.color(orange, 500); }}
hr { margin: 1em 0; border: 0; border-bottom: 1px solid colors.color(gray, 100); @media (prefers-color-scheme: dark) { border-color: colors.color(gray, 900); }}
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1em; margin: 0 0 2em 0; padding: 2em 0;
a { transition: 0.1s ease; &:hover { opacity: 0.6; } }
#site_title { margin: 0; } #site_title a { display: flex; align-items: center; gap: 10px; color: colors.color(gray, 950); font-size: 16px; font-weight: 700; letter-spacing: 2px; line-height: 1; text-decoration: none; text-transform: uppercase; @media (prefers-color-scheme: dark) { color: colors.$white; } } .links { display: flex; gap: 1em; } .links a { color: colors.color(gray, 800); @media (prefers-color-scheme: dark) { color: colors.color(gray, 200); } }}
code { white-space: break-spaces; word-break: break-word;}
.content { ol, ul { padding-left: 2em; margin-bottom: 1em; }
ul { list-style: none;
li { position: relative; margin-bottom: 0.75em;
&:before { content: ""; display: block; position: absolute; left: -1em; top: 0.63em; width: 8px; height: 8px; background: linear-gradient( 25deg, colors.color(purple, 500), colors.color(orange, 500) ); border-radius: 99px; } } }}
.page_title { margin: 1.5em 0; overflow-wrap: anywhere; @media (max-width: $tablet) { margin: 0.5em 0; }}
.posts { list-style: none; padding: 0;}
.post { display: flex; width: 100%; @media (max-width: $tablet) { flex-flow: column; }
&:last-child .content, &.single .content { border-bottom: 0; }}
.version_wrapper { flex-basis: 260px; flex-grow: 0; flex-shrink: 0; margin: 4.5em 0 0 0; @media (max-width: $container) { flex-basis: 140px; } @media (max-width: $tablet) { flex-basis: 0; margin-top: 2em; }
.version_info { position: sticky; top: 1em; @media (max-width: $tablet) { position: relative; top: 0; } }
a { float: left; color: colors.$white; text-decoration: none; transition: 0.1s ease;
&:hover { opacity: 0.6; } }}
.version_number { display: inline-block; font-family: type.$codeFont; line-height: 1; margin-bottom: 8px; padding: 4px 12px; color: colors.$white; background: linear-gradient( 25deg, colors.color(purple, 800), colors.color(purple, 700), color.mix(colors.color(purple, 500), colors.color(orange, 500)), colors.color(orange, 500) ); border-radius: 8px;}
.date { clear: both; color: colors.color(gray, 800); font-family: type.$codeFont; font-size: type.$fontSizeSmall; @media (max-width: $tablet) { display: inline; margin-left: 1em; } @media (prefers-color-scheme: dark) { color: colors.color(gray, 200); }}
.content { width: 100%; min-width: 0; margin: 0; padding: 4em 0; overflow-wrap: anywhere; border-bottom: 1px solid colors.color(gray, 100); @media (max-width: $tablet) { margin: 1em 0; padding: 0 0 2em 0; } @media (prefers-color-scheme: dark) { border-color: colors.color(gray, 900); } *:first-child { margin-top: 0; } table { display: block; max-width: 100%; overflow-x: auto; } pre, iframe, video { max-width: 100%; } img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid colors.color(gray, 200); @media (prefers-color-scheme: dark) { border-color: colors.color(gray, 800); } }}
footer { display: flex; padding: 2em 0; color: colors.color(gray, 500); justify-content: space-between; border-top: 1px solid colors.color(gray, 100); @media (max-width: $tablet) { padding: 1em 0; } @media (prefers-color-scheme: dark) { border-color: colors.color(gray, 900); }
a { margin-left: 1em; color: colors.color(gray, 500); text-decoration: none; &:hover { color: colors.color(gray, 500); opacity: 0.6; } }}