Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. // -----------------------------------------------------------------------------
  2. // Global Helpers
  3. // -----------------------------------------------------------------------------
  4.  
  5. // Clearfix
  6. %clearfix {
  7. &:after {
  8. clear: both;
  9. content: '';
  10. display: block;
  11. }
  12. }
  13.  
  14. // Image Replacement
  15. %ir {
  16. display: block;
  17. height: 0;
  18. overflow: hidden;
  19. text-indent: 100%;
  20. width: 0;
  21. }
  22.  
  23. // Extended background
  24. // Use to create a background that extends beyond the bounds of a parent element container
  25. @mixin bg-extended($color) {
  26. clear: both;
  27. position: relative;
  28. &:before {
  29. background-color: $color;
  30. content: '';
  31. margin-left: -200%;
  32. position: absolute;
  33. top: 0;
  34. bottom: 0;
  35. width: 400%;
  36. }
  37. // All child elements need position: relative. Uncomment below or add manually
  38. > * {
  39. // position: relative;
  40. }
  41. }
  42.  
  43. //Retina
  44. $mq-retina: '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dppx)';
  45.  
  46. @mixin retina {
  47. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dppx) {
  48. @content;
  49. }
  50. }
  51.  
  52. // Custom Sprites
  53. %custom-sprite {
  54. background-image: url(../images/custom-sprites.png);
  55. }
  56. // render retina sprite file at 200%
  57. // background-size needs to be updated whenever the sprite sheet changes size
  58. // retina background size is 50% of actual sprite sheet dimensions
  59. @media #{$mq-retina} {
  60. %custom-sprite {
  61. background-image: url(../images/custom-sprites@2x.png);
  62. background-position: -1px -10px;
  63. background-size: 150px 200px;
  64. }
  65. }
  66.  
  67. // Branded lists
  68. %ul-branded {
  69. list-style: none;
  70. li {
  71. margin-left: 0;
  72. &:before {
  73. content: '\2022';
  74. color: $link-blue;
  75. margin-right: 5px;
  76. }
  77. }
  78. }
  79. %dl-branded {
  80. list-style: none;
  81. dt {
  82. margin-left: 0;
  83. &:before {
  84. content: '\2022';
  85. color: $link-blue;
  86. margin-right: 5px;
  87. }
  88. }
  89. dd {
  90. margin-left: 13px;
  91. }
  92. }
  93.  
  94. // Custom HR
  95. %hr-dark {
  96. border-top: 1px solid #272727;
  97. border-bottom: 1px solid #181818;
  98. }
  99. @mixin hr-dark {
  100. border-top: 1px solid #272727;
  101. border-bottom: 1px solid #181818;
  102. }
  103. %hr-light {
  104. border-top: 1px solid #fff;
  105. border-bottom: 1px solid $mercury;
  106. }
  107.  
  108. // Vertical separator
  109. %separator {
  110. position: relative;
  111. &:after {
  112. background-color: #e5e5e5;
  113. box-shadow: 1px 1px 1px $white;
  114. content: " ";
  115. height: auto;
  116. width: 1px;
  117.  
  118. position: absolute;
  119. top: 0;
  120. bottom: 0;
  121. }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement