JohnCoene / waiter

🕰️ Loading screens for Shiny
https://waiter.john-coene.com/
Other
495 stars 25 forks source link

Color customization of `spin_1()` and other spinners #117

Closed GitHunter0 closed 2 years ago

GitHunter0 commented 2 years ago

Hi folks,

First, thank you for this incredibly useful package.

Is there a way to change the color of spin_1()?

JohnCoene commented 2 years ago

I'm very sorry this issue escaped me.

.spinner--1 {
  color: red;
}

This should work, the HTML is here: https://github.com/JohnCoene/waiter/blob/1797663ee3f46d941ed31dc981d46e5db539613c/R/spinners.R#L644

GitHunter0 commented 2 years ago

No problem @JohnCoene , thank you for the feedback!

I tried this in my .css but the spin_1() is still in the default white color, I don't know why...

.spinner--1 {
  color: red !important;
}
JohnCoene commented 2 years ago

Sorry, it's the border

.spinner--1 {
  border-top: 2px solid red;
}