Advertisement
Guest User

Untitled

a guest
May 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.70 KB | None | 0 0
  1. $mc: #8B9556;
  2. $mc-dark3: darken($mc, 30%);
  3. $mc-dark2: darken($mc, 20%);
  4. $mc-dark: darken($mc, 10%);
  5. $mc-light: lighten($mc, 10%);
  6. $mc-light2: lighten($mc, 20%);
  7. $mc-light3: lighten($mc, 30%);
  8. $sc: #6C5A49;
  9. $sc-dark3: darken($sc, 30%);
  10. $sc-dark2: darken($sc, 20%);
  11. $sc-dark: darken($sc, 10%);
  12. $sc-light: lighten($sc, 10%);
  13. $sc-light2: lighten($sc, 20%);
  14. $sc-light3: lighten($sc, 30%);
  15. $tc: #B2D433;
  16. $tc-dark3: darken($tc, 30%);
  17. $tc-dark2: darken($tc, 20%);
  18. $tc-dark: darken($tc, 10%);
  19. $tc-light: lighten($tc, 10%);
  20. $tc-light2: lighten($tc, 20%);
  21. $tc-light3: lighten($tc, 30%);
  22. $fc: #4F3198;
  23. $fc-dark3: darken($fc, 30%);
  24. $fc-dark2: darken($fc, 20%);
  25. $fc-dark: darken($fc, 10%);
  26. $fc-light: lighten($fc, 10%);
  27. $fc-light2: lighten($fc, 20%);
  28. $fc-light3: lighten($fc, 30%);
  29.  
  30. $life-color: #f22;
  31. $xs: 0;
  32. $sm: 575px;
  33. $md: 768px;
  34. $lg: 992px;
  35. $xl: 1200px;
  36.  
  37. $card-width: 120px;
  38. $card-height: 168px;
  39.  
  40. @mixin xs {
  41. @media (min-width: $xs) {
  42. @content;
  43. }
  44. }
  45. @mixin sm {
  46. @media (min-width: $sm) {
  47. @content;
  48. }
  49. }
  50. @mixin md {
  51. @media (min-width: $md) {
  52. @content;
  53. }
  54. }
  55. @mixin lg {
  56. @media (min-width: $lg) {
  57. @content;
  58. }
  59. }
  60. @mixin xl {
  61. @media (min-width: $xl) {
  62. @content;
  63. }
  64. }
  65. @mixin maxxs {
  66. @media (max-width: $xs) {
  67. @content;
  68. }
  69. }
  70. @mixin maxsm {
  71. @media (max-width: $sm) {
  72. @content;
  73. }
  74. }
  75. @mixin maxmd {
  76. @media (max-width: $md) {
  77. @content;
  78. }
  79. }
  80. @mixin flexbox() {
  81. display: -webkit-box;
  82. display: -moz-box;
  83. display: -ms-flexbox;
  84. display: -webkit-flex;
  85. display: flex;
  86. }
  87. @mixin flex($values) {
  88. -webkit-box-flex: $values;
  89. -moz-box-flex: $values;
  90. -webkit-flex: $values;
  91. -ms-flex: $values;
  92. flex: $values;
  93. }
  94. @mixin order($val) {
  95. -webkit-box-ordinal-group: $val;
  96. -moz-box-ordinal-group: $val;
  97. -ms-flex-order: $val;
  98. -webkit-order: $val;
  99. order: $val;
  100. }
  101. @mixin transition($transition...) {
  102. -moz-transition: $transition;
  103. -o-transition: $transition;
  104. -webkit-transition: $transition;
  105. transition: $transition;
  106. }
  107. @mixin transition-property($property...) {
  108. -moz-transition-property: $property;
  109. -o-transition-property: $property;
  110. -webkit-transition-property: $property;
  111. transition-property: $property;
  112. }
  113. @mixin transition-duration($duration...) {
  114. -moz-transition-property: $duration;
  115. -o-transition-property: $duration;
  116. -webkit-transition-property: $duration;
  117. transition-property: $duration;
  118. }
  119. @mixin transition-timing-function($timing...) {
  120. -moz-transition-timing-function: $timing;
  121. -o-transition-timing-function: $timing;
  122. -webkit-transition-timing-function: $timing;
  123. transition-timing-function: $timing;
  124. }
  125. @mixin transition-delay($delay...) {
  126. -moz-transition-delay: $delay;
  127. -o-transition-delay: $delay;
  128. -webkit-transition-delay: $delay;
  129. transition-delay: $delay;
  130. }
  131. @mixin transform($in) {
  132. transform: $in;
  133. -webkit-transform: $in;
  134. -moz-transform: $in;
  135. -o-transform: $in;
  136. -ms-transform: $in;
  137. }
  138. @mixin transform-style($type) {
  139. -webkit-transform-style: $type;
  140. -moz-transform-style: $type;
  141. -o-transform-style: $type;
  142. -ms-transform-style: $type;
  143. transform-style: $type;
  144. }
  145. @mixin animation-duration($time) {
  146. -webkit-animation-duration: $time;
  147. -moz-animation-duration: $time;
  148. -ms-animation-duration: $time;
  149. -o-animation-duration: $time;
  150. animation-duration: $time;
  151. }
  152. @mixin backgroundDots() {
  153. background:
  154. radial-gradient(#6C5A49 4%, #453A2F 9%, hsla(0, 100%, 20%, 0) 9%) 0 0,
  155. radial-gradient(#6C5A49 4%, #453A2F 8%, hsla(0, 100%, 20%, 0) 10%) 50px 50px,
  156. radial-gradient(rgba(#6C5A49, 0.8) 20%, hsla(0, 100%, 20%, 0)) 50px 0,
  157. radial-gradient(rgba(#6C5A49, 0.8) 20%, hsla(0, 100%, 20%, 0)) 0 50px,
  158. radial-gradient(#453A2F 35%, hsla(0, 100%, 20%, 0) 60%) 50px 0,
  159. radial-gradient(#453A2F 35%, hsla(0, 100%, 20%, 0) 60%) 100px 50px,
  160. radial-gradient(rgba(#453A2F, 0.7), hsla(0, 100%, 20%, 0)) 0 0,
  161. radial-gradient(rgba(#453A2F, 0.7), hsla(0, 100%, 20%, 0)) 50px 50px,
  162. linear-gradient(45deg, hsla(0, 100%, 20%, 0) 49%, hsla(0, 100%, 0%, 1) 50%, hsla(0, 100%, 20%, 0) 70%) 0 0,
  163. linear-gradient(-45deg, hsla(0, 100%, 20%, 0) 49%, hsla(0, 100%, 0%, 1) 50%, hsla(0, 100%, 20%, 0) 70%) 0 0;
  164. background-color: #1E1914;
  165. background-size: 100px 100px;
  166. }
  167.  
  168. @mixin backgroundGroovy() {
  169. background-color: #cccccc;
  170. background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 12c0-.622-.095-1.221-.27-1.785A5.982 5.982 0 0 0 10 12c1.67 0 3.182-.683 4.27-1.785A5.998 5.998 0 0 0 14 12h2a4 4 0 0 1 4-4V6c-1.67 0-3.182.683-4.27 1.785C15.905 7.22 16 6.622 16 6c0-.622-.095-1.221-.27-1.785A5.982 5.982 0 0 0 20 6V4a4 4 0 0 1-4-4h-2c0 .622.095 1.221.27 1.785A5.982 5.982 0 0 0 10 0C8.33 0 6.818.683 5.73 1.785 5.905 1.22 6 .622 6 0H4a4 4 0 0 1-4 4v2c1.67 0 3.182.683 4.27 1.785A5.998 5.998 0 0 1 4 6c0-.622.095-1.221.27-1.785A5.982 5.982 0 0 1 0 6v2a4 4 0 0 1 4 4h2zm-4 0a2 2 0 0 0-2-2v2h2zm16 0a2 2 0 0 1 2-2v2h-2zM0 2a2 2 0 0 0 2-2H0v2zm20 0a2 2 0 0 1-2-2h2v2zm-10 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z' fill='%236b6b6b' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
  171. }
  172.  
  173. @mixin backgroundWeave() {
  174. background: linear-gradient(45deg, lighten(#0f0, 30%) 12%, transparent 0, transparent 88%, lighten(#dca, 30%) 0), linear-gradient(135deg, transparent 37%, lighten(#a85, 30%) 0, lighten(#a85, 30%) 63%, transparent 0), linear-gradient(45deg, transparent 37%, lighten(#dca, 30%) 0, lighten(#dca, 30%) 63%, transparent 0) lighten(#753, 30%);
  175. background-size: 25px 25px;
  176. }
  177. @mixin backgroundStar() {
  178. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  179. }
  180.  
  181. @function stroke($stroke, $color) {
  182. $shadow: ();
  183. $from: $stroke*-1;
  184. @for $i from $from through $stroke {
  185. @for $j from $from through $stroke {
  186. $shadow: append($shadow, $i*1px $j*1px 0 $color, comma);
  187. }
  188. }
  189. @return $shadow;
  190. }
  191.  
  192. @mixin stroke($stroke, $color) {
  193. text-shadow: stroke($stroke, $color);
  194. }
  195.  
  196. @mixin noselect() {
  197. -webkit-touch-callout: none; /* iOS Safari */
  198. -webkit-user-select: none; /* Safari */
  199. -khtml-user-select: none; /* Konqueror HTML */
  200. -moz-user-select: none; /* Firefox */
  201. -ms-user-select: none; /* Internet Explorer/Edge */
  202. user-select: none; /* Non-prefixed version, currently
  203. supported by Chrome and Opera */
  204. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement