summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--cmd/generate/src_contribs.go10
-rw-r--r--public/imworkingon/imworkingon.scss15
3 files changed, 20 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 82d7d1b..e6a0747 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ generate-clean:
public/imworkingon/index.html: FORCE
go run ./cmd/generate
public/imworkingon/imworkingon.css: public/imworkingon/imworkingon.scss
- scss $< $@
+ sass $< $@
public/sponsor/liberapay-icon.svg:
curl -L https://liberapay.com/assets/liberapay/icon-v2_black.svg >$@
diff --git a/cmd/generate/src_contribs.go b/cmd/generate/src_contribs.go
index 47133b2..b47cf89 100644
--- a/cmd/generate/src_contribs.go
+++ b/cmd/generate/src_contribs.go
@@ -63,13 +63,13 @@ func (c *Contribution) Fill() error {
}
}
switch {
- case strings.Contains(c.Status, "open"):
- c.StatusClass = "open"
- case strings.Contains(c.Status, "merged"):
- c.StatusClass = "merged"
case strings.Contains(c.Status, "released") || strings.Contains(c.Status, "deployed"):
c.StatusClass = "released"
- case strings.Contains(c.Status, "closed"):
+ case strings.Contains(c.Status, "merged"):
+ c.StatusClass = "merged"
+ case strings.Contains(c.Status, "open"):
+ c.StatusClass = "open"
+ case strings.Contains(c.Status, "closed") || strings.Contains(c.Status, "locked"):
c.StatusClass = "closed"
default:
return fmt.Errorf("unrecognized status string: %q", c.Status)
diff --git a/public/imworkingon/imworkingon.scss b/public/imworkingon/imworkingon.scss
index b905bb9..e899dcd 100644
--- a/public/imworkingon/imworkingon.scss
+++ b/public/imworkingon/imworkingon.scss
@@ -1,3 +1,6 @@
+@use 'sass:math';
+@use 'sass:list';
+
* {
box-sizing: border-box;
}
@@ -81,6 +84,16 @@ article.contrib {
&.closed-contrib div.contrib-status { background-color: #cf222e; color: white; }
&.open-contrib div.contrib-status { background-color: #d3ab3a; color: black; }
- &.merged-contrib div.contrib-status { background-color: #1f883d; color: white; }
+ &.merged-contrib div.contrib-status {
+ background: repeating-linear-gradient(315deg, #1f883d, #1f883d 1.0em, #d3ab3a 1.0em, #d3ab3a 1.4em);
+ color: white;
+ $shadow: [];
+ @for $w from 1 through 3 {
+ @for $a from 0 to 24 {
+ $shadow: list.append($shadow, #{$w*math.cos($a*15deg)}px #{$w*math.sin($a*15deg)}px #1f883d);
+ };
+ };
+ text-shadow: list.join($shadow, [], $separator: comma, $bracketed: false);
+ }
&.released-contrib div.contrib-status { background-color: #1f883d; color: white; }
}