elements.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /*
  2. Rules
  3. ========================================================================== */
  4. hr {
  5. display: block;
  6. margin: 1em 0;
  7. padding: 0;
  8. height: 1px;
  9. border: 0;
  10. border-top: 1px solid #ccc;
  11. border-bottom: 1px solid #fff;
  12. }
  13. /*
  14. Figures and images
  15. ========================================================================== */
  16. figure {
  17. margin-bottom: $indent-var;
  18. }
  19. article img {
  20. max-width: 100%;
  21. height: auto;
  22. border-width: 0;
  23. vertical-align: middle;
  24. -ms-interpolation-mode: bicubic;
  25. }
  26. svg:not(:root) {
  27. overflow: hidden;
  28. }
  29. /* 2 images of equal dimensions in a row */
  30. .half {
  31. @include container;
  32. @include clearfix;
  33. @media #{$micro} {
  34. img {
  35. @include grid(12,6);
  36. }
  37. figcaption {
  38. @include grid(12,12);
  39. }
  40. }
  41. }
  42. /* 3 images of equal dimensions in a row */
  43. .third {
  44. @include container;
  45. @include clearfix;
  46. @media #{$micro} {
  47. img {
  48. @include grid(12,4);
  49. }
  50. figcaption {
  51. @include grid(12,12);
  52. }
  53. }
  54. }
  55. /*
  56. Buttons
  57. ========================================================================== */
  58. /* Default button */
  59. .btn {
  60. display: inline-block;
  61. margin-bottom: 20px;
  62. padding: 8px 20px;
  63. @include font-rem(14);
  64. font-family: $heading-font;
  65. font-weight: 700;
  66. background-color: $primary;
  67. color: $white;
  68. border-width: 2px !important;
  69. border-style: solid !important;
  70. border-color: $primary;
  71. text-decoration: none !important;
  72. @include rounded(3px);
  73. &:visited {
  74. color: $white;
  75. }
  76. &:hover {
  77. background-color: $white;
  78. color: $primary;
  79. }
  80. }
  81. /* Success button */
  82. .btn-success {
  83. background-color: $success;
  84. color: $white;
  85. border-color: $success;
  86. &:visited {
  87. color: $white;
  88. }
  89. &:hover {
  90. background-color: $white;
  91. color: $success;
  92. }
  93. }
  94. /* Warning button */
  95. .btn-warning {
  96. background-color: $warning;
  97. color: $white;
  98. border-color: $warning;
  99. &:visited {
  100. color: $white;
  101. }
  102. &:hover {
  103. background-color: $white;
  104. color: $warning;
  105. }
  106. }
  107. /* Danger button */
  108. .btn-danger {
  109. background-color: $danger;
  110. color: $white;
  111. border-color: $danger;
  112. &:visited {
  113. color: $white;
  114. }
  115. &:hover {
  116. background-color: $white;
  117. color: $danger;
  118. }
  119. }
  120. /* Information button */
  121. .btn-info {
  122. background-color: $info;
  123. color: $white;
  124. border-color: $info;
  125. &:visited {
  126. color: $white;
  127. }
  128. &:hover {
  129. background-color: $white;
  130. color: $info;
  131. }
  132. }
  133. /*
  134. Wells
  135. ========================================================================== */
  136. .well {
  137. min-height: 20px;
  138. padding: 19px;
  139. margin-bottom: 20px;
  140. background-color: #f5f5f5;
  141. border: 1px solid #e3e3e3;
  142. @include rounded(4px);
  143. @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.05));
  144. }