Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.80 KB | None | 0 0
  1. /*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ The janky download progress bar ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
  2. /*--------------------------------------- Icon appearance ---------------------------------------*/
  3. #downloads-indicator-icon {
  4.  
  5. transform: scale(1.2, 1.2) !important;
  6. margin-top: 1px !important;
  7. animation: alternate !important;
  8. opacity: 0.95 !important;}
  9.  
  10. #downloads-button[attention="success"] #downloads-indicator-icon {fill:  !important;}
  11. /*-----------------------------------------------------------------------------------------------*/
  12.  
  13. /*----------------------------------- Progress bar appearance -----------------------------------*/
  14. #downloads-notification-anchor[notification="start"] > #downloads-indicator-notification {display: none !important;}
  15. #downloads-indicator-progress-inner {background: url("Inner.png") center no-repeat !important;}
  16. #downloads-indicator-progress-outer {background: url("Outer.png") center no-repeat !important;}
  17. #downloads-button[progress]   {
  18. transform: scale(3, 1) !important;
  19. opacity: 0.8 !important;
  20. margin-right: 24px !important;
  21. margin-left: 24px !important;
  22. padding: 0px !important;
  23. padding-right: 0px !important;
  24. padding-left: 0px !important;}
  25. #downloads-button[progress] stack {
  26. margin-left: 2px !important;
  27. margin-right: 2px !important;
  28. padding-right: 0px !important;
  29. padding-left: 0px !important;
  30. border-radius: 1px !important;}
  31. /*-----------------------------------------------------------------------------------------------*/
  32.  
  33. /*------------------------------- Progress bar visibility handling ------------------------------*/
  34. #downloads-indicator-progress-inner {visibility: hidden !important;}
  35. #downloads-indicator-progress-outer {visibility: hidden !important;}
  36. #downloads-button[progress] #downloads-indicator-icon {visibility: hidden !important;}
  37. #downloads-button[progress] #downloads-indicator-progress-inner {visibility: visible !important;}
  38. #downloads-button[progress] #downloads-indicator-progress-outer {visibility: visible !important;}
  39. /*-----------------------------------------------------------------------------------------------*/
  40. /*Code below is optional, it makes it so after you click on the downloads
  41.   button and there is nothing in queue, the button will disappear.
  42.   Remove "/**" to activate it.
  43. /*----------------------------- Hide downloads button after clicking ----------------------------*/
  44. /**
  45. #downloads-button {display: none;}
  46. #downloads-button[open="true"] {display: initial !important;}
  47. #downloads-button[progress="true"] {display: initial !important;}
  48. #downloads-button[attention="success"] {display: initial !important;}
  49. /*-----------------------------------------------------------------------------------------------*/
  50.  
  51.  
  52.  
  53. /*Alternatively, you can use this code below (which i prefer) instead
  54.   -it'll make it so when downloading is finished,
  55.   the button will disappear.
  56. /*--------------------- Hide downloads button after downloading is finished ---------------------*/
  57. /**
  58. #downloads-button {display: none;}
  59. #downloads-button  {margin-top: 3px !important;}
  60. #downloads-button[open="true"] {display: initial !important;}
  61. #downloads-button[progress="true"] {display: initial !important;}
  62. #downloads-button[attention="success"] {display: initial !important;}
  63. #downloads-button[attention="success"] {display: none !important;}
  64. /*-----------------------------------------------------------------------------------------------*/
  65. /*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement