Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*
  2. HOVER EFFECTS
  3. Docs: http://tachyons.io/docs/themes/hovers/
  4. - Dim
  5. - Glow
  6. - Hide Child
  7. - Underline text
  8. - Grow
  9. - Pointer
  10. - Shadow
  11. */
  12. /*
  13. Dim element on hover by adding the dim class.
  14. */
  15. .dim {
  16. opacity: 1;
  17. transition: opacity .15s ease-in;
  18. }
  19. .dim:hover,
  20. .dim:focus {
  21. opacity: .5;
  22. transition: opacity .15s ease-in;
  23. }
  24. .dim:active {
  25. opacity: .8; transition: opacity .15s ease-out;
  26. }
  27. /*
  28. Animate opacity to 100% on hover by adding the glow class.
  29. */
  30. .glow {
  31. transition: opacity .15s ease-in;
  32. }
  33. .glow:hover,
  34. .glow:focus {
  35. opacity: 1;
  36. transition: opacity .15s ease-in;
  37. }
  38. /*
  39. Hide child & reveal on hover:
  40. Put the hide-child class on a parent element and any nested element with the
  41. child class will be hidden and displayed on hover or focus.
  42. <div class="hide-child">
  43. <div class="child"> Hidden until hover or focus </div>
  44. <div class="child"> Hidden until hover or focus </div>
  45. <div class="child"> Hidden until hover or focus </div>
  46. <div class="child"> Hidden until hover or focus </div>
  47. </div>
  48. */
  49. .hide-child .child {
  50. opacity: 0;
  51. transition: opacity .15s ease-in;
  52. }
  53. .hide-child:hover .child,
  54. .hide-child:focus .child,
  55. .hide-child:active .child {
  56. opacity: 1;
  57. transition: opacity .15s ease-in;
  58. }
  59. .underline-hover:hover,
  60. .underline-hover:focus {
  61. text-decoration: underline;
  62. }
  63. /* Can combine this with overflow-hidden to make background images grow on hover
  64. * even if you are using background-size: cover */
  65. .grow {
  66. -moz-osx-font-smoothing: grayscale;
  67. backface-visibility: hidden;
  68. transform: translateZ(0);
  69. transition: transform 0.25s ease-out;
  70. }
  71. .grow:hover,
  72. .grow:focus {
  73. transform: scale(1.05);
  74. }
  75. .grow:active {
  76. transform: scale(.90);
  77. }
  78. .grow-large {
  79. -moz-osx-font-smoothing: grayscale;
  80. backface-visibility: hidden;
  81. transform: translateZ(0);
  82. transition: transform .25s ease-in-out;
  83. }
  84. .grow-large:hover,
  85. .grow-large:focus {
  86. transform: scale(1.2);
  87. }
  88. .grow-large:active {
  89. transform: scale(.95);
  90. }
  91. /* Add pointer on hover */
  92. .pointer:hover {
  93. cursor: pointer;
  94. }
  95. /*
  96. Add shadow on hover.
  97. Performant box-shadow animation pattern from
  98. http://tobiasahlin.com/blog/how-to-animate-box-shadow/
  99. */
  100. .shadow-hover {
  101. cursor: pointer;
  102. position: relative;
  103. transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  104. }
  105. .shadow-hover::after {
  106. content: '';
  107. box-shadow: 0px 0px 16px 2px rgba( 0, 0, 0, .2 );
  108. opacity: 0;
  109. position: absolute;
  110. top: 0;
  111. left: 0;
  112. width: 100%;
  113. height: 100%;
  114. z-index: -1;
  115. transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  116. }
  117. .shadow-hover:hover::after,
  118. .shadow-hover:focus::after {
  119. opacity: 1;
  120. }
  121. /* Combine with classes in skins and skins-pseudo for
  122. * many different transition possibilities. */
  123. .bg-animate,
  124. .bg-animate:hover,
  125. .bg-animate:focus {
  126. transition: background-color .15s ease-in-out;
  127. }