screen.scss 6.9 KB

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