screen.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. @import "_base";
  2. @import "compass/reset";
  3. @include establish-baseline;
  4. div, section, nav, article, header, footer {
  5. }
  6. body {
  7. background: black;
  8. @include text-size-adjust(none);
  9. font-family: "Open Sans", sans-serif;
  10. }
  11. a {
  12. text-decoration: none;
  13. color: $link-color;
  14. }
  15. strong {
  16. font-weight: bold;
  17. }
  18. em {
  19. font-style: italic;
  20. }
  21. @import "cookie";
  22. #top_banner {
  23. background-repeat: no-repeat ! important;
  24. background-position: center center ! important;
  25. @include background-size(cover !important);
  26. height: 120px;
  27. background: black;
  28. @include breakpoint(max-width $bp-small) {
  29. height: 80px;
  30. }
  31. }
  32. #bold_title {
  33. color: white;
  34. @include container;
  35. position: relative;
  36. font-family: 'Oswald', sans-serif;
  37. font-weight: normal;
  38. @include single-text-shadow(black, 0px, 0px, 3px);
  39. h1 {
  40. font-size: 3em;
  41. text-align: right;
  42. position: relative;
  43. top: 0.75em;
  44. @include span(3 first);
  45. @include nowrap();
  46. }
  47. .tagline {
  48. font-size: 1.5em;
  49. text-align: left;
  50. @include span(3 last);
  51. span {
  52. position: absolute;
  53. margin-left: -1*span(2);
  54. top: 3em;
  55. }
  56. }
  57. @include breakpoint(max-width $bp-small) {
  58. h1 {
  59. font-size: 2em;
  60. top: 0.5em;
  61. @include span(5 split);
  62. }
  63. .tagline span {
  64. font-size: 0.75em;
  65. top: 2.5em;
  66. }
  67. }
  68. }
  69. .page {
  70. #content_box {
  71. #inner_box {
  72. @include container;
  73. article {
  74. @include span(full);
  75. padding-top: 2*$base-line-height;
  76. &.bottom_padding {
  77. padding-bottom: 2*$base-line-height;
  78. }
  79. @include breakpoint(max-width $bp-middle) {
  80. @include span(full split);
  81. }
  82. @include breakpoint(max-width $bp-small) {
  83. padding-top: $base-line-height;
  84. }
  85. header {
  86. text-align: center;
  87. h2 {
  88. font-size: 2em;
  89. font-family: "Oswald", sans-serif;
  90. line-height: 2*$base-line-height;
  91. padding-bottom: $base-line-height;
  92. @include breakpoint(max-width $bp-small) {
  93. font-size: 1.5em;
  94. padding-bottom: 0;
  95. }
  96. }
  97. }
  98. h2 {
  99. font-family: "Oswald", sans-serif;
  100. font-size: 1.5em;
  101. line-height: 2*$base-line-height;
  102. }
  103. h3 {
  104. @extend h2;
  105. font-size: 1.25em;
  106. strong {
  107. text-transform: uppercase;
  108. }
  109. }
  110. ul {
  111. padding-left: 1em;
  112. margin: $base-line-height/2 0;
  113. &.nomargin {
  114. margin: 0;
  115. }
  116. li {
  117. text-indent: -0.7em;
  118. }
  119. li:before {
  120. content: '• ';
  121. width: 1em;
  122. }
  123. &.nobullets {
  124. padding-left: 0;
  125. li {
  126. text-indent: 0;
  127. }
  128. li:before {
  129. content: '';
  130. width: 0;
  131. }
  132. }
  133. }
  134. p.calltoaction {
  135. text-align: center;
  136. display: block;
  137. margin: $base-line-height/2 0;
  138. padding: $base-line-height/2 0;
  139. background-color: hsl(210, 88, 95);
  140. font-size: 1.5em;
  141. font-family: "Oswald", sans-serif;
  142. a {
  143. }
  144. }
  145. section {
  146. &.full {
  147. @include span(full);
  148. &.hr {
  149. height: 1px;
  150. padding: 0;
  151. margin: $base-line-height*0.73 0 $base-line-height*0.25 0;
  152. background: hsl(0,0,80);
  153. }
  154. }
  155. &.left {
  156. @include span(first 3);
  157. @include breakpoint(max-width $bp-small) {
  158. @include span(full);
  159. }
  160. }
  161. &.right {
  162. @include span(last 3);
  163. @include breakpoint(max-width $bp-small) {
  164. @include span(full);
  165. }
  166. }
  167. &.focus {
  168. }
  169. }
  170. figure {
  171. position: relative;
  172. margin-top: $base-line-height/2;
  173. margin-bottom: $base-line-height/2;
  174. img {
  175. @include border-radius($corner-radius);
  176. width: 100%;
  177. display: block;
  178. }
  179. figcaption {
  180. position: absolute;
  181. width: 100%;
  182. bottom: 0;
  183. font-size: 0.75em;
  184. color: #fff;
  185. line-height: $base-line-height;
  186. background: rgba(0, 0, 0, 0.5);
  187. padding: 0 0 0.2em 0;
  188. @include border-radius(0 0 $corner-radius $corner-radius);
  189. a {
  190. color: #fff;
  191. text-decoration: underline;
  192. }
  193. span {
  194. padding: 0 1em;
  195. &:before {
  196. content: '\203A ';
  197. }
  198. }
  199. }
  200. }
  201. }
  202. }
  203. }
  204. }
  205. .home.page {
  206. #bold_title {
  207. h1 {
  208. text-align: center;
  209. @include span(6);
  210. .hi {
  211. font-size: 0.667em;
  212. vertical-align: super;
  213. margin-right: 0.25em;
  214. }
  215. }
  216. @include breakpoint(max-width $bp-small) {
  217. h1 {
  218. font-size: 3em;
  219. top: 0.35em;
  220. }
  221. .tagline span {
  222. background: red;
  223. font-size: 0.75em;
  224. }
  225. }
  226. }
  227. }
  228. #content_box {
  229. background: white;
  230. position: relative;
  231. #main_menu {
  232. background: black;
  233. @include container;
  234. overflow: hidden;
  235. ul {
  236. position: absolute;
  237. bottom: -42px;
  238. text-align: center;
  239. @include nowrap();
  240. overflow-x: auto;
  241. overflow-y: hidden;
  242. -webkit-overflow-scrolling: touch;
  243. li {
  244. padding: 10px 15px 5px 0;
  245. display: inline-block;
  246. }
  247. a {
  248. color: white;
  249. font-family: "Oswald", sans-serif;
  250. font-weight: normal;
  251. }
  252. @include breakpoint(max-width $bp-middle) {
  253. @include span(full split);
  254. background: url('../images/hscroller-01.png') bottom center no-repeat;
  255. background-size: auto 100%;
  256. }
  257. }
  258. }
  259. }
  260. #inner_box {
  261. @include container;
  262. }
  263. .home.page {
  264. #inner_box {
  265. padding-bottom: 0;
  266. }
  267. h2 {
  268. line-height: 80px;
  269. text-align: center;
  270. font-size: 2em;
  271. font-family: 'Oswald', sans-serif;
  272. }
  273. .work.column {
  274. width: 25%;
  275. height: 300px;
  276. float: left;
  277. display: block;
  278. padding: 0;
  279. margin: 0;
  280. position: relative;
  281. vertical-align:bottom;
  282. background: gray;
  283. span {
  284. position: absolute;
  285. color: white;
  286. font-family: 'Oswald', sans-serif;
  287. font-size: 30px;
  288. white-space: nowrap;
  289. @include apply-origin(bottom left, false);
  290. @include rotate(-90deg);
  291. display: block;
  292. bottom: 0.33em;
  293. left: em(16px) + 0.33em;
  294. overflow: visible;
  295. }
  296. &.research {
  297. background-image: url("../images/home-research-2x.png");
  298. background-position: right bottom;
  299. background-size: cover;
  300. }
  301. &.development {
  302. background-image: url("../images/home-development-2x.png");
  303. background-position: right bottom;
  304. background-size: cover;
  305. }
  306. &.writing {
  307. background-image: url("../images/home-writing-2x.png");
  308. background-position: right bottom;
  309. background-size: cover;
  310. }
  311. &.other {
  312. background-image: url("../images/home-contact-2x.png");
  313. background-position: right bottom;
  314. background-size: cover;
  315. }
  316. }
  317. }
  318. #site_footer {
  319. @include container;
  320. color: adjust-lightness($link-color, 40);
  321. line-height: 0.8*$base-line-height;
  322. .footer_body {
  323. padding-top: 46px;
  324. border-bottom: 1px solid hsl(210, 25, 50);
  325. a {
  326. color: adjust-lightness($link-color, 20);
  327. }
  328. .column {
  329. padding-top: 14px;
  330. font-size: 0.75em;
  331. &.first {
  332. @include span(first 1);
  333. }
  334. &.second {
  335. @include span(1);
  336. }
  337. &.last {
  338. @include span(last 4);
  339. }
  340. @include breakpoint(max-width $bp-middle) {
  341. &.first {
  342. @include span(2);
  343. @include pre(gutter()/2);
  344. }
  345. &.last {
  346. @include span(last 3);
  347. @include post(gutter()/2);
  348. }
  349. }
  350. }
  351. }
  352. }
  353. @import "_contact";
  354. @import "_development";
  355. @import "_cv";