local resources for generator style

This commit is contained in:
Carlos Galindo 2026-01-23 20:49:33 +01:00
commit 2bf763c893
11 changed files with 234 additions and 5 deletions

1
res_gen/less/colors.less Symbolic link
View file

@ -0,0 +1 @@
../../res/less/colors.less

69
res_gen/less/main.less Normal file
View file

@ -0,0 +1,69 @@
@import "colors";
h1 {
color: @title;
margin-inline: auto;
width: max-content;
max-width: 100%;
text-align: center;
@media (prefers-color-scheme: dark) {
color: @title-dark;
}
> a, > a:hover, > a:active, > a:visited {
color: @title;
@media (prefers-color-scheme: dark) {
color: @title-dark;
}
}
}
h2, h3 {
color: @subtitle;
font-weight: lighter;
margin-bottom: 0;
@media (prefers-color-scheme: dark) {
color: @subtitle-dark;
}
}
footer {
text-align: center;
}
body {
font-family: Helvetica, Arial, sans-serif;
color: @text;
background: @background;
max-width: 75em;
margin: 1em;
@media (prefers-color-scheme: dark) {
color: @text-dark;
background: @background-dark;
}
@media (min-width: 75em + 1em) {
margin: auto;
}
}
a {
text-decoration: none;
> span {
color: @text;
padding: 0.5em;
margin: 0.2em;
display: inline-block;
border-radius: @border-radius * 5;
border: 1px solid @text;
@media (prefers-color-scheme: dark) {
color: @text-dark;
border-color: @text-dark;
}
&:hover {
background: @secondary-hover;
transition-duration: @transition;
@media (prefers-color-scheme: dark) {
background: @secondary-hover-dark;
}
}
}
}

48
res_gen/less/song.less Normal file
View file

@ -0,0 +1,48 @@
@import "colors.less";
button,
select,
input[type="button"] {
min-width: 2em;
min-height: 2em;
padding: .4em;
border-style: none;
border-radius: @border-radius;
color: @text;
background-color: @secondary;
@media (prefers-color-scheme: dark) {
color: @text-dark;
background-color: @secondary-dark;
}
&:hover,
&.pair-sub:hover ~ &.pair-sup {
background-color: @secondary-hover;
transition-duration: @transition;
@media (prefers-color-scheme: dark) {
background-color: @secondary-hover-dark;
}
}
}
.flex-reverse {
display: inline-flex;
flex-direction: row-reverse;
}
.buttonpair.flex-reverse button.right,
.buttonpair.flex-reverse button.left {
border: 1px solid @secondary-hover;
@media (prefers-color-scheme: dark) {
border-color: @secondary-hover-dark;
}
}
.buttonpair.flex-reverse button.right {
border-radius: 0px 10px 10px 0px;
border-width: 0 0 0 2px;
}
.buttonpair.flex-reverse button.left {
border-radius: 10px 0px 0px 10px;
border-width: 0 2px 0 0;
}