website
git clone https://git.pyrossh.dev/website
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
assets/css/workers/home.css
/* Homepage-only styling, nested under .pageContainer (the page's own
top-level wrapper — see src/index.njk) now that this file ships in the
site-wide bundle.css instead of being the only stylesheet loaded on
this page. Without this nesting, the bare `h2`/`section` selectors
below would apply to every h2/section on every other page too. */
.pageContainer {
margin-left: auto;
margin-right: auto;
margin-bottom: 2.5rem;
.description {
font-size: var(--fs-sm);
}
h2 {
font-size: var(--fs-md);
font-weight: 600;
}
section {
display: flex;
flex-direction: column;
margin-top: 1.5rem;
margin-bottom: var(--space-section-mb);
}
.rounded-md {
border-radius: 0.375rem;
}
.repos {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
gap: 1rem;
margin-top: 0.5rem;
}
.title {
font-size: var(--fs-title-lg);
line-height: 2.25rem;
font-weight: 700;
margin-bottom: 1rem;
}
.firstSection {
display: flex;
flex-direction: column;
}
.firstPara {
display: flex;
flex-direction: row;
}
.linkUnderline {
text-decoration-line: underline;
}
.gridContainer {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
gap: var(--space-gap-fluid);
}
.repo {
text-overflow: ellipsis;
overflow: hidden;
padding: 0.5rem;
background: var(--color-box-bg);
color: var(--color-text);
font-size: 0.95rem;
a {
color: var(--color-link);
}
h4 {
font-size: 1.05rem;
font-weight: 500;
line-height: 1.2;
border-bottom: 1px solid #495057;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
margin-bottom: 0;
padding: 0;
}
.tags {
margin-top: 0.5rem;
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
}
.tag {
color: var(--color-tag);
padding: 0.15rem 0.5rem 0.5rem 0rem;
border-radius: 0.25rem;
font-size: 0.95rem;
font-weight: 500;
}
}
.interests {
ul {
display: grid;
gap: 0.5rem;
grid-template-columns: auto auto auto;
text-align: center;
margin-top: 0.5rem;
font-size: 1.1rem;
li {
background-color: var(--color-box-bg);
padding: 0.25rem;
}
}
}
.contact {
ul {
display: grid;
gap: 0.5rem;
grid-template-columns: auto;
margin-top: 0.5rem;
li {
display: flex;
flex-direction: row;
align-items: baseline;
padding: 0.25rem;
background-color: var(--color-box-bg);
font-size: var(--fs-sm);
@media (max-width: 720px) {
flex-direction: column;
}
}
a {
color: var(--color-link);
}
strong {
font-weight: 500;
margin-left: 0.25rem;
margin-right: 0.5rem;
}
}
}
.tools {
img {
width: 36px;
height: 36px;
}
ul {
display: grid;
gap: 0.5rem;
grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
text-align: center;
margin-top: 0.5rem;
li {
display: flex;
align-items: center;
background-color: var(--color-box-bg);
padding: 0.25rem;
font-size: 1rem;
a {
display: flex;
flex: 1;
flex-direction: row;
align-items: center;
text-align: left;
margin-left: 0.25rem;
margin-right: 0.25rem;
div {
flex: 1;
}
}
}
}
}
}