aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtk-3.0/scss/widgets/_spinner.scss
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-08-23 23:50:54 -0500
committerJesús <heckyel@hyperbola.info>2019-08-23 23:50:54 -0500
commit033f79d5f73c0e3a15976e57fcf71c7d2e0aa79b (patch)
treed9351e6999294f3ed005e821695c3d081fe0b537 /src/gtk-3.0/scss/widgets/_spinner.scss
downloadlibrix-033f79d5f73c0e3a15976e57fcf71c7d2e0aa79b.tar.lz
librix-033f79d5f73c0e3a15976e57fcf71c7d2e0aa79b.tar.xz
librix-033f79d5f73c0e3a15976e57fcf71c7d2e0aa79b.zip
first commit
Diffstat (limited to 'src/gtk-3.0/scss/widgets/_spinner.scss')
-rw-r--r--src/gtk-3.0/scss/widgets/_spinner.scss24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gtk-3.0/scss/widgets/_spinner.scss b/src/gtk-3.0/scss/widgets/_spinner.scss
new file mode 100644
index 0000000..9c753f7
--- /dev/null
+++ b/src/gtk-3.0/scss/widgets/_spinner.scss
@@ -0,0 +1,24 @@
+/*******************
+ ! Spinner animation
+********************/
+
+@include exports("spinner") {
+ @keyframes spin {
+ to { -gtk-icon-transform: rotate(1turn); }
+ }
+
+ .spinner {
+ background-image: none;
+ background-color: $selected_bg_color;
+ opacity: 0; // non spinning spinner makes no sense
+
+ -gtk-icon-source: -gtk-icontheme("process-working-symbolic");
+
+ &:active {
+ opacity: 1;
+ animation: spin 1s linear infinite;
+
+ &:insensitive { opacity: .5; }
+ }
+ }
+}