Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @import url("https://fonts.googleapis.com/css?family=$font_family");
- html, .widget-EventList li > div {
- -webkit-transform: rotateX($rotate_x) rotateY($rotate_y);
- transform: rotateX($rotate_x) rotateY($rotate_y);
- }
- .widget-EventList, .widget-EventList * {
- box-sizing: border-box;
- }
- .widget-EventList {
- font-weight: 700;
- font-size: $font_size;
- font-family: "$font_family";
- color: $text_color;
- background: $background;
- overflow: hidden;
- list-style: none;
- padding: 0;
- margin: 10px 30px;
- text-transform: uppercase;
- position: relative;
- }
- .widget-EventList li {
- width: 100%;
- position: relative;
- -webkit-animation: $show_animation $animation_speed forwards;
- animation: $show_animation $animation_speed forwards;
- }
- .widget-EventList li > div:first-child {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border-radius: 0;
- opacity: .8;
- -webkit-transition: opacity $animation_speed;
- transition: opacity $animation_speed;
- }
- .widget-EventList li > div:last-child {
- overflow: hidden;
- position: relative;
- margin-bottom: 4px;
- padding: 0 10px;
- opacity: 0.7;
- font-size: 0.6em;
- height: 1.2em;
- line-height: 1.2em;
- -webkit-animation: growB $animation_speed forwards;
- animation: growB $animation_speed forwards;
- }
- .widget-EventList li:first-child > div:first-child {
- opacity: 1;
- }
- .widget-EventList li:first-child > div:last-child {
- -webkit-animation: growA $animation_speed forwards;
- animation: growA $animation_speed forwards;
- }
- .widget-EventList li:nth-child(n+$max_events) {
- -webkit-animation: $hide_animation $animation_speed forwards;
- animation: $hide_animation $animation_speed forwards;
- }
- @-webkit-keyframes growA {
- 0% {
- opacity: 0;
- font-size: 0em;
- height: 0em;
- line-height: 0em;
- margin-bottom: 0px;
- padding: 0;
- }
- 100% {
- opacity: 1;
- font-size: 1em;
- height: 1.6em;
- line-height: 1.6em;
- margin-bottom: 4px;
- padding: 0 10px;
- }
- }
- @keyframes growA {
- 0% {
- opacity: 0;
- font-size: 0em;
- height: 0em;
- line-height: 0em;
- margin-bottom: 0px;
- padding: 0;
- }
- 100% {
- opacity: 1;
- font-size: 1em;
- height: 1.6em;
- line-height: 1.6em;
- margin-bottom: 4px;
- padding: 0 10px;
- }
- }
- @-webkit-keyframes growB {
- 0% {
- opacity: 1;
- font-size: 1em;
- height: 1.6em;
- line-height: 1.6em;
- }
- }
- @keyframes growB {
- 0% {
- opacity: 1;
- font-size: 1em;
- height: 1.6em;
- line-height: 1.6em;
- }
- }
- .widget-EventList .tag {
- font-size: 0.6em;
- line-height: 0.6em;
- top: 0.4em;
- right: 0.3em;
- position: absolute;
- }
- .widget-EventList .message {
- padding-right: 3em;
- display: block;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .widget-EventList .tag {
- float: left;
- }
- .widget-EventList li {
- 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);
- }
- .widget-EventList li > div:first-child {
- background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.2));
- background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.2));
- background: linear-gradient(rgba(70, 70, 70, 0.7), rgba(50, 50, 50, 0.7));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement