Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. @import url("https://fonts.googleapis.com/css?family={font_family}");
  2.  
  3. html, .widget-EventList li > div {
  4. -webkit-transform: rotateX({rotate_x}) rotateY({rotate_y});
  5. transform: rotateX({rotate_x}) rotateY({rotate_y});
  6. }
  7.  
  8. .widget-EventList, .widget-EventList * {
  9. box-sizing: border-box;
  10. }
  11.  
  12. .widget-EventList {
  13. font-weight: 700;
  14. font-size: {font_size};
  15. font-family: "{font_family}";
  16. color: {text_color};
  17. background: {background};
  18. overflow: hidden;
  19. list-style: none;
  20. padding: 0;
  21. margin: 10px 0px;
  22. text-transform: uppercase;
  23. position: relative;
  24. }
  25.  
  26. .widget-EventList li {
  27. width: 900px;
  28. height: 127px;
  29. position: relative;
  30. -webkit-animation: {show_animation} {animation_speed} forwards;
  31. animation: {show_animation} {animation_speed} forwards;
  32. }
  33.  
  34. .widget-EventList li > div:first-child {
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. width: 100%;
  39. height: 100%;
  40. border-radius: 4px;
  41. opacity: 0.7;
  42. -webkit-transition: opacity {animation_speed};
  43. transition: opacity {animation_speed};
  44. }
  45.  
  46. .widget-EventList li > div:last-child {
  47. overflow: hidden;
  48. position: relative;
  49. margin-bottom: 0px;
  50. padding: 0 10px;
  51. opacity: 0.7;
  52. font-size: 0.9em;
  53. height: 1em;
  54. line-height: 1.2em;
  55. -webkit-animation: growB {animation_speed} forwards;
  56. animation: growB {animation_speed} forwards;
  57. }
  58.  
  59. .widget-EventList li:first-child > div:first-child {
  60. opacity: 1;
  61. }
  62.  
  63. .widget-EventList li:first-child > div:last-child {
  64. -webkit-animation: growA {animation_speed} forwards;
  65. animation: growA {animation_speed} forwards;
  66. }
  67.  
  68. .widget-EventList li:nth-child(n+{max_events}) {
  69. -webkit-animation: {hide_animation} {animation_speed} forwards;
  70. animation: {hide_animation} {animation_speed} forwards;
  71. }
  72.  
  73.  
  74. @-webkit-keyframes growA {
  75. 0% {
  76. opacity: 0;
  77. font-size: 0em;
  78. height: 0em;
  79. line-height: 0em;
  80. margin-bottom: 0px;
  81. padding: 0;
  82. }
  83.  
  84. 100% {
  85. opacity: 1;
  86. font-size: 1em;
  87. height: 1.6em;
  88. line-height: 1.6em;
  89. margin-bottom: 4px;
  90. padding: 0 10px;
  91. }
  92. }
  93.  
  94.  
  95. @keyframes growA {
  96. 0% {
  97. opacity: 0;
  98. font-size: 0em;
  99. height: 0em;
  100. line-height: 0em;
  101. margin-bottom: 0px;
  102. padding: 0;
  103. }
  104.  
  105. 100% {
  106. opacity: 1;
  107. font-size: 1em;
  108. height: 1.6em;
  109. line-height: 1.6em;
  110. margin-bottom: 4px;
  111. padding: 0 10px;
  112. }
  113. }
  114.  
  115. @-webkit-keyframes growB {
  116. 0% {
  117. opacity: 1;
  118. font-size: 1em;
  119. height: 1.6em;
  120. line-height: 1.6em;
  121. }
  122. }
  123.  
  124. @keyframes growB {
  125. 0% {
  126. opacity: 1;
  127. font-size: 1em;
  128. height: 1.6em;
  129. line-height: 1.6em;
  130. }
  131. }
  132.  
  133. .widget-EventList .tag {
  134. font-size: 0.6em;
  135. line-height: 0.6em;
  136. top: 0.4em;
  137. right: 0.3em;
  138. position: absolute;
  139. }
  140.  
  141. .widget-EventList .message {
  142. padding-right: 3em;
  143. display: block;
  144. overflow: hidden;
  145. white-space: nowrap;
  146. text-overflow: ellipsis;
  147. }
  148.  
  149. .widget-EventList li {
  150. text-shadow: 0 0 1px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.7), 0 0 3px rgba(0, 0, 0, 0.7);
  151. }
  152.  
  153. .widget-EventList li > div:first-child {
  154.  
  155. background-image: url("https://cdn.discordapp.com/attachments/469686748600074240/469699500613566488/AnnouncementBar_2.png");
  156. background-size: 900px 127px;
  157. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement