Github button styles

This commit is contained in:
Simon Binder
2025-10-08 22:53:27 +02:00
parent 4158f75dbb
commit 50b6c37ba6
2 changed files with 51 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
@use "src/styles/base";
@use "src/styles/details";
@use "src/styles/github";
@use "src/styles/header";
@use "src/styles/sidebar";
@use "src/styles/ui";
+50
View File
@@ -0,0 +1,50 @@
.github-button {
display: flex;
padding: 0.7rem 0.4rem;
border-radius: 8px;
align-items: center;
column-gap: 0.5rem;
font-size: 0.7rem;
text-decoration: none;
line-height: 1.2em;
&:hover {
background-color: color-mix(in srgb, currentColor 5%, transparent);
}
& * {
transition: opacity 200ms ease-in-out;
}
&:hover * {
opacity: 1!important;
}
.github-icon {
width: 1.2rem;
}
.github-info {
display: flex;
flex-direction: column;
& > span:first-child {
margin-bottom: 2px;
opacity: 0.9;
font-family: "monospace";
}
& > span:last-child {
display: flex;
opacity: 0.7;
align-items: center;
column-gap: 0.3em;
font-size: 0.9em;
font-weight: 800;
span {
font-weight: 500;
}
}
}
}