screen.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  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. blockquote {
  170. padding: gutter() $base-line-height;
  171. font-style: italic;
  172. i, em {
  173. font-style: normal;
  174. }
  175. }
  176. }
  177. figure {
  178. position: relative;
  179. margin-top: $base-line-height/2;
  180. margin-bottom: $base-line-height/2;
  181. img {
  182. @include border-radius($corner-radius);
  183. width: 100%;
  184. display: block;
  185. }
  186. figcaption {
  187. position: absolute;
  188. width: 100%;
  189. bottom: 0;
  190. font-size: 0.75em;
  191. color: #fff;
  192. line-height: $base-line-height;
  193. background: rgba(0, 0, 0, 0.5);
  194. padding: 0 0 0.2em 0;
  195. @include border-radius(0 0 $corner-radius $corner-radius);
  196. a {
  197. color: #fff;
  198. text-decoration: underline;
  199. }
  200. span {
  201. padding: 0 1em;
  202. &:before {
  203. content: '\203A ';
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. }
  211. }
  212. .home.page {
  213. #bold_title {
  214. h1 {
  215. text-align: center;
  216. @include span(6);
  217. .hi {
  218. font-size: 0.667em;
  219. vertical-align: super;
  220. margin-right: 0.25em;
  221. }
  222. }
  223. @include breakpoint(max-width $bp-small) {
  224. h1 {
  225. font-size: 3em;
  226. top: 0.35em;
  227. }
  228. .tagline span {
  229. background: red;
  230. font-size: 0.75em;
  231. }
  232. }
  233. }
  234. }
  235. #content_box {
  236. background: white;
  237. position: relative;
  238. #main_menu {
  239. background: black;
  240. @include container;
  241. overflow: hidden;
  242. ul {
  243. position: absolute;
  244. bottom: -42px;
  245. text-align: center;
  246. @include nowrap();
  247. overflow-x: auto;
  248. overflow-y: hidden;
  249. -webkit-overflow-scrolling: touch;
  250. li {
  251. padding: 10px 15px 5px 0;
  252. display: inline-block;
  253. }
  254. a {
  255. color: white;
  256. font-family: "Oswald", sans-serif;
  257. font-weight: normal;
  258. }
  259. @include breakpoint(max-width $bp-middle) {
  260. @include span(full split);
  261. background: url('../images/hscroller-01.png') bottom center no-repeat;
  262. background-size: auto 100%;
  263. }
  264. }
  265. }
  266. }
  267. #inner_box {
  268. @include container;
  269. }
  270. .home.page {
  271. #inner_box {
  272. padding-bottom: 0;
  273. }
  274. h2 {
  275. line-height: 80px;
  276. text-align: center;
  277. font-size: 2em;
  278. font-family: 'Oswald', sans-serif;
  279. }
  280. .work.column {
  281. width: 25%;
  282. height: 300px;
  283. float: left;
  284. display: block;
  285. padding: 0;
  286. margin: 0;
  287. position: relative;
  288. vertical-align:bottom;
  289. background: gray;
  290. span {
  291. position: absolute;
  292. color: white;
  293. font-family: 'Oswald', sans-serif;
  294. font-size: 30px;
  295. white-space: nowrap;
  296. @include apply-origin(bottom left, false);
  297. @include rotate(-90deg);
  298. display: block;
  299. bottom: 0.33em;
  300. left: em(16px) + 0.33em;
  301. overflow: visible;
  302. }
  303. &.research {
  304. background-image: url("../images/home-research-2x.png");
  305. background-position: right bottom;
  306. background-size: cover;
  307. }
  308. &.development {
  309. background-image: url("../images/home-development-2x.png");
  310. background-position: right bottom;
  311. background-size: cover;
  312. }
  313. &.writing {
  314. background-image: url("../images/home-writing-2x.png");
  315. background-position: right bottom;
  316. background-size: cover;
  317. }
  318. &.other {
  319. background-image: url("../images/home-contact-2x.png");
  320. background-position: right bottom;
  321. background-size: cover;
  322. }
  323. }
  324. }
  325. #site_footer {
  326. @include container;
  327. color: adjust-lightness($link-color, 40);
  328. line-height: 0.8*$base-line-height;
  329. .footer_body {
  330. padding-top: 46px;
  331. border-bottom: 1px solid hsl(210, 25, 50);
  332. a {
  333. color: adjust-lightness($link-color, 20);
  334. }
  335. .column {
  336. padding-top: 14px;
  337. font-size: 0.75em;
  338. &.first {
  339. @include span(first 1);
  340. }
  341. &.second {
  342. @include span(1);
  343. }
  344. &.last {
  345. @include span(last 4);
  346. }
  347. @include breakpoint(max-width $bp-middle) {
  348. &.first {
  349. @include span(2);
  350. @include pre(gutter()/2);
  351. }
  352. &.last {
  353. @include span(last 3);
  354. @include post(gutter()/2);
  355. }
  356. }
  357. }
  358. }
  359. }
  360. @import "_contact";
  361. @import "_development";
  362. @import "_cv";