Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css?family={fontFamily}:400,500,700,900');
  2.  
  3. * {
  4. box-sizing: border-box;
  5. }
  6.  
  7. html, body {
  8. height: 100%;
  9. overflow: hidden;
  10. }
  11.  
  12. body {
  13. padding: 10px;
  14. font-family: {fontFamily}, sans-serif;
  15. font-weight: 700;
  16. font-size: {font_size};
  17. line-height: 1.5em;
  18. color: {text_color};
  19. text-align: {textAlign};
  20. }
  21.  
  22. :root {
  23. --fromWeight: 700;
  24. --messageWeight: 400;
  25.  
  26. --borderSize: 0px;
  27. --borderRadius: 14px;
  28.  
  29. --bgColor: {bgColor};
  30. --bgOpacity: calc({bgOpacity} * .01);
  31. }
  32.  
  33. .colon {
  34. display: none;
  35. }
  36.  
  37. #log {
  38. display: table;
  39. position: absolute;
  40. bottom: 0;
  41. left: 0;
  42. padding: 10px;
  43. width: 100%;
  44. table-layout: fixed;
  45. }
  46.  
  47. .innerChat {
  48. margin: 0px;
  49. display: {displayType};
  50. padding: 20px 40px 20px 20px;
  51. overflow: hidden;
  52. word-break: break-all;
  53. position: relative;
  54. }
  55.  
  56.  
  57. #log > div.deleted {
  58. visibility: hidden;
  59. }
  60.  
  61. #log .emote {
  62. background-repeat: no-repeat;
  63. background-position: center;
  64. background-size: contain;
  65. padding: 0.4em 0.2em;
  66. position: relative;
  67. }
  68.  
  69. #log .emote img {
  70. display: inline-block;
  71. height: 1em;
  72. opacity: 0;
  73. }
  74.  
  75. .scaleHolder {
  76. position: relative;
  77. display: inline-block;
  78. z-index: 99;
  79. }
  80.  
  81. #log .meta {
  82. white-space: nowrap;
  83. text-overflow: ellipsis;
  84. position: relative;
  85. z-index: 99;
  86. font-weight: var(--fromWeight);
  87. color: {nameColor};
  88.  
  89. }
  90. .scaleHolder {
  91. opacity: 0;
  92. animation: showMeta .6s ease 0.4s forwards;
  93. }
  94.  
  95. @keyframes showMeta {
  96. from {
  97. opacity: 0;
  98. }
  99. to {
  100. opacity: 1;
  101. }
  102. }
  103.  
  104. #log .message {
  105. word-wrap: break-word;
  106. position: relative;
  107. z-index: 99;
  108. font-weight: var(--messageWeight);
  109. }
  110.  
  111. .badge {
  112. display: inline-block;
  113. margin-right: 0.2em;
  114. position: relative;
  115. height: 1em;
  116. vertical-align: middle;
  117. top: -0.1em;
  118. }
  119.  
  120. .name {
  121. margin-left: 0.2em;
  122. }
  123.  
  124. .chatMsg {
  125. position: relative;
  126. }
  127.  
  128. .chatBg {
  129. width: 100%;
  130. height: 100%;
  131. position: absolute;
  132. top: 0px;
  133. left: 0px;
  134. background: var(--bgColor);
  135. opacity: var(--bgOpacity);
  136. z-index: 1;
  137. animation: showBg .6s ease 0.2s forwards;
  138. clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  139. }
  140.  
  141. @keyframes showBg {
  142. from {
  143. clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  144. }
  145. to {
  146. clip-path: polygon(0% 0%, 100% 0%,100% 100%, 0% 100%);
  147. }
  148. }
  149.  
  150. .chatBorder {
  151. width: 100%;
  152. height: 2px;
  153. position: absolute;
  154. bottom: 0;
  155. left: 0;
  156. z-index: 999;
  157. background: linear-gradient(90deg, {colorOne} 0%, {colorTwo} 100%);
  158. -webkit-mask-image: linear-gradient(to right, black 0%, black 20%, black 80%, transparent 100%);
  159. animation: showBorder .4s ease 0.1s forwards;
  160. clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  161. }
  162.  
  163. @keyframes showBorder {
  164. from {
  165. clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  166. }
  167. to {
  168. clip-path: polygon(0% 0%, 100% 0%,100% 100%, 0% 100%);
  169. }
  170. }
  171.  
  172. .inner {
  173. display: inline-block;
  174. }
  175.  
  176. #log>div{
  177. animation:fadeOut 0.5s ease {message_hide_delay} forwards;
  178. -webkit-animation: fadeOut 0.5s ease {message_hide_delay} forwards;
  179. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement