common.styl 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. /* Common CSS that is imported into Admin and Site */
  2. // apply a natural box layout model to all elements
  3. *
  4. border-box()
  5. body
  6. margin: 0
  7. padding: 0
  8. background: #fff
  9. color: $textColor
  10. font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif
  11. font-weight: $normalFont
  12. font-size: 16px
  13. letter-spacing: 0em
  14. word-spacing: 0.2em
  15. line-height: 1.5em
  16. h1, h2, h3, h4, h5, h6
  17. color: $textDarkColor
  18. font-weight: $normalFont
  19. line-height: 1.2em
  20. margin: 0
  21. h1
  22. font-size: 3.5em
  23. h2
  24. font-size: 2.5em
  25. h3
  26. font-size: 2em
  27. h4
  28. font-size: 1.5em
  29. h5
  30. font-size: 1.125em
  31. font-weight: $boldFont
  32. h6
  33. font-size: 0.875em
  34. font-weight: $boldFont
  35. line-height: 1.5em
  36. a
  37. color: $linkColor
  38. text-decoration: none
  39. cursor: pointer
  40. &:hover
  41. text-decoration: none
  42. &.button
  43. display: inline-block
  44. padding: 10px 20px
  45. background: $primaryColor
  46. color: #fff
  47. font-weight: $boldFont
  48. &.large
  49. font-size: 2em
  50. line-height: 1.2em
  51. padding: 14px 30px
  52. strong
  53. font-weight: $boldFont
  54. b
  55. font-weight: $heavyFont
  56. small
  57. font-size: 0.875em
  58. line-height: 1em
  59. color: $lightGrey
  60. span.label
  61. font-weight: $normalFont
  62. color: $lightGrey
  63. blockquote
  64. position: relative
  65. border-right: 10px solid $primaryColor
  66. padding: 0 1.5em 0 3em
  67. margin: 1.5em 0
  68. text-align: right
  69. font-size: 1.125em
  70. font-weight: $normalFont
  71. &:before
  72. content: '“'
  73. position: absolute
  74. top: 0.2em
  75. left: 0
  76. color: $primaryColor
  77. font-size: 6em
  78. font-weight: $heavyFont
  79. img
  80. display: inline-block
  81. border: 0
  82. &.left
  83. float: left
  84. margin: 0 1em 0.5em 0
  85. &.right
  86. float: right
  87. margin: 0 0 0.5em 1em
  88. input[type='text'],
  89. input[type='password'],
  90. input[type='search'],
  91. textarea,
  92. select
  93. -webkit-appearance: none
  94. outline: none
  95. display: block
  96. width: 100%
  97. color: $textColor
  98. background: transparent
  99. font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif
  100. font-size: 1em
  101. font-weight: $normalFont
  102. word-spacing: 0.2em
  103. padding: 5px 0 5px 7px
  104. margin: 0
  105. border: 0
  106. border: 1px solid $faintGrey
  107. border-radius(0)
  108. textarea
  109. max-width: 100%
  110. min-width: 50%
  111. height: 120px
  112. min-height: 60px
  113. padding: 5px 7px
  114. input[type='submit'],
  115. input[type='button'],
  116. input[type='reset'],
  117. button,
  118. .button
  119. -webkit-appearance: none
  120. outline: none
  121. display: inline-block
  122. vertical-align: middle
  123. padding: 10px 30px
  124. font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif
  125. font-size: 1.1em
  126. font-weight: $boldFont
  127. color: #fff
  128. background: $primaryColor
  129. border: 0
  130. border-radius(0)
  131. cursor: pointer
  132. &:hover
  133. background: darken($primaryColor, 5%)
  134. &.plain
  135. color: $primaryColor
  136. background: #fff
  137. border: 1px solid $faintGrey
  138. &:hover
  139. background: lighten($faintGrey, 50%)
  140. &.small
  141. padding: 0px 10px
  142. font-size: 18px
  143. font-weight: $normalFont
  144. line-height: 1.5em
  145. &.glow
  146. outline: 4px solid rgba(yellow, 0.7)
  147. &.right-arrow
  148. iconic('\67', #fff, 'after')
  149. &:after
  150. margin-left: 0.5em
  151. &.left-arrow
  152. iconic('\66', #fff, 'before')
  153. &:before
  154. margin-right: 0.5em
  155. ::-webkit-input-placeholder
  156. color: #e3e3e3
  157. table:not(.plain)
  158. width: 100%
  159. font-size: 0.9em
  160. line-height: 1.3em
  161. border-collapse: collapse
  162. th
  163. font-weight: $boldFont
  164. th, td
  165. padding: 5px 10px
  166. border: 1px solid $faintGrey
  167. text-align: left
  168. vertical-align: top
  169. /* Custom style classes */
  170. ul.grid-2
  171. list-style-type: none
  172. margin: 0
  173. padding: 0
  174. border-collapse: collapse
  175. clearfix()
  176. > li
  177. display: inline-block
  178. position: relative
  179. width: 48%
  180. padding: 0
  181. margin: 0.8em 0.5em 0 0
  182. vertical-align: top
  183. &.with-borders > li
  184. width: 47%
  185. padding: 1em
  186. margin: 0.5em 0.4em
  187. border: solid 1px $faintGrey
  188. &.no-margins > li
  189. margin: 0
  190. ul.links
  191. list-style-type: none
  192. margin: 0
  193. padding: 0
  194. border-collapse: collapse
  195. > li
  196. padding: 0
  197. margin: 0.3em 0
  198. a
  199. display: block
  200. &.with-borders > li
  201. border: solid 1px $faintGrey
  202. a
  203. padding: 0.3em 0.5em
  204. &.no-margins > li
  205. margin: 0
  206. /* Extra helper classes */
  207. .primary-color
  208. color: $primaryColor
  209. .primary-link
  210. color: $linkColor
  211. .primary-background
  212. color: #fff
  213. background-color: $primaryColor
  214. .primary-border
  215. border-color: $primaryColor
  216. .normal
  217. font-weight: $normalFont
  218. .bold
  219. font-weight: $boldFont
  220. .float-right
  221. float: right
  222. .float-left
  223. float: left
  224. .clear
  225. clear: both
  226. .clearfix
  227. clearfix()