homepage.less 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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: @header-height;
  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 / 2;
  108. }
  109. .input-lg {
  110. border-radius: 9999px;
  111. }
  112. }
  113. .hp-register-password-error {
  114. margin-bottom: 9px;
  115. }
  116. .register-banner__password-error {
  117. padding: 5px 9px;
  118. border: none;
  119. border-radius: @btn-border-radius-base;
  120. }
  121. .screenshot {
  122. height: 600px;
  123. margin: auto;
  124. margin-bottom: -50px;
  125. overflow-y: hidden;
  126. box-shadow: 0 0 50px rgba(0, 0, 0, 0.67);
  127. max-width: 960px;
  128. .img {
  129. max-width: 960px;
  130. background-image: url('../../../public/img/homepage.png');
  131. background-size: 100%;
  132. background-repeat: no-repeat;
  133. margin: auto;
  134. height: 672px;
  135. }
  136. @media only screen and (-webkit-min-device-pixel-ratio: 2),
  137. only screen and (min--moz-device-pixel-ratio: 2),
  138. only screen and (-o-min-device-pixel-ratio: 2/1),
  139. only screen and (min-device-pixel-ratio: 2),
  140. only screen and (min-resolution: 192dpi),
  141. only screen and (min-resolution: 2dppx) {
  142. .img {
  143. background-image: url('../../../public/img/homepage@2x.png');
  144. }
  145. }
  146. }
  147. }
  148. .hp-register-external-separator {
  149. margin: 0 0 (@register-v-spacing / 2);
  150. color: #fff;
  151. }
  152. .hp-register-external-separator-or {
  153. vertical-align: middle;
  154. &::before,
  155. &::after {
  156. content: '';
  157. display: inline-block;
  158. vertical-align: middle;
  159. width: 5em;
  160. height: 1px;
  161. background-color: rgba(255, 255, 255, 0.3);
  162. }
  163. &::before {
  164. margin-right: 1.25em;
  165. }
  166. &::after {
  167. margin-left: 1.25em;
  168. }
  169. }
  170. .hp-register-newsletter-checkbox {
  171. font-size: 90%;
  172. & > .checkbox-newsletter {
  173. text-align: left;
  174. @media only screen and (min-width: @screen-sm-min) {
  175. text-align: center;
  176. }
  177. }
  178. }
  179. .hp-login-btn {
  180. .login-btn;
  181. min-width: 220px;
  182. background-color: @ol-blue-gray-3;
  183. &:hover,
  184. &:focus,
  185. &:active {
  186. background-color: darken(@ol-blue-gray-3, 8%);
  187. }
  188. }
  189. .hp-login-btn-large {
  190. .hp-login-btn;
  191. min-width: 256px;
  192. padding-left: 30px;
  193. font-size: 20px;
  194. }
  195. .hp-login-btn-icon-large {
  196. .login-btn-icon;
  197. width: 32px;
  198. height: 32px;
  199. }
  200. .hp-register-form-email-pwd {
  201. position: relative;
  202. }
  203. .hp-register-form-email-pwd-btn-container.form-group {
  204. display: block;
  205. margin-top: (@register-v-spacing / 2);
  206. @media only screen and (min-width: @screen-md-min) {
  207. position: absolute;
  208. display: inline-block;
  209. height: 100%;
  210. top: -(@register-v-spacing / 2);
  211. & > .btn-hero {
  212. height: 100%;
  213. }
  214. }
  215. }
  216. .sign-up-home-page {
  217. display: flex;
  218. justify-content: space-evenly;
  219. align-items: center;
  220. }
  221. .sign-up-btn {
  222. display: flex;
  223. align-items: center;
  224. }
  225. .universities-container {
  226. border-bottom: 1px solid @gray-lighter;
  227. }
  228. .universities {
  229. text-align: center;
  230. .uni-logo {
  231. display: inline-block;
  232. padding: 0 @padding-md;
  233. width: 20%;
  234. }
  235. }
  236. .pattern-container {
  237. background: url('../../../public/img/pattern-home.png') repeat #f1f1f1;
  238. border-top: 1px solid @gray-lightest;
  239. border-bottom: 1px solid @gray-lightest;
  240. }
  241. .pattern-grid {
  242. background: url('../../../public/img/grid.png') repeat @content-alt-bg-color;
  243. border-top: 1px solid @gray-lighter;
  244. border-bottom: 1px solid @gray-lighter;
  245. }
  246. .real-time-example {
  247. .cursor {
  248. background-color: hsl(200, 70%, 70%);
  249. display: inline-block;
  250. width: 2px;
  251. color: transparent;
  252. line-height: 1.4;
  253. position: relative;
  254. &:after {
  255. content: 'Joe';
  256. top: 22px;
  257. right: 0;
  258. position: absolute;
  259. display: block;
  260. background-color: hsl(200, 70%, 70%);
  261. padding: (@line-height-computed / 4) (@line-height-computed / 2);
  262. font-size: 0.8rem;
  263. z-index: 100;
  264. font-family: @font-family-sans-serif;
  265. color: white;
  266. font-weight: 700;
  267. }
  268. }
  269. }
  270. .track-changes-example {
  271. .removed,
  272. .added {
  273. color: #333;
  274. margin: 0 -1px;
  275. padding: 0 3px;
  276. }
  277. .added {
  278. background-color: hsl(200, 70%, 80%);
  279. }
  280. .removed {
  281. background-color: hsl(200, 70%, 95%);
  282. position: relative;
  283. &:after {
  284. content: ' ';
  285. position: absolute;
  286. top: 50%;
  287. left: 0;
  288. right: 0;
  289. border-top: 1px solid hsl(200, 70%, 40%);
  290. }
  291. }
  292. }
  293. .real-time-example-code {
  294. border-radius: 3px;
  295. border-left: 42px solid @gray-lighter;
  296. background-color: white;
  297. padding: 12px;
  298. font-family: @font-family-monospace;
  299. .highlight {
  300. color: @blue;
  301. }
  302. box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  303. }
  304. @media only screen and (max-width: @screen-sm-max) {
  305. .doc-history-example {
  306. margin-bottom: @margin-md;
  307. }
  308. .universities {
  309. .uni-logo {
  310. padding: @padding-md;
  311. width: 50%;
  312. }
  313. }
  314. }