Advertisement
Guest User

Untitled

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