screen.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. @import "_base";
  2. @import "compass/reset";
  3. @import "compass/typography/vertical_rhythm";
  4. @import "compass/css3/transform";
  5. @import "compass/layout";
  6. @import "compass/css3/flexbox";
  7. @include establish-baseline;
  8. div, section, nav, article, header, footer {
  9. }
  10. body {
  11. background: black;
  12. @include text-size-adjust(none);
  13. font-family: "Open Sans", sans-serif;
  14. }
  15. a {
  16. text-decoration: none;
  17. color: $link-color;
  18. }
  19. @import "cookie";
  20. #top_banner {
  21. background-repeat: no-repeat;
  22. background-position: bottom center;
  23. @include background-size(cover);
  24. height: 120px;
  25. background: black;
  26. @include breakpoint(max-width $bp-small) {
  27. height: 80px;
  28. }
  29. }
  30. #bold_title {
  31. color: white;
  32. @include container;
  33. position: relative;
  34. font-family: 'Oswald', sans-serif;
  35. font-weight: normal;
  36. h1 {
  37. font-size: 3em;
  38. text-align: right;
  39. position: relative;
  40. top: 0.75em;
  41. @include span(3 first);
  42. }
  43. .tagline {
  44. font-size: 1.5em;
  45. text-align: left;
  46. @include span(3 last);
  47. span {
  48. position: absolute;
  49. margin-left: -1*span(2);
  50. top: 3em;
  51. }
  52. }
  53. @include breakpoint(max-width $bp-small) {
  54. h1 {
  55. font-size: 2em;
  56. top: 0.5em;
  57. @include span(4 first);
  58. }
  59. .tagline span {
  60. font-size: 0.75em;
  61. top: 2.5em;
  62. }
  63. }
  64. }
  65. .page {
  66. #content_box {
  67. #inner_box {
  68. @include container;
  69. article {
  70. @include span(full);
  71. padding-top: 2*$base-line-height;
  72. @include breakpoint(max-width $bp-middle) {
  73. @include span(full split);
  74. }
  75. @include breakpoint(max-width $bp-small) {
  76. padding-top: $base-line-height;
  77. }
  78. header {
  79. text-align: center;
  80. h2 {
  81. font-size: 2em;
  82. font-family: "Oswald", sans-serif;
  83. line-height: 2*$base-line-height;
  84. padding-bottom: $base-line-height;
  85. @include breakpoint(max-width $bp-small) {
  86. font-size: 1.5em;
  87. padding-bottom: 0;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. .home.page {
  96. #bold_title {
  97. h1 {
  98. text-align: center;
  99. @include span(6);
  100. .hi {
  101. font-size: 0.667em;
  102. vertical-align: super;
  103. margin-right: 0.25em;
  104. }
  105. }
  106. @include breakpoint(max-width $bp-small) {
  107. h1 {
  108. font-size: 3em;
  109. top: 0.35em;
  110. }
  111. .tagline span {
  112. background: red;
  113. font-size: 0.75em;
  114. }
  115. }
  116. }
  117. }
  118. #content_box {
  119. background: white;
  120. position: relative;
  121. #main_menu {
  122. background: black;
  123. @include container;
  124. ul {
  125. position: absolute;
  126. bottom: -42px;
  127. text-align: center;
  128. li {
  129. padding: 10px 15px 5px 0;
  130. display: inline-block;
  131. }
  132. a {
  133. color: white;
  134. font-family: "Oswald", sans-serif;
  135. font-weight: normal;
  136. }
  137. }
  138. @include breakpoint(max-width $bp-middle) {
  139. ul {
  140. @include pre(gutter()/2);
  141. }
  142. }
  143. }
  144. }
  145. #inner_box {
  146. @include container;
  147. padding-bottom: 50px;
  148. }
  149. .home.page {
  150. #inner_box {
  151. padding-bottom: 0;
  152. }
  153. h2 {
  154. line-height: 80px;
  155. text-align: center;
  156. font-size: 2em;
  157. font-family: 'Oswald', sans-serif;
  158. }
  159. .work.column {
  160. width: 25%;
  161. height: 300px;
  162. float: left;
  163. display: block;
  164. padding: 0;
  165. margin: 0;
  166. position: relative;
  167. vertical-align:bottom;
  168. background: gray;
  169. span {
  170. position: absolute;
  171. color: white;
  172. font-family: 'Oswald', sans-serif;
  173. font-size: 30px;
  174. white-space: nowrap;
  175. @include apply-origin(bottom left, false);
  176. @include rotate(-90deg);
  177. display: block;
  178. bottom: 0.33em;
  179. left: em(16px) + 0.33em;
  180. overflow: visible;
  181. }
  182. &.research {
  183. background-image: url("../images/home-research-2x.png");
  184. background-position: right bottom;
  185. background-size: cover;
  186. }
  187. &.development {
  188. background-image: url("../images/home-development-2x.png");
  189. background-position: right bottom;
  190. background-size: cover;
  191. }
  192. &.writing {
  193. background-image: url("../images/home-writing-2x.png");
  194. background-position: right bottom;
  195. background-size: cover;
  196. }
  197. &.other {
  198. background-image: url("../images/home-contact-2x.png");
  199. background-position: right bottom;
  200. background-size: cover;
  201. }
  202. }
  203. }
  204. #site_footer {
  205. @include container;
  206. color: adjust-lightness($link-color, 40);
  207. line-height: 0.8*$base-line-height;
  208. .footer_body {
  209. padding-top: 46px;
  210. border-bottom: 1px solid hsl(210, 25, 50);
  211. a {
  212. color: adjust-lightness($link-color, 20);
  213. }
  214. .column {
  215. padding-top: 14px;
  216. font-size: 0.75em;
  217. &.first {
  218. @include span(first 2);
  219. }
  220. &.last {
  221. @include span(last 4);
  222. }
  223. @include breakpoint(max-width $bp-middle) {
  224. &.first {
  225. @include span(2);
  226. @include pre(gutter()/2);
  227. }
  228. &.last {
  229. @include span(last 3);
  230. @include post(gutter()/2);
  231. }
  232. }
  233. }
  234. }
  235. }