From 67a3629c8a15b9dc14c97865cfea2fdc3a9bd42f Mon Sep 17 00:00:00 2001
From: Carlos Galindo
Date: Tue, 20 May 2025 09:40:49 +0200
Subject: [PATCH] preparar-misa: estilo y logica botones.
---
res/less/song.less | 30 +++++++-
res/static/svg/down.svg | 1 +
res/static/svg/new.svg | 1 +
res/static/svg/random.svg | 1 +
res/static/svg/trash.svg | 1 +
res/static/svg/up.svg | 1 +
res/templates/preparar-misa.html | 125 +++++++++++++++++++++++--------
7 files changed, 125 insertions(+), 35 deletions(-)
create mode 100644 res/static/svg/down.svg
create mode 100644 res/static/svg/new.svg
create mode 100644 res/static/svg/random.svg
create mode 100644 res/static/svg/trash.svg
create mode 100644 res/static/svg/up.svg
diff --git a/res/less/song.less b/res/less/song.less
index 2edfdc8..9d87fbc 100644
--- a/res/less/song.less
+++ b/res/less/song.less
@@ -67,7 +67,9 @@ div.chorus, p.chorus {
font-style: italic;
}
-button, select.transposeSelect {
+button,
+select,
+input[type="button"] {
min-width: 2em;
min-height: 2em;
padding: .4em;
@@ -79,7 +81,8 @@ button, select.transposeSelect {
color: @text-dark;
background-color: @secondary-dark;
}
- &:hover {
+ &:hover,
+ &.pair-sub:hover ~ &.pair-sup {
background-color: @secondary-hover;
transition-duration: @transition;
@media (prefers-color-scheme: dark) {
@@ -97,3 +100,26 @@ select.transposeSelect {
color: @text-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;
+}
\ No newline at end of file
diff --git a/res/static/svg/down.svg b/res/static/svg/down.svg
new file mode 100644
index 0000000..6a89c73
--- /dev/null
+++ b/res/static/svg/down.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/res/static/svg/new.svg b/res/static/svg/new.svg
new file mode 100644
index 0000000..9f774b4
--- /dev/null
+++ b/res/static/svg/new.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/res/static/svg/random.svg b/res/static/svg/random.svg
new file mode 100644
index 0000000..d9a323f
--- /dev/null
+++ b/res/static/svg/random.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/res/static/svg/trash.svg b/res/static/svg/trash.svg
new file mode 100644
index 0000000..6679b45
--- /dev/null
+++ b/res/static/svg/trash.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/res/static/svg/up.svg b/res/static/svg/up.svg
new file mode 100644
index 0000000..cc1b607
--- /dev/null
+++ b/res/static/svg/up.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/res/templates/preparar-misa.html b/res/templates/preparar-misa.html
index 54317d6..11088f0 100644
--- a/res/templates/preparar-misa.html
+++ b/res/templates/preparar-misa.html
@@ -12,6 +12,30 @@
.hidePreview .preview {
display: none;
}
+#songlist > *,
+.mainButtons input[type="button"],
+.mainButtons button {
+ margin-bottom: .5em;
+}
+label.forCheckbox {
+ text-wrap: nowrap;
+}
+button.icon img {
+ width: 1em;
+ height: 0.9em;
+ pointer-events: none;
+}
+img.redFilter {
+ filter: invert(55%) sepia(67%) saturate(876%) hue-rotate(-40deg) brightness(90%) contrast(103%);
+}
+img.greenFilter {
+ filter: invert(61%) sepia(78%) saturate(626%) hue-rotate(43deg) brightness(70%) contrast(102%);
+}
+span.songSelector {
+ display: flex;
+ flex-wrap: nowrap;
+ column-gap: 0.3em;
+}
@@ -22,35 +46,48 @@
.
Si prefieres crear un PDF, pulsa aquí.
-
-
-
+
+
+
-
-
-
-
-
-
+
+ Añadir
+
+
+
+
+
+ Añadir
+
+
+
+
+
+
-
+
-