screen.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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: "Roboto", 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-middle) {
  27. height: 120px;
  28. }
  29. @include breakpoint(max-width $bp-tiny) {
  30. height: 80px;
  31. }
  32. }
  33. #bold_title {
  34. color: white;
  35. @include container;
  36. position: relative;
  37. font-family: 'Oswald', sans-serif;
  38. font-weight: normal;
  39. h1 {
  40. position: absolute;
  41. }
  42. .tagline {
  43. position: absolute;
  44. }
  45. }
  46. .home.page {
  47. #bold_title {
  48. h1 { position: relative; }
  49. h1 .hi {
  50. position: absolute;
  51. top: 25px;
  52. left: 4.2em;
  53. font-size: em(32px);
  54. @include breakpoint(max-width $bp-tiny) {
  55. top: 10px;
  56. left: 2em;
  57. font-size: em(30px);
  58. }
  59. }
  60. h1 .name {
  61. position: absolute;
  62. top: 60px;
  63. left: 2em;
  64. font-size: em(54px);
  65. @include breakpoint(max-width $bp-tiny) {
  66. top: 37px;
  67. left: 1em;
  68. font-size: em(36px);
  69. }
  70. }
  71. }
  72. }
  73. #content_box {
  74. background: white;
  75. position: relative;
  76. #main_menu {
  77. background: black;
  78. font-size: em(14px);
  79. @include container;
  80. @include breakpoint(min-width $bp-tiny) {
  81. font-size: em(16px);
  82. }
  83. ul {
  84. position: absolute;
  85. bottom: -40px;
  86. @include pre(gutter());
  87. @include breakpoint(min-width $bp-tiny) {
  88. bottom: -50px;
  89. @include pre(0);
  90. }
  91. li {
  92. padding: 10px 15px 5px 0px;
  93. float: left;
  94. @include breakpoint(min-width $bp-tiny) {
  95. padding: 10px 30px 10px 0px;
  96. }
  97. }
  98. a {
  99. color: white;
  100. font-family: "Oswald", sans-serif;
  101. font-weight: normal;
  102. }
  103. }
  104. }
  105. }
  106. #inner_box {
  107. @include container;
  108. padding-bottom: 50px;
  109. }
  110. .home.page {
  111. h2 {
  112. line-height: 80px;
  113. text-align: center;
  114. font-size: em(30px);
  115. font-family: 'Oswald', sans-serif;
  116. @include breakpoint(min-width $bp-tiny) {
  117. font-size: em(36px);
  118. line-height: 100px;
  119. }
  120. }
  121. .work.column {
  122. width: 25%;
  123. height: 240px;
  124. float: left;
  125. display: block;
  126. padding: 0;
  127. margin: 0;
  128. position: relative;
  129. vertical-align:bottom;
  130. background: gray;
  131. span {
  132. position: absolute;
  133. color: white;
  134. font-family: 'Oswald', sans-serif;
  135. font-size: 30px;
  136. white-space: nowrap;
  137. @include apply-origin(bottom left, false);
  138. @include rotate(-90deg);
  139. display: block;
  140. bottom: 0.33em;
  141. left: em(16px) + 0.33em;
  142. overflow: visible;
  143. }
  144. @include breakpoint(min-width $bp-tiny) {
  145. height: 300px;
  146. span {
  147. font-size: 36px;
  148. }
  149. }
  150. &.research {
  151. background-image: url("../images/home-research-2x.png");
  152. background-position: right bottom;
  153. background-size: cover;
  154. }
  155. &.development {
  156. background-image: url("../images/home-development-2x.png");
  157. background-position: right bottom;
  158. background-size: cover;
  159. }
  160. &.writing {
  161. background-image: url("../images/home-writing-2x.png");
  162. background-position: right bottom;
  163. background-size: cover;
  164. }
  165. &.other {
  166. background-image: url("../images/home-contact-2x.png");
  167. background-position: right bottom;
  168. background-size: cover;
  169. }
  170. }
  171. }
  172. #site_footer {
  173. @include container;
  174. color: adjust-lightness($link-color, 40);
  175. line-height: 0.8*$base-line-height;
  176. .footer_body {
  177. padding-top: 40px;
  178. border-bottom: 1px solid hsl(210, 25, 50);
  179. @include breakpoint(min-width $bp-tiny) {
  180. margin-top: 10px;
  181. }
  182. a {
  183. color: adjust-lightness($link-color, 20);
  184. }
  185. .column {
  186. padding-top: 14px;
  187. @include pre(gutter());
  188. font-size: em(12px);
  189. @include span(5);
  190. @include breakpoint(min-width $bp-tiny) {
  191. @include pre(0);
  192. &.first {
  193. padding-left: 0;
  194. @include span(first 2);
  195. }
  196. &.second {
  197. @include span(last 4);
  198. }
  199. }
  200. }
  201. }
  202. }