screen.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. /* ----------------------------------------------------------------
  2. Title: Master styles for screen media
  3. Author: Jordan Cooperman, jordan@vectormediagroup.com
  4. Year: 2012
  5. ----------------------------------------------------------------
  6. Oh, I didn't see you there, friend.
  7. Please have a look around, I hope you enjoy your stay.
  8. ----------------------------------------------------------------
  9. [Table of contents] - a map of our grounds.
  10. 0.General
  11. a.elements
  12. b.classes
  13. 1.Layout
  14. a.header
  15. b.content
  16. c.footer
  17. 2.Forms
  18. 3.Extensible Classes
  19. *.Pages, modules, sprites and media queries imported at end
  20. ----------------------------------------------------------------
  21. [Prefixes] - some patterns that you may observe.
  22. g: global
  23. s: state
  24. ---------------------------------------------------------------- */
  25. $blue: #0ca6ff;
  26. $dark: #1f1e1c;
  27. $gold: #ffcd58;
  28. $mustard: #e8a200;
  29. /* 0.`General
  30. ---------------------------------------------- */
  31. @import "partials/mixins";
  32. @import "partials/grid";
  33. @import "partials/type";
  34. /* a.`elements
  35. -------------------------- */
  36. h1, h2, h3, h4, h5, h6 { margin: 0; margin-bottom: $base/4; }
  37. h1 {
  38. @extend .gigantic;
  39. @extend .futura-light;
  40. }
  41. h2 {
  42. @extend .huge;
  43. }
  44. h3 {
  45. @extend .large;
  46. }
  47. h4 {
  48. @extend .big;
  49. }
  50. a {
  51. @include transition( color );
  52. color: $mustard;
  53. &:hover {
  54. color: $mustard;
  55. }
  56. }
  57. p {
  58. @extend .futura;
  59. @extend .big;
  60. margin: 0;
  61. margin-bottom: $base/2;
  62. color: #444;
  63. }
  64. img {
  65. max-width: 100%;
  66. }
  67. button {
  68. padding: $base/4 $base/2;
  69. border: 0;
  70. background: none;
  71. background-color: #333;
  72. border: 1px solid #000;
  73. color: #fff;
  74. // color: #fff;
  75. }
  76. ::-moz-selection { background: #44a1dd; color: #fff; text-shadow: none; }
  77. ::selection { background: #44a1dd; color: #fff; text-shadow: none; }
  78. /* b.`classes
  79. -------------------------- */
  80. // for asychronous typekit loading
  81. @each $element in h1, h2, h3, h4, h5, h6, p, li {
  82. .wf-loading #{$element} {
  83. opacity: 0;
  84. }
  85. #{$element} {
  86. @include transition( opacity );
  87. opacity: 1;
  88. }
  89. }
  90. /* 1.`Layout
  91. ---------------------------------------------- */
  92. html,
  93. body {
  94. height: 100%;
  95. margin: 0;
  96. }
  97. body {
  98. background-position: 20% 0;
  99. }
  100. .sidebar {
  101. @extend .grid-3;
  102. form {
  103. margin-left: $base;
  104. }
  105. }
  106. /* a.`header
  107. -------------------------- */
  108. #g-masthead {
  109. @extend .futura;
  110. background-color: #262626;
  111. .wrapper {
  112. background-color: #262626;
  113. }
  114. }
  115. #g-logo {
  116. @extend .grid-3;
  117. a {
  118. display: block;
  119. }
  120. }
  121. #g-nav-user {
  122. @extend .grid-8;
  123. padding: $base/4 $base/2 $base/2;
  124. text-align: right;
  125. @extend .small;
  126. ul {
  127. @extend .tight-line-height;
  128. }
  129. li {
  130. display: inline;
  131. &.first, &.first a {
  132. border: 0;
  133. }
  134. }
  135. a {
  136. padding: 0 $base/2;
  137. color: $gold;
  138. }
  139. }
  140. #g-nav-main {
  141. @extend .grid-5;
  142. @extend .group;
  143. ul {
  144. float: right;
  145. padding: $base/4 0;
  146. }
  147. li { @include inline-block; }
  148. a {
  149. position: relative;
  150. display: block;
  151. padding: $base/4 0;
  152. margin-left: $base;
  153. @extend .big;
  154. color: #fff;
  155. &:hover {
  156. color: $gold;
  157. }
  158. .icon {
  159. position: absolute;
  160. left: 0;
  161. }
  162. }
  163. #school_link {
  164. padding-left: $base*1.1;
  165. &:hover .icon { @extend .paperclip-active; }
  166. .icon {
  167. @extend .paperclip;
  168. top: 50%;
  169. margin-top: -10px;
  170. }
  171. }
  172. #blog_link {
  173. padding-left: $base*1.2;
  174. &:hover .icon { @extend .align-lines-active; }
  175. .icon {
  176. top: 50%;
  177. margin-top: -9px;
  178. @extend .align-lines;
  179. }
  180. }
  181. #archive_link {
  182. padding-left: $base*1.1;
  183. &:hover {
  184. .icon { @extend .book-active; }
  185. }
  186. .icon { @extend .book; }
  187. }
  188. }
  189. #g-masthead-hr {
  190. position: absolute;
  191. margin-top: 0;
  192. margin-bottom: 0;
  193. @extend .grid-8;
  194. top: 100%;
  195. height: 3px;
  196. border: 0;
  197. background-color: $gold;
  198. }
  199. /* b.`content
  200. -------------------------- */
  201. #g-page {
  202. background-color: #fff;
  203. margin-bottom: $base*2;
  204. }
  205. .page {
  206. display: none;
  207. @extend .group;
  208. margin-bottom: $base;
  209. margin-top: 3px;
  210. color: #333;
  211. }
  212. .breadcrumb {
  213. position: relative;
  214. @extend .grid-8;
  215. @extend .big;
  216. @extend .group;
  217. border-bottom: 1px solid #f8f8f8;
  218. background-color: #fafafa;
  219. a {
  220. display: block;
  221. float: left;
  222. padding: $base/4;
  223. opacity: 0.7;
  224. @include transition( opacity );
  225. .action {
  226. color: $mustard;
  227. }
  228. .location {
  229. color: #666;
  230. }
  231. &:hover {
  232. opacity: 1;
  233. }
  234. span {
  235. @include transition( color );
  236. }
  237. }
  238. .action {
  239. color: #666;
  240. }
  241. .location {
  242. @extend .futura-oblique;
  243. color: #bbb;
  244. }
  245. }
  246. $rgba-gold: rgba(255, 205, 88, 0.1);
  247. .subheader {
  248. @extend .grid-8;
  249. padding: $base*1.5 0 $base*2;
  250. margin-bottom: $base*1.5;
  251. border-top: 1px solid #f7f7f7;
  252. border-bottom: 1px solid #fbf7eb;
  253. border-bottom: 1px solid $rgba-gold;
  254. background-color: #fcfcfc;
  255. h1, h3 {
  256. margin: 0;
  257. @extend .tight-line-height;
  258. }
  259. h1 {
  260. color: #333;
  261. }
  262. h2 {
  263. @extend .futura-light;
  264. }
  265. }
  266. .main-content {
  267. @extend .grid-8;
  268. }
  269. /* c.`footer
  270. -------------------------- */
  271. #g-footer {
  272. @extend .grid-8;
  273. text-align: center;
  274. }
  275. #g-nav-footer {
  276. margin-bottom: $base/2;
  277. text-align: center;
  278. li {
  279. display: inline;
  280. text-align: center;
  281. @extend .mini;
  282. }
  283. a {
  284. padding: 0 $base/2;
  285. }
  286. }
  287. #g-footer-copyright {
  288. @extend .tiny;
  289. img {
  290. margin: 0 auto;
  291. margin-bottom: $base/2;
  292. }
  293. }
  294. .footer {
  295. color: #444;
  296. padding-top: 24px;
  297. #footer-nav {
  298. float: right;
  299. margin-right: -16px;
  300. li {
  301. display: inline-block;
  302. *display: inline;
  303. }
  304. a {
  305. @include transition(color);
  306. padding: 5px 16px;
  307. color: #999;
  308. &:hover {
  309. color: #fff;
  310. }
  311. }
  312. }
  313. p {
  314. float: right;
  315. clear: both;
  316. margin-top: 24px;
  317. }
  318. .creative_commons {
  319. .section {
  320. clear: both;
  321. float: right;
  322. }
  323. float: right;
  324. clear: both;
  325. a {
  326. color: #777;
  327. }
  328. }
  329. }
  330. /* 2.`Forms
  331. ---------------------------------------------- */
  332. input.text {
  333. padding: $base/4;
  334. background-color: #e5e5e5;
  335. border: 1px solid #ccc;
  336. &:focus {
  337. border: 1px solid #aaa;
  338. outline: 0;
  339. }
  340. }
  341. .form-header {
  342. h4 {
  343. color: $mustard;
  344. @extend .futura;
  345. }
  346. p {
  347. @extend .small;
  348. }
  349. }
  350. .form-section {
  351. margin-bottom: $base*2;
  352. }
  353. form {
  354. .row {
  355. margin-bottom: $base/2;
  356. button {
  357. margin-top: $base/2;
  358. }
  359. }
  360. }
  361. /* 3.`Extensible Classes
  362. ---------------------------------------------- */
  363. .group {
  364. &:after {
  365. content: ".";
  366. display: block;
  367. height: 0;
  368. clear: both;
  369. visibility: hidden;
  370. }
  371. }
  372. .right { float: right !important; }
  373. .left { float: left !important; }
  374. .spacer {
  375. padding-top: 16px;
  376. padding-bottom: 32px;
  377. }
  378. .half-width { width: 50%; }
  379. .centered { text-align: center;}
  380. .centered-rt-parent { margin: 0 auto;}
  381. .light {
  382. color: #444;
  383. }
  384. .info {
  385. @extend .futura-bold;
  386. color: #6bcf77;
  387. }
  388. .error {
  389. @extend .futura-bold;
  390. color: #b7300b;
  391. }
  392. @import "partials/sprites"; // A
  393. @import "partials/pages"; // B
  394. @import "partials/modules"; // C
  395. @import "partials/mixins"; // C
  396. @import "partials/media"; // D