screen.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. /*
  2. Title: Master styles for screen media
  3. Author: Jordan Cooperman, jordan@vectormediagroup.com
  4. Year: 2011
  5. Welcome, thou wanderer of the interwebs!
  6. If you have any questions, Don't be shy. Send me a line!
  7. ================================================================
  8. ----------------------------------------------------------------
  9. [Table of contents]
  10. 0.General
  11. 1.Layout
  12. 2.Navigation
  13. 3.Header
  14. 4.Footer
  15. 5.Pages
  16. i.
  17. 6.Modules
  18. 7.Forms
  19. 8.Sprites
  20. *.User Defined
  21. ----------------------------------------------------------------*/
  22. $gold: #f2b83b;
  23. $blue: #367da9;
  24. $dark-blue: #16567e;
  25. $green: #78b343;
  26. $dark-green: #4f901b;
  27. @import "includes/mixins.scss";
  28. @import "includes/grid.scss";
  29. @import "includes/type.scss";
  30. /*
  31. * media queries included
  32. * at end of document
  33. */
  34. /* 0.`general
  35. ============================================== */
  36. ::-moz-selection { background: #44a1dd; color: #fff; text-shadow: none; }
  37. ::selection { background: #44a1dd; color: #fff; text-shadow: none; }
  38. hr {
  39. &.stripes {
  40. margin: 0;
  41. height: 16px;
  42. clear: both;
  43. border-top: 1px solid #e5e5e5;
  44. border-bottom: 1px solid #fff;
  45. background-image: url("../img/bg-stripes.png");
  46. background-repeat: repeat;
  47. background-color: #fff;
  48. }
  49. &.spacer {
  50. padding: 0;
  51. margin : 10px 0 30px 0;
  52. }
  53. &.heading {
  54. margin-bottom: 16px;
  55. }
  56. &.bordered {
  57. border-bottom: 2px solid $gold;
  58. }
  59. }
  60. button {
  61. @include rounded;
  62. padding: 8px 24px;
  63. border: 0;
  64. background-image: url("../img/button-bg.png");
  65. background-repeat: repeat-x;
  66. background-position: left bottom;
  67. &.blue {
  68. background-color: $blue;
  69. border: 1px solid $dark-blue;
  70. color: #fff;
  71. }
  72. &.green {
  73. background-color: $green;
  74. border: 1px solid $dark-green;
  75. color: #fff;
  76. }
  77. &.three-dim.blue {
  78. @include drop-shadow(2px, 2px, 0, $dark-blue);
  79. }
  80. &.three-dim.green {
  81. @include drop-shadow(2px, 2px, 0, $dark-green);
  82. }
  83. }
  84. h3.heading {
  85. margin-bottom: 16px;
  86. padding-left: 12px;
  87. }
  88. em {
  89. font-family: "Georgia", "serif";
  90. }
  91. /* 1.`layout
  92. ============================================== */
  93. html,
  94. body {
  95. height : 100%;
  96. margin: 0;
  97. }
  98. body {
  99. background-image: url("../img/bg-black-noise.gif");
  100. background-repeat: repeat;
  101. }
  102. .header {
  103. @include drop-shadow(0, 1px, 1px, #888);
  104. border-top: 1px solid $gold;
  105. position: relative;
  106. z-index: 10;
  107. border-bottom: 2px solid #333;
  108. .container-#{$cols} {
  109. > div {
  110. margin-top: 0;
  111. margin-bottom: 0;
  112. }
  113. }
  114. }
  115. .content { background-color: #fff; }
  116. /* 2.`navigation
  117. ============================================== */
  118. #user-nav {
  119. @include rounded-side("left", "bottom");
  120. @include rounded-side("right", "bottom");
  121. float: right;
  122. background-color: $gold;
  123. li {
  124. display: inline-block;
  125. vertical-align: middle;
  126. float: none;
  127. padding: 3px 12px;
  128. color: #fff;
  129. a {
  130. display: block;
  131. color: #fff;
  132. }
  133. }
  134. }
  135. #main-nav {
  136. @include group;
  137. clear: both;
  138. ul {
  139. float: right;
  140. }
  141. li {
  142. display: inline-block;
  143. vertical-align: middle;
  144. float: none;
  145. a {
  146. @include transition(color);
  147. display: block;
  148. padding: 10px;
  149. padding-left: 20px;
  150. text-transform: uppercase;
  151. color: #aaa;
  152. &.active {
  153. position: relative;
  154. color: #fff;
  155. em {
  156. position: absolute;
  157. left: 0;
  158. top: 50%;
  159. margin-top: -8px;
  160. background-position: 0 0;
  161. width: 14px;
  162. height: 14px;
  163. background-repeat: no-repeat;
  164. }
  165. }
  166. em {
  167. text-transform: none;
  168. }
  169. &:hover {
  170. color: #eee;
  171. }
  172. }
  173. }
  174. }
  175. /* 3.`header
  176. ============================================== */
  177. #logo {
  178. float: left;
  179. padding: 5px;
  180. margin-left: 10px;
  181. margin-top: 5px;
  182. }
  183. #header {
  184. margin-top: 20px;
  185. }
  186. .highlight {
  187. background-image: url("../img/logo-bg.png");
  188. background-position: left bottom;
  189. background-repeat: no-repeat;
  190. }
  191. /* 4.`footer
  192. ============================================== */
  193. .footer {
  194. color: #444;
  195. padding-top: 24px;
  196. #footer-nav {
  197. float: right;
  198. margin-right: -16px;
  199. li {
  200. display: inline-block;
  201. *display: inline;
  202. }
  203. a {
  204. @include transition(color);
  205. padding: 5px 16px;
  206. color: #999;
  207. &:hover {
  208. color: #fff;
  209. }
  210. }
  211. }
  212. p {
  213. float: right;
  214. clear: both;
  215. margin-top: 24px;
  216. }
  217. .creative_commons {
  218. .section {
  219. clear: both;
  220. float: right;
  221. }
  222. float: right;
  223. clear: both;
  224. a {
  225. color: #777;
  226. }
  227. }
  228. }
  229. /* 6.`modules
  230. ============================================== */
  231. .padded-loose {
  232. padding: 10px;
  233. padding-top: 0;
  234. padding-bottom: 0;
  235. }
  236. .button-set {
  237. &.vertical {
  238. button {
  239. margin-bottom: 16px;
  240. }
  241. }
  242. &.half-width-buttons {
  243. button {
  244. width: 48%;
  245. }
  246. }
  247. &.centered {
  248. text-align: center;
  249. }
  250. }
  251. .video-wrapper {
  252. @include rounded();
  253. padding: 5px;
  254. background-color: #f5f5f5;
  255. text-align: center;
  256. }
  257. .schools {
  258. ul {
  259. @include group;
  260. }
  261. li {
  262. float: left;
  263. width: 25%;
  264. height: 100px;
  265. }
  266. em {
  267. margin: 0 auto;
  268. }
  269. }
  270. /* 8.`sprites
  271. ============================================== */
  272. .icon,
  273. .sprite,
  274. .sprite-school {
  275. text-indent : -9999px;
  276. line-height : 0;
  277. font-size : 0;
  278. overflow : hidden;
  279. display : block;
  280. }
  281. .sprite { background-image : url('../img/finalsclub-sprite-images.png'); }
  282. .icon { background-image : url('../img/finalsclub-sprite-icons.png'); }
  283. .sprite-school { background-image : url("../img/finalsclub-sprite-schools.gif"); }
  284. .brown {
  285. background-position: 0 0;
  286. width: 61px;
  287. height: 72px;
  288. }
  289. .columbia {
  290. background-position: -62px 0;
  291. width: 81px;
  292. height: 61px;
  293. }
  294. .cornell {
  295. background-position: -144px 0;
  296. width: 71px;
  297. height: 72px;
  298. }
  299. .dartmouth {
  300. background-position: -216px 0;
  301. width: 56px;
  302. height: 71px;
  303. }
  304. .shield {
  305. background-position: -273px 0;
  306. width: 59px;
  307. height: 60px;
  308. }
  309. .mit {
  310. background-position: -333px 0;
  311. width: 79px;
  312. height: 41px;
  313. }
  314. .lock_haven {
  315. background-position: -413px 0;
  316. width: 61px;
  317. height: 68px;
  318. }
  319. .cal {
  320. background-position: -475px 0;
  321. width: 91px;
  322. height: 72px;
  323. }
  324. .texas {
  325. background-position: -567px 0;
  326. width: 54px;
  327. height:68px;
  328. }
  329. .yale {
  330. background-position: -622px 0;
  331. width: 51px;
  332. height: 50px;
  333. }
  334. .penn {
  335. background-position: -674px 0;
  336. width: 115px;
  337. height:65px;
  338. }
  339. .harvard {
  340. background-position: -790px 0;
  341. width: 67px;
  342. height: 65px;
  343. }
  344. /* media queries */
  345. @import "includes/media.scss";
  346. /* *.`user defined
  347. ============================================== */
  348. .right { float: right !important;}
  349. .no-top-margin { margin-top: 0; }
  350. .spacer {
  351. padding-top: 16px;
  352. padding-bottom: 32px;
  353. }
  354. .yellow { color: $gold; }
  355. .half-width { width: 50%; }
  356. .centered { text-align: center;}
  357. .centered-rt-parent { margin: 0 auto;}