Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. %no-text-decoration,
  2. .no-text-decoration {
  3. text-decoration: none;
  4.  
  5. &:hover,
  6. &:active,
  7. &:focus {
  8. text-decoration: none;
  9. }
  10. }
  11.  
  12. %no-text-decoration-hover-yes,
  13. .no-text-decoration-hover-yes {
  14. text-decoration: none;
  15.  
  16. &:hover,
  17. &:active,
  18. &:focus {
  19. text-decoration: underline;
  20. }
  21. }
  22.  
  23. %lined-link,
  24. .lined-link {
  25. text-decoration: underline;
  26.  
  27. &:hover,
  28. &:active,
  29. &:focus {
  30. text-decoration: underline;
  31. }
  32. }
  33.  
  34. %lined-link-hover-no,
  35. .lined-link-hover-no {
  36. text-decoration: underline;
  37.  
  38. &:hover,
  39. &:active,
  40. &:focus {
  41. text-decoration: none;
  42. }
  43. }
  44.  
  45. %dashed-link,
  46. .dashed-link {
  47. @extend %no-text-decoration;
  48.  
  49. span {
  50. position: relative;
  51.  
  52. &:before {
  53. position: absolute;
  54. content: "";
  55. left: 0;
  56. bottom: -1px;
  57. width: 100%;
  58. height: 0;
  59. border-bottom: 1px dashed;
  60. border-color: inherit;
  61. }
  62. }
  63. }
  64.  
  65. %dashed-link-hover-no,
  66. .dashed-link-hover-no {
  67. @extend %dashed-link;
  68.  
  69. &:hover {
  70. span {
  71. &:before {
  72. display: none;
  73. }
  74. }
  75. }
  76. }
  77.  
  78. %dashed-link-no-hover-yes,
  79. .dashed-link-no-hover-yes {
  80. @extend %dashed-link;
  81.  
  82. span {
  83. &:before {
  84. display: none;
  85. }
  86. }
  87.  
  88. &:hover {
  89. span {
  90. &:before {
  91. display: block;
  92. }
  93. }
  94. }
  95. }
  96.  
  97. %base-link,
  98. .base-link {
  99. color: $color-link_main;
  100.  
  101. &:hover {
  102. color: $color-link_accent;
  103. }
  104.  
  105. &:focus {
  106. color: $color-link_main;
  107. }
  108.  
  109. &:active {
  110. color: $color-link_main;
  111. }
  112. }
  113.  
  114. %second-link,
  115. .second-link {
  116. color: $color-link_second;
  117.  
  118. &:hover {
  119. color: $color-link_accent;
  120. }
  121.  
  122. &:focus {
  123. color: $color-link_second;
  124. }
  125.  
  126. &:active {
  127. color: $color-link_second;
  128. }
  129. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement