Advertisement
Consolee_

Untitled

Apr 30th, 2019
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. /* This CSS requires 5 people to be set up in the overlay
  2. Because the first slot is otherwise off screen */
  3.  
  4. /* Remove icons and set up transitions + avatar for roles */
  5. #icon.tftv-staff {
  6. background-image: none !important;
  7. }
  8. tftv-staff {
  9. border-radius: 0 0 3px 3px;
  10. transition: left 0.2s;
  11. left: 0;
  12. }
  13.  
  14. /* Setting up 'producer' in the first slot to move the other slots */
  15. tftv-staff[name="Console"] { left: initial; }
  16. tftv-staff[name="Console"] ~ tftv-staff { left: -144px; }
  17. tftv-staff[name="Console"]:first-child { right: -576px; }
  18. tftv-staff[name="Console"]:nth-child(2) { right: -432px; }
  19. tftv-staff[name="Console"][icon="cam"] { right: -288px; }
  20.  
  21. /* Add the role above the avatars */
  22. tftv-staff:before {
  23. position: relative;
  24. top: -24px;
  25. font-family: "Gotham HTF Bold", sans-serif;
  26. background-color: rgba(71,153,220, 0.7);
  27. display: block;
  28. text-align: center;
  29. border: 3px solid #4799dc;
  30. border-bottom: 0 none;
  31. border-radius: 3px 3px 0 0;
  32. margin: 0 -3px;
  33. }
  34.  
  35. /* First person in the caster slot is 'host'
  36. Or in case of 'producer' moves to the end and is 'producer' */
  37. tftv-staff[icon="mic"]:first-child:before {
  38. content: 'Producer';
  39. }
  40. tftv-staff[icon="mic"][name="producer"i]:first-child:before {
  41. content: 'Producer';
  42. }
  43. /* Set the 2nd & 3rd slot up to be 'caster' */
  44. tftv-staff[icon="mic"]:before,
  45. tftv-staff[icon="cam"]:before {
  46. content: 'Caster';
  47. }
  48. /* Producers will now be 'analyst' */
  49. tftv-staff[icon="prod"]:before {
  50. content: 'Analyst';
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement