Advertisement
lowheartrate

Current CSS of Event List

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