main.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. @import 'lib/bootstrap';
  2. /* Customized Variables for Bootstrap */
  3. $gray-base: black;
  4. $gray-transparent: rgba($gray-base,.8);
  5. $brand-primary-darker: rgb(57, 146, 171);
  6. $brand-success: rgb(41, 177, 106);
  7. $brand-info: rgb(76, 194, 228);
  8. $brand-danger: rgb(241, 83, 68);
  9. $font-family-sans-serif: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  10. $border-radius-large: 8px;
  11. $border-radius-small: 4px;
  12. $caret-width-base: 5px;
  13. $dropdown-bg: lighten($gray-base, 20%);
  14. $navbar-inverse-bg: rgba(0, 0, 0, .8);
  15. $label-color: rgb(255, 255, 255);
  16. $label-link-hover-color: rgb(255, 255, 255);
  17. $well-bg: lighten($gray-base, 90%);
  18. $well-border: transparent;
  19. $badge-color: rgb(255, 255, 255);
  20. $badge-link-hover-color: rgb(255, 255, 255);
  21. $badge-bg: $brand-danger;
  22. $badge-active-bg: rgb(255, 255, 255);
  23. $badge-line-height: 1.25;
  24. /* Other brand colors */
  25. $brand-gold: #F1B444;
  26. $brand-gold-darker: #B58733;
  27. $gray-90: lighten($gray-base, 10%);
  28. $gray-85: lighten($gray-base, 15%);
  29. $gray-80: lighten($gray-base, 20%);
  30. $gray-70: lighten($gray-base, 30%);
  31. $gray-60: lighten($gray-base, 40%);
  32. $gray-50: lighten($gray-base, 50%);
  33. $gray-40: lighten($gray-base, 60%);
  34. $gray-20: lighten($gray-base, 80%);
  35. $gray-10: lighten($gray-base, 90%);
  36. $gray-5: lighten($gray-base, 95%);
  37. $brand-primary: #4CC2E4;
  38. /* Grid size (mirrors Bootstraps) */
  39. $screen-sm-min: 768px;
  40. $screen-xs-max: $screen-sm-min - 1;
  41. $screen-md-min: 992px;
  42. $screen-sm-max: $screen-md-min - 1;
  43. $screen-lg-min: 1200px;
  44. $screen-md-max: $screen-lg-min - 1;
  45. /* Mixin that prefixes any CSS rule */
  46. @mixin vendor-prefix($property, $argument) {
  47. -webkit-#{$property}: #{$argument};
  48. -ms-#{$property}: #{$argument};
  49. -moz-#{$property}: #{$argument};
  50. -o-#{$property}: #{$argument};
  51. #{$property}: #{$argument};
  52. }
  53. /* header */
  54. header {
  55. .navbar-form {
  56. margin-bottom: 0px;
  57. }
  58. .btn.search-button {
  59. padding: 0px 10px 0px 15px;
  60. font-size: 27px;
  61. background-color: rgba(0, 0, 0, 0);
  62. border-radius: 0px;
  63. color: $gray-40;
  64. &:hover {
  65. color: $gray-10;
  66. }
  67. }
  68. }
  69. /* footer */
  70. footer {
  71. background-color: $gray-5;
  72. position: relative;
  73. strong { color:inherit; }
  74. h1 {
  75. font-size: 2.5em;
  76. color: $brand-primary-darker;
  77. }
  78. h2 {
  79. text-transform: uppercase;
  80. color:$gray-50;
  81. font-size: 1em;
  82. font-weight: bold;
  83. }
  84. }
  85. footer ul.nav li > a {
  86. font-size:1em;
  87. margin-left: -15px;
  88. }
  89. footer ul.nav li > a:hover {
  90. background-color: $gray-20;
  91. }
  92. footer .copyright_text {
  93. margin-top: 25px;
  94. }
  95. .page {
  96. margin-bottom: 2em;
  97. }
  98. /*
  99. * position anchors of fragment links slightly above their targets
  100. */
  101. .fragment-anchor {
  102. display: block;
  103. position: relative;
  104. bottom: 50px;
  105. }
  106. /*
  107. ********* Modifications to Bootstrap ***********
  108. */
  109. button.btn, a.btn {
  110. border-radius: 0;
  111. background-color: $brand-primary;
  112. color: black;
  113. border: 0;
  114. }
  115. button.btn:hover, a.btn {
  116. color: black;
  117. }
  118. h1 {
  119. color: $brand-gold-darker;
  120. font-weight: normal;
  121. }
  122. h2 {
  123. color: $gray-50;
  124. font-size: 18px;
  125. }
  126. .badge {
  127. font-size: 12px;
  128. margin-top: -14px;
  129. padding: 1px 5px;
  130. }
  131. .blue-divider {
  132. width:100%;
  133. height:4px;
  134. background-color: $brand-primary;
  135. }
  136. /* misc */
  137. .vertical-center-parent {
  138. position: relative;
  139. width: 100%;
  140. height: 100%;
  141. .vertical-center-child {
  142. position: absolute;
  143. top: 50%;
  144. left: 50%;
  145. @include vendor-prefix(transform, translate(-50%,-50%));
  146. }
  147. }
  148. .whole-page-content {
  149. min-height: 300px;
  150. height: 60%;
  151. margin: auto;
  152. }
  153. .not-found, .deprecated {
  154. .vertical-center-child {
  155. width: 100%;
  156. }
  157. }
  158. .not-found-header {
  159. text-align: center;
  160. }
  161. .not-found-redirect {
  162. margin-bottom: 20px;
  163. text-align: center;
  164. display: none;
  165. em {
  166. text-decoration: underline;
  167. }
  168. }
  169. /* fixing prettyprint formatting */
  170. pre.prettyprint {
  171. padding: 10px !important;
  172. font-size: 13px !important;
  173. border: 1px solid #cccccc !important;
  174. }
  175. code.prettyprint {
  176. border: none !important;
  177. }
  178. /* improving inline quotes styling */
  179. code {
  180. background-color: #c9dddf;
  181. color: #000000;
  182. }
  183. /* algolia search formatting */
  184. .algolia-docsearch-suggestion--category-header, .algolia-docsearch-suggestion {
  185. font-family: "Raleway", Helvetica, Arial, sans-serif !important;
  186. }
  187. .algolia-docsearch-suggestion--category-header {
  188. background-color: #262626 !important;
  189. font-size: 16px !important;
  190. font-weight: bold !important;
  191. line-height: 30px !important;
  192. }
  193. .algolia-docsearch-suggestion {
  194. font-size: 14px !important;
  195. font-weight: 300 !important;
  196. }
  197. @media (max-width: $screen-xs-max) {
  198. #header-search-form {
  199. display: none;
  200. }
  201. }
  202. #header-search-field {
  203. border-radius: 4px !important;
  204. }
  205. @import 'home';
  206. @import 'blog';
  207. @import 'plugins';
  208. @import 'docs';
  209. @import 'contribute';
  210. @import 'contact';
  211. @import 'artwork';