homepage.less 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. @register-v-spacing: 20px;
  2. .deprecated-sl-masthead {
  3. display: inline-block;
  4. margin-top: @header-height;
  5. width: 100%;
  6. text-align: center;
  7. h1 {
  8. font-size: 3.3rem;
  9. line-height: 5rem;
  10. margin-bottom: 0;
  11. margin-top: @line-height-computed;
  12. }
  13. .img {
  14. max-width: 420px;
  15. background-image: url('../../../public/img/ol_plus_sl.png');
  16. background-size: 100%;
  17. background-repeat: no-repeat;
  18. margin: 20px auto 0;
  19. height: 197px;
  20. }
  21. }
  22. .deprecated-sl-login-buttons {
  23. margin: 35px 0;
  24. }
  25. .deprecated-sl-msg {
  26. width: 80%;
  27. margin: 35px auto 0;
  28. }
  29. .deprecated-sl-long-cta {
  30. padding-top: 12.5px;
  31. padding-bottom: 93px;
  32. .card {
  33. margin-top: 12.5px;
  34. min-height: 397px;
  35. }
  36. h3 {
  37. margin-top: 0;
  38. }
  39. }
  40. .masthead {
  41. background-image: -webkit-linear-gradient(
  42. to left,
  43. rgba(79, 156, 69, 1),
  44. rgba(28, 91, 38, 1)
  45. );
  46. background-image: linear-gradient(
  47. to left,
  48. rgba(79, 156, 69, 1),
  49. rgba(28, 91, 38, 1)
  50. );
  51. position: relative;
  52. text-align: center;
  53. overflow: hidden;
  54. padding-top: 0px; // temporarily change from @header-height to 0px for back to school banner changes
  55. h1,
  56. p,
  57. label {
  58. color: white;
  59. text-align: center;
  60. }
  61. h1 {
  62. font-size: 4.75rem;
  63. line-height: 6.25rem;
  64. margin-bottom: 0;
  65. margin-top: @line-height-computed;
  66. text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
  67. span {
  68. font-family: @font-family-sans-serif;
  69. font-weight: 100;
  70. letter-spacing: 5px;
  71. }
  72. }
  73. p:first-of-type {
  74. font-size: @line-height-computed;
  75. font-weight: 200;
  76. margin-top: 0;
  77. text-rendering: auto;
  78. margin-bottom: @line-height-computed;
  79. }
  80. label {
  81. display: block;
  82. }
  83. .register-banner {
  84. background-image: -webkit-linear-gradient(
  85. top,
  86. rgba(0, 0, 0, 0.7),
  87. rgba(0, 0, 0, 0.9)
  88. );
  89. background-image: linear-gradient(
  90. to bottom,
  91. rgba(0, 0, 0, 0.7),
  92. rgba(0, 0, 0, 0.9)
  93. );
  94. padding: @register-v-spacing 0;
  95. position: absolute;
  96. bottom: 0;
  97. width: 100%;
  98. h2 {
  99. color: white;
  100. margin-top: 0;
  101. font-family: @font-family-sans-serif;
  102. font-weight: 500;
  103. letter-spacing: 1px;
  104. margin-bottom: @register-v-spacing;
  105. }
  106. .form-group {
  107. margin-left: @line-height-computed / 4;
  108. margin-right: @line-height-computed / 4;
  109. }
  110. .input-lg {
  111. border-radius: 9999px;
  112. }
  113. }
  114. .hp-register-password-error {
  115. margin-bottom: 9px;
  116. }
  117. .register-banner__password-error {
  118. padding: 5px 9px;
  119. border: none;
  120. border-radius: @btn-border-radius-base;
  121. }
  122. .screenshot {
  123. height: 600px;
  124. margin: auto;
  125. margin-bottom: -50px;
  126. overflow-y: hidden;
  127. box-shadow: 0 0 50px rgba(0, 0, 0, 0.67);
  128. max-width: 960px;
  129. .img {
  130. max-width: 960px;
  131. background-image: url('../../../public/img/homepage.png');
  132. background-size: 100%;
  133. background-repeat: no-repeat;
  134. margin: auto;
  135. height: 672px;
  136. }
  137. @media only screen and (-webkit-min-device-pixel-ratio: 2),
  138. only screen and (min--moz-device-pixel-ratio: 2),
  139. only screen and (-o-min-device-pixel-ratio: 2/1),
  140. only screen and (min-device-pixel-ratio: 2),
  141. only screen and (min-resolution: 192dpi),
  142. only screen and (min-resolution: 2dppx) {
  143. .img {
  144. background-image: url('../../../public/img/homepage@2x.png');
  145. }
  146. }
  147. }
  148. }
  149. .hp-register-external-separator {
  150. margin: 0 0 (@register-v-spacing / 5);
  151. color: #fff;
  152. }
  153. .hp-register-external-separator-or {
  154. vertical-align: middle;
  155. &::before,
  156. &::after {
  157. content: '';
  158. display: inline-block;
  159. vertical-align: middle;
  160. width: 5em;
  161. height: 1px;
  162. background-color: rgba(255, 255, 255, 0.3);
  163. }
  164. &::before {
  165. margin-right: 1.25em;
  166. }
  167. &::after {
  168. margin-left: 1.25em;
  169. }
  170. }
  171. .hp-register-newsletter-checkbox {
  172. font-size: 90%;
  173. & > .checkbox-newsletter {
  174. text-align: left;
  175. @media only screen and (min-width: @screen-sm-min) {
  176. text-align: center;
  177. }
  178. }
  179. }
  180. .hp-login-btn when(@is-new-css = false) {
  181. .login-btn;
  182. min-width: 220px;
  183. background-color: @ol-blue-gray-3;
  184. &:hover,
  185. &:focus,
  186. &:active {
  187. background-color: darken(@ol-blue-gray-3, 8%);
  188. }
  189. }
  190. .hp-login-btn when(@is-new-css = true) {
  191. .login-btn;
  192. min-width: 220px;
  193. }
  194. .hp-login-btn-large {
  195. .hp-login-btn;
  196. min-width: 256px;
  197. padding-left: 30px;
  198. font-size: 20px;
  199. }
  200. .hp-login-btn-icon-large {
  201. .login-btn-icon;
  202. width: 32px;
  203. height: 32px;
  204. }
  205. .hp-register-form-email-pwd {
  206. position: relative;
  207. }
  208. .hp-register-form-email-pwd-btn-container.form-group {
  209. display: block;
  210. margin-top: (@register-v-spacing / 2);
  211. @media only screen and (min-width: @screen-md-min) {
  212. position: absolute;
  213. display: inline-block;
  214. height: 100%;
  215. top: -(@register-v-spacing / 2);
  216. & > .btn-hero {
  217. height: 100%;
  218. }
  219. }
  220. }
  221. .sign-up-home-page {
  222. display: flex;
  223. justify-content: space-evenly;
  224. align-items: center;
  225. }
  226. .sign-up-btn {
  227. display: flex;
  228. align-items: center;
  229. }
  230. .universities-container {
  231. border-bottom: 1px solid @gray-lighter;
  232. }
  233. .universities {
  234. text-align: center;
  235. .uni-logo {
  236. display: inline-block;
  237. padding: 0 @padding-md;
  238. width: 20%;
  239. }
  240. }
  241. .pattern-container {
  242. background: url('../../../public/img/pattern-home.png') repeat #f1f1f1;
  243. border-top: 1px solid @gray-lightest;
  244. border-bottom: 1px solid @gray-lightest;
  245. }
  246. .pattern-grid {
  247. background: url('../../../public/img/grid.png') repeat @content-alt-bg-color;
  248. border-top: 1px solid @gray-lighter;
  249. border-bottom: 1px solid @gray-lighter;
  250. }
  251. .real-time-example {
  252. .cursor {
  253. background-color: hsl(200, 70%, 70%);
  254. display: inline-block;
  255. width: 2px;
  256. color: transparent;
  257. line-height: 1.4;
  258. position: relative;
  259. &:after {
  260. content: 'Joe';
  261. top: 22px;
  262. right: 0;
  263. position: absolute;
  264. display: block;
  265. background-color: hsl(200, 70%, 70%);
  266. padding: (@line-height-computed / 4) (@line-height-computed / 2);
  267. font-size: 0.8rem;
  268. z-index: 100;
  269. font-family: @font-family-sans-serif;
  270. color: white;
  271. font-weight: 700;
  272. }
  273. }
  274. }
  275. .track-changes-example {
  276. .removed,
  277. .added {
  278. color: #333;
  279. margin: 0 -1px;
  280. padding: 0 3px;
  281. }
  282. .added {
  283. background-color: hsl(200, 70%, 80%);
  284. }
  285. .removed {
  286. background-color: hsl(200, 70%, 95%);
  287. position: relative;
  288. &:after {
  289. content: ' ';
  290. position: absolute;
  291. top: 50%;
  292. left: 0;
  293. right: 0;
  294. border-top: 1px solid hsl(200, 70%, 40%);
  295. }
  296. }
  297. }
  298. .real-time-example-code {
  299. border-radius: 3px;
  300. border-left: 42px solid @gray-lighter;
  301. background-color: white;
  302. padding: 12px;
  303. font-family: @font-family-monospace;
  304. .highlight {
  305. color: @blue;
  306. }
  307. box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  308. }
  309. .back-to-school {
  310. .back-to-school-banner {
  311. background: @blue-10;
  312. padding: 0px 16px 0px 12px;
  313. border-radius: 4px;
  314. border: 1px solid @blue-20;
  315. color: @neutral-90;
  316. .banner-row {
  317. min-height: 56px;
  318. display: flex;
  319. justify-content: center;
  320. align-content: center;
  321. flex-wrap: wrap;
  322. }
  323. @media only screen and (max-width: @screen-sm-max) {
  324. .banner-row {
  325. min-height: 100px;
  326. }
  327. }
  328. .claim-my-discount {
  329. font-size: 14px;
  330. font-weight: 700;
  331. }
  332. p {
  333. margin: 0;
  334. }
  335. span {
  336. font-size: 14px;
  337. font-weight: 700;
  338. margin-left: 10px;
  339. }
  340. a {
  341. text-decoration: underline;
  342. white-space: nowrap;
  343. }
  344. }
  345. .navbar-default {
  346. position: relative;
  347. }
  348. }
  349. @media only screen and (max-width: @screen-sm-max) {
  350. .doc-history-example {
  351. margin-bottom: @margin-md;
  352. }
  353. .universities {
  354. .uni-logo {
  355. padding: @padding-md;
  356. width: 50%;
  357. }
  358. }
  359. }