Guest User

Untitled

a guest
Oct 16th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. :host {
  2. display: block ;
  3. font-size: 16px ;
  4. }
  5.  
  6. .pattern {
  7. background: url( "./goose-duck.jpg" ) ;
  8. height: 300px ;
  9. left: 20px ;
  10. position: absolute ;
  11. top: 90px ;
  12. width: 300px ;
  13. z-index: 2 ;
  14. }
  15.  
  16. .blocks {
  17. left: 20px ;
  18. position: absolute ;
  19. top: 90px ;
  20. width: 300px ;
  21. z-index: 3 ;
  22. }
  23.  
  24. .block {
  25. color: #FFFFFF ;
  26. height: 50px ;
  27. font-family: sans-serif ;
  28. font-weight: bold ;
  29. line-height: 50px ;
  30. text-align: center ;
  31. transition: background-color 200ms ease ;
  32.  
  33. // With the fade() method, you can apply an opacity to a HEX value!!
  34. &-100 {
  35. background-color: fade( #FF0099, 100% ) ;
  36. }
  37.  
  38. &-80 {
  39. background-color: fade( #FF0099, 80% ) ;
  40. }
  41.  
  42. &-60 {
  43. background-color: fade( #FF0099, 60% ) ;
  44. }
  45.  
  46. &-40 {
  47. background-color: fade( #FF0099, 40% ) ;
  48. }
  49.  
  50. &-20 {
  51. background-color: fade( #FF0099, 20% ) ;
  52. }
  53.  
  54. &-0 {
  55. background-color: fade( #FF0099, 0% ) ;
  56. }
  57.  
  58. &:hover {
  59. background-color: fade( #FF0099, 100% ) ;
  60. }
  61. }
Add Comment
Please, Sign In to add comment