plans-v2.less 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272
  1. // m-a stands for: monthly annual
  2. @plans-v2-top-switch-item-height: 34px;
  3. @plans-v2-top-switch-item-border-radius: @plans-v2-top-switch-item-height / 2;
  4. @plans-v2-m-a-switch-height: 34px;
  5. @plans-v2-highlighted-text-height-desktop: 30px;
  6. @plans-v2-highlighted-text-height-mobile: 41px;
  7. @plans-v2-learn-more-link-color: hsl(206, 100%, 52%);
  8. @plans-v2-top-switch-group-width-mobile: 46%;
  9. @plans-v2-discount-highlighted-text-z-index: 2;
  10. @plans-v2-table-border-radius: 20px;
  11. @plans-v2-dark-blue: #2857a1;
  12. @plans-v2-table-td-mobile-min-height: 34px;
  13. .plans {
  14. @media (max-width: @screen-xs-max) {
  15. [data-ol-current-view='group'] [data-ol-plans-v2-m-a-switch-container] {
  16. display: none;
  17. }
  18. }
  19. .btn-dark-blue {
  20. background-color: @plans-v2-dark-blue;
  21. color: @white;
  22. }
  23. }
  24. .plans-v2-top-switch ul.plans-v2-nav {
  25. display: flex;
  26. justify-content: center;
  27. li {
  28. border-top: 1px solid @ol-blue-gray-3;
  29. border-bottom: 1px solid @ol-blue-gray-3;
  30. height: @plans-v2-top-switch-item-height;
  31. &.plans-v2-top-switch-individual {
  32. border-right: 1px solid @ol-blue-gray-3;
  33. border-left: 1px solid @ol-blue-gray-3;
  34. border-top-left-radius: @plans-v2-top-switch-item-border-radius;
  35. border-bottom-left-radius: @plans-v2-top-switch-item-border-radius;
  36. }
  37. &.plans-v2-top-switch-student {
  38. border-right: 1px solid @ol-blue-gray-3;
  39. border-left: 1px solid @ol-blue-gray-3;
  40. border-top-right-radius: @plans-v2-top-switch-item-border-radius;
  41. border-bottom-right-radius: @plans-v2-top-switch-item-border-radius;
  42. }
  43. button {
  44. padding: 4px 16px;
  45. height: 100%;
  46. // remove bootstrap default
  47. &.btn:active {
  48. box-shadow: none;
  49. }
  50. // on Firefox, there will be a visible dotted border on the li element
  51. // when it's `active` / `focus`
  52. // `outline: none` rule intends to eliminate that border
  53. &:active,
  54. &:focus {
  55. outline: none;
  56. }
  57. }
  58. &.active {
  59. background-color: @ol-blue-gray-4;
  60. button.btn-default-outline {
  61. color: @white;
  62. }
  63. }
  64. &:not(.active) {
  65. background-color: @white;
  66. }
  67. }
  68. @media (max-width: @screen-xs-max) {
  69. margin: 0 13px;
  70. li {
  71. height: unset;
  72. &.plans-v2-top-switch-individual,
  73. &.plans-v2-top-switch-student {
  74. width: (100% - @plans-v2-top-switch-group-width-mobile) / 2;
  75. }
  76. &.plans-v2-top-switch-group {
  77. width: @plans-v2-top-switch-group-width-mobile;
  78. // force newline for the second span
  79. span:first-child::after {
  80. content: '';
  81. display: block;
  82. }
  83. span:last-child {
  84. font-weight: 400;
  85. }
  86. }
  87. &.plans-v2-top-switch-individual,
  88. &.plans-v2-top-switch-student {
  89. button {
  90. display: flex;
  91. align-items: center;
  92. justify-content: center;
  93. text-align: center;
  94. }
  95. }
  96. button {
  97. white-space: unset;
  98. padding: 4px 8px;
  99. font-size: 14px;
  100. width: 100%;
  101. }
  102. }
  103. }
  104. }
  105. a.btn.plans-v2-btn-header,
  106. button.plans-v2-btn-header {
  107. font-family: @font-family-sans-serif;
  108. margin-top: @margin-sm;
  109. text-shadow: 0 0 0;
  110. background-color: @ol-blue;
  111. color: @white;
  112. &:hover {
  113. color: @white;
  114. }
  115. }
  116. .plans-v2-m-a-switch-container {
  117. display: flex;
  118. align-items: center;
  119. justify-content: center;
  120. position: relative;
  121. margin-top: @margin-xl;
  122. .underline {
  123. text-decoration: underline;
  124. }
  125. &.disabled {
  126. span {
  127. color: @ol-blue-gray-2;
  128. }
  129. .plans-v2-m-a-switch {
  130. input + span {
  131. background-color: @ol-blue-gray-2;
  132. cursor: not-allowed;
  133. }
  134. }
  135. }
  136. @media (max-width: @screen-xs-max) {
  137. margin-top: 25px;
  138. &[data-ol-current-view='group'] {
  139. display: none;
  140. }
  141. }
  142. }
  143. .plans-v2-m-a-switch {
  144. position: relative;
  145. display: inline-block;
  146. width: 60px;
  147. height: @plans-v2-m-a-switch-height;
  148. margin: 0 @margin-lg;
  149. input {
  150. opacity: 0;
  151. width: 0;
  152. height: 0;
  153. }
  154. input + span {
  155. background-color: @ol-green;
  156. }
  157. input:checked + span {
  158. background-color: @ol-blue-gray-4;
  159. }
  160. input:checked + span::before {
  161. transform: translateX(26px);
  162. }
  163. span {
  164. position: absolute;
  165. cursor: pointer;
  166. top: 0;
  167. left: 0;
  168. right: 0;
  169. bottom: 0;
  170. background-color: @ol-blue-gray-1;
  171. transition: 0.4s;
  172. border-radius: @plans-v2-m-a-switch-height;
  173. &::before {
  174. position: absolute;
  175. content: '';
  176. height: 32px;
  177. width: 32px;
  178. left: 1px;
  179. bottom: 1px;
  180. background-color: @white;
  181. transition: 0.4s;
  182. border-radius: 50%;
  183. }
  184. }
  185. }
  186. .plans-v2-m-a-switch-annual-text-container {
  187. position: relative;
  188. }
  189. .plans-v2-m-a-tooltip {
  190. position: absolute;
  191. color: @white;
  192. width: auto;
  193. padding: @padding-xs @padding-sm;
  194. border-radius: 4px;
  195. right: 110%;
  196. top: 0;
  197. z-index: 0;
  198. &.tooltip.in.left {
  199. .tooltip-inner {
  200. background-color: @ol-green;
  201. }
  202. .tooltip-arrow {
  203. border-left-color: @ol-green;
  204. }
  205. }
  206. span {
  207. white-space: nowrap;
  208. }
  209. @media (max-width: @screen-xs-max) {
  210. right: -31%;
  211. top: unset;
  212. &.tooltip.in.bottom {
  213. .tooltip-inner {
  214. background-color: @ol-green;
  215. }
  216. .tooltip-arrow {
  217. border-left-color: unset;
  218. border-bottom-color: @ol-green;
  219. }
  220. }
  221. &.plans-v2-m-a-tooltip-monthly-selected {
  222. right: -119%;
  223. }
  224. span {
  225. font-size: @font-size-extra-small;
  226. position: relative;
  227. }
  228. }
  229. }
  230. .page-header.top-page-header {
  231. // remove page-header border & margin on mobile
  232. @media (max-width: @screen-xs-max) {
  233. border-bottom: none;
  234. margin-bottom: 0;
  235. padding-bottom: 0;
  236. h1 {
  237. margin-top: 0;
  238. }
  239. }
  240. }
  241. .plans-v2-table-comments-icon {
  242. height: 65px;
  243. i {
  244. font-size: 50px;
  245. }
  246. @media (max-width: @screen-xs-max) {
  247. height: 58px;
  248. }
  249. }
  250. .plans-v2-table-container {
  251. position: relative;
  252. }
  253. .plans-v2-license-picker-form {
  254. margin-top: 25px;
  255. display: flex;
  256. align-items: center;
  257. justify-content: center;
  258. width: 100%;
  259. @media (max-width: @screen-xs-max) {
  260. font-size: @font-size-small;
  261. margin-top: 15px;
  262. flex-direction: column;
  263. }
  264. }
  265. .plans-v2-license-picker-select {
  266. background-color: @white;
  267. border: 1px solid #cccccc;
  268. width: 64px;
  269. height: 30px;
  270. margin: 0 @margin-sm;
  271. padding-left: @padding-sm;
  272. @media (max-width: @screen-xs-max) {
  273. margin: 0 15px;
  274. }
  275. }
  276. .plans-v2-license-picker-educational-discount {
  277. display: flex;
  278. align-items: center;
  279. @media (max-width: @screen-xs-max) {
  280. margin-top: 15px;
  281. }
  282. }
  283. .plans-v2-license-picker-educational-discount-label {
  284. margin-bottom: 0;
  285. display: flex;
  286. align-items: center;
  287. font-weight: normal;
  288. &.disabled span {
  289. color: @ol-blue-gray-2;
  290. }
  291. }
  292. input[type='checkbox'].plans-v2-license-picker-educational-discount-checkbox {
  293. margin-top: 0;
  294. margin-right: @margin-sm;
  295. @media (max-width: @screen-xs-max) {
  296. margin-right: 25px;
  297. // scale the checkbox to around 30px width and height
  298. transform: scale(2.307);
  299. }
  300. }
  301. i.plans-v2-license-picker-educational-discount-question-icon {
  302. margin-left: @margin-xs;
  303. @media (max-width: @screen-xs-max) {
  304. display: none;
  305. }
  306. }
  307. span.plans-v2-license-picker-educational-discount-learn-more-container {
  308. display: none;
  309. @media (max-width: @screen-xs-max) {
  310. margin-left: 5px;
  311. display: inline;
  312. // this white-space is important to ensure the "learn more" text won't get separated by a newline
  313. white-space: nowrap;
  314. span.plans-v2-license-picker-educational-discount-learn-more-text {
  315. color: @plans-v2-learn-more-link-color;
  316. }
  317. .tooltip {
  318. // force white-space to have initial value since the `white-space: nowrap` rule
  319. // on .plans-v2-license-picker-educational-discount-learn-more-container selector (the current code block) above
  320. // will also affect every child inside of it, including the generated tooltip
  321. white-space: initial;
  322. }
  323. }
  324. }
  325. .plans-v2-table-individual,
  326. .plans-v2-table-student {
  327. margin-top: 40px + @plans-v2-highlighted-text-height-desktop;
  328. @media (max-width: @screen-xs-max) {
  329. margin-top: 60px + @plans-v2-highlighted-text-height-desktop;
  330. th .plans-v2-table-th-content {
  331. min-height: 280px;
  332. }
  333. }
  334. }
  335. .plans-v2-table-group,
  336. .plans-v2-table-student {
  337. tr {
  338. // "hide" the last column on desktop by making the background-color as the default background color
  339. th:last-of-type > .plans-v2-table-th {
  340. background-color: @ol-blue-gray-0;
  341. }
  342. &:last-child {
  343. td:first-child {
  344. background-color: @ol-blue-gray-0;
  345. .plans-v2-table-feature-name {
  346. border-bottom-left-radius: @plans-v2-table-border-radius;
  347. @media (max-width: @screen-xs-max) {
  348. border-bottom-left-radius: 0;
  349. }
  350. }
  351. }
  352. td:last-child {
  353. background-color: @ol-blue-gray-0;
  354. .plans-v2-table-cell {
  355. border-bottom-right-radius: @plans-v2-table-border-radius;
  356. @media (max-width: @screen-xs-max) {
  357. border-bottom-right-radius: 0;
  358. }
  359. }
  360. }
  361. }
  362. }
  363. // only make corners have round borders if the column is not highlighted
  364. th:not(.plans-v2-table-green-highlighted) {
  365. &:nth-last-child(2) .plans-v2-table-th {
  366. border-top-right-radius: @plans-v2-table-border-radius;
  367. @media (max-width: @screen-xs-max) {
  368. border-top-right-radius: 0;
  369. }
  370. }
  371. &:nth-child(2) .plans-v2-table-th {
  372. border-top-left-radius: @plans-v2-table-border-radius;
  373. @media (max-width: @screen-xs-max) {
  374. border-top-right-radius: 0;
  375. }
  376. }
  377. }
  378. @media (max-width: @screen-md-max) {
  379. tr {
  380. th:last-of-type {
  381. // Last column is only a UI placeholder for desktop view.
  382. // We need to hide it for mobile to have the full table fully visible on mobile
  383. // without any empty horizontal space.
  384. display: none;
  385. }
  386. }
  387. }
  388. @media (max-width: @screen-xs-max) {
  389. tr {
  390. &:not(.plans-v2-table-divider) {
  391. td:not(:first-of-type),
  392. th:not(:first-of-type) {
  393. // 33.33% is because table-group & table-student have 3 real column on mobile.
  394. // It actually has 5 table column, but on mobile version,
  395. // the first column become row and the last column is hidden since it is just a UI placeholder.
  396. // We need to force 33.33% width to make each of 3 columns have an equal width of 1/3 screen width.
  397. width: 33.33%;
  398. }
  399. }
  400. }
  401. }
  402. }
  403. .plans-v2-table-individual {
  404. tr {
  405. &:last-child {
  406. td:first-child {
  407. background-color: @ol-blue-gray-0;
  408. .plans-v2-table-feature-name {
  409. border-bottom-left-radius: @plans-v2-table-border-radius;
  410. @media (max-width: @screen-xs-max) {
  411. border-bottom-left-radius: 0;
  412. }
  413. }
  414. }
  415. td:last-child {
  416. background-color: @ol-blue-gray-0;
  417. .plans-v2-table-cell {
  418. border-bottom-right-radius: @plans-v2-table-border-radius;
  419. @media (max-width: @screen-xs-max) {
  420. border-bottom-right-radius: 0;
  421. }
  422. }
  423. }
  424. }
  425. &:not(.plans-v2-table-divider) td {
  426. background-color: @white;
  427. }
  428. }
  429. th {
  430. &:last-child .plans-v2-table-th {
  431. border-top-right-radius: @plans-v2-table-border-radius;
  432. @media (max-width: @screen-xs-max) {
  433. border-top-right-radius: 0;
  434. }
  435. }
  436. &:nth-child(2) .plans-v2-table-th {
  437. border-top-left-radius: @plans-v2-table-border-radius;
  438. @media (max-width: @screen-xs-max) {
  439. border-top-left-radius: 0;
  440. }
  441. }
  442. }
  443. // for remove-personal-plan split test default variant
  444. @media (max-width: @screen-xs-max) {
  445. tr.cols-4:not(.plans-v2-table-divider) {
  446. td,
  447. th:not(:first-of-type) {
  448. // 25% is because table-individual have 4 real columns on mobile
  449. // it actually has 5 table columns, but on mobile version, the first column become row
  450. // we need to force 25% width to make each of 4 columns have an equal width of 1/4 screen width
  451. width: 25%;
  452. }
  453. }
  454. // for remove-personal-plan split test personal-off variant
  455. tr.cols-3:not(.plans-v2-table-divider) {
  456. td:not(:first-of-type),
  457. th:not(:first-of-type) {
  458. // 33% is because table-individual have 3 real columns on mobile
  459. // it actually has 4 table columns, but on mobile version, the first column become row
  460. // we need to force 33% width to make each of 3 columns have an equal width of 1/3 screen width
  461. width: calc(100% / 3);
  462. }
  463. }
  464. }
  465. }
  466. .plans-v2-table-group {
  467. margin-top: 26px + @plans-v2-highlighted-text-height-desktop;
  468. p.plans-v2-table-th-content-title {
  469. // Reduce font size of table heading for screen size >= @screen-lg (1200px) from 20px to 19px
  470. // In the English version of overleaf, 20px is enough for the text to not be wrapped to the next line, the longest text is the 2nd column of group tab: "Group Professional".
  471. // In the English version, "Group Professional" won't be wrapped to two separate lines with 20px font size for big screen.
  472. // In other languages, for example, German (subdomain `de`), 20px is too big so the text is wrapped and breaks the UI. 19px is enough to fit the text on one line on the German site.
  473. // This font-size reduction is a case-to-case basis since we don't have any way to know the max length of every language unless we've translated them all.
  474. // There's probably a smarter way to do it, but probably also more complex. This change in font should be acceptable and we can revisit it every time there's a longer text.
  475. font-size: 19px;
  476. @media (max-width: @screen-md-max) {
  477. font-size: @font-size-base;
  478. }
  479. @media (max-width: @screen-xs-max) {
  480. font-size: @font-size-small;
  481. }
  482. }
  483. }
  484. .plans-v2-table {
  485. background-color: @ol-blue-gray-0;
  486. margin-bottom: 15px;
  487. table-layout: fixed;
  488. width: 100%;
  489. // We want these `div` inside `th` and `td` to have a 100% height since
  490. // white backgrounds are defined here:
  491. // 1. `td > div.plans-v2-table-cell`
  492. // 2. `th > div.plans-v2-table-th`
  493. //
  494. // To make both of them have 100% height of their respective `td` and `th`,
  495. // we need to have the `table` has an explicit `height` rule.
  496. // The value can be arbitrary, since it will be ignored by the browser
  497. //
  498. // See https://stackoverflow.com/a/56913789 for more details
  499. height: 100%;
  500. .plans-v2-table-row-header {
  501. font-weight: 500;
  502. }
  503. tr {
  504. height: 100%;
  505. }
  506. .plans-v2-table-column-header,
  507. td {
  508. background-clip: padding-box; /* needed for firefox when there is bg color */
  509. text-align: center;
  510. &:not(.plans-v2-table-cell-before-green-highlighted-column):not(.plans-v2-table-green-highlighted):not(.plans-v2-table-divider-highlighted):not(.plans-v2-table-discount-highlighted) {
  511. border-right: 1px solid @ol-blue-gray-0;
  512. @media (max-width: @screen-xs-max) {
  513. border-right: none;
  514. }
  515. }
  516. }
  517. .plans-v2-table-column-header {
  518. border-top: 0;
  519. font-family: @headings-font-family;
  520. font-size: @font-size-h2;
  521. font-weight: @headings-font-weight;
  522. line-height: @headings-line-height;
  523. vertical-align: top;
  524. padding: 0;
  525. position: relative;
  526. background-color: @ol-blue-gray-0;
  527. &:first-child {
  528. border-left: 0;
  529. }
  530. &:last-child {
  531. border-right: 0;
  532. }
  533. }
  534. td {
  535. vertical-align: middle;
  536. height: 100%;
  537. &:last-child:not(.plans-v2-table-green-highlighted):not(.plans-v2-table-divider-highlighted) {
  538. border-right: 0;
  539. }
  540. }
  541. tr {
  542. &:first-child th {
  543. // keep the position here, otherwise messes up border on safari
  544. position: relative;
  545. }
  546. // css hack for table border-radius on the first feature name
  547. &:nth-child(2) {
  548. .plans-v2-table-row-header:first-child {
  549. background-color: @ol-blue-gray-0;
  550. .plans-v2-table-feature-name {
  551. border-top-left-radius: @plans-v2-table-border-radius;
  552. @media (max-width: @screen-xs-max) {
  553. border-top-left-radius: 0;
  554. }
  555. }
  556. }
  557. }
  558. &:not(.plans-v2-table-row-last-row-per-section):not(.plans-v2-table-divider):not(:last-of-type) {
  559. th > .plans-v2-table-th > .plans-v2-table-th-content,
  560. td > .plans-v2-table-feature-name,
  561. td > .plans-v2-table-cell > .plans-v2-table-cell-content {
  562. border-bottom: 1px solid @ol-blue-gray-0;
  563. @media (max-width: @screen-xs-max) {
  564. border-bottom: unset;
  565. }
  566. }
  567. }
  568. // this will show highlghted border-bottom on the last row
  569. &:last-child td.plans-v2-table-green-highlighted {
  570. > .plans-v2-table-cell {
  571. border-bottom: 2px solid @ol-green;
  572. @media (max-width: @screen-xs-max) {
  573. border-bottom: unset;
  574. }
  575. }
  576. }
  577. &:last-child td.plans-v2-table-discount-highlighted {
  578. border-bottom: 2px solid @plans-v2-dark-blue;
  579. @media (max-width: @screen-xs-max) {
  580. border-bottom: unset;
  581. }
  582. }
  583. }
  584. .fa-check {
  585. color: @green;
  586. }
  587. @media (min-width: @screen-sm-min) {
  588. // highlight rows on hover
  589. tr:not(.plans-v2-table-divider):hover {
  590. background-color: @table-hover-bg;
  591. .plans-v2-table-feature-name,
  592. .plans-v2-table-cell {
  593. background-color: @table-hover-bg;
  594. }
  595. }
  596. }
  597. @media (max-width: @screen-sm-max) {
  598. font-size: @font-size-small;
  599. }
  600. @media (max-width: @screen-xs-max) {
  601. tr {
  602. display: flex;
  603. // for mobile, we need to show the feature name (the first column) as its own row
  604. // the flex-flow will make the whole tr overflow to a next row if
  605. // total td width combined is bigger than viewport width
  606. // so, one tr can have multiple "visible" row depending on the total width.
  607. flex-flow: row wrap;
  608. justify-content: space-around;
  609. }
  610. .plans-v2-table-column-header {
  611. font-size: 12px;
  612. }
  613. // hide the first column header
  614. tr:first-child th:first-child {
  615. display: none;
  616. }
  617. // for mobile, we need to show the feature name (the first td) as its own row
  618. // the width: 100vw rule will enhance the flex-flow on the tr by ensuring the feature name (first column of each feature row)
  619. // will have the full width of viewport,
  620. // and making the first td appear like the it is in its own row (although it's technically still on the same tr as the other tds)
  621. .plans-v2-table-row-header {
  622. background: @gray-lightest;
  623. width: 100vw;
  624. span.plans-v2-table-feature-name {
  625. width: 100%;
  626. span {
  627. text-align: left;
  628. }
  629. }
  630. }
  631. }
  632. }
  633. // plans-v2-table-cell class only appears for the inner `div` of a `td`
  634. // that doesn't contain divider or feature name
  635. // (i.e it contains either check mark icon or a dash)
  636. .plans-v2-table-cell {
  637. background-color: @white;
  638. height: 100%;
  639. .plans-v2-table-cell-content {
  640. height: 100%;
  641. display: flex;
  642. align-items: center;
  643. justify-content: center;
  644. }
  645. @media (max-width: @screen-xs-max) {
  646. .plans-v2-table-cell-content {
  647. padding: 6px;
  648. min-height: @plans-v2-table-td-mobile-min-height;
  649. }
  650. }
  651. }
  652. .plans-v2-table-th {
  653. height: 100%;
  654. background-color: @white;
  655. .plans-v2-table-th-content {
  656. display: flex;
  657. flex-direction: column;
  658. min-height: 321px;
  659. height: 100%;
  660. padding: 10px 13px;
  661. @media (max-width: @screen-md-max) {
  662. min-height: 330px;
  663. }
  664. @media (max-width: @screen-sm-max) {
  665. padding-left: @padding-xs;
  666. padding-right: @padding-xs;
  667. }
  668. }
  669. }
  670. .plans-v2-table-btn-buy-container-desktop {
  671. margin-top: auto;
  672. display: flex;
  673. flex-direction: column;
  674. min-height: 60px;
  675. @media (max-width: @screen-xs-max) {
  676. display: none;
  677. }
  678. }
  679. .plans-v2-table-btn-buy-container-mobile {
  680. display: none;
  681. @media (max-width: @screen-xs-max) {
  682. display: flex;
  683. flex-direction: column;
  684. min-height: 50px;
  685. margin-top: @padding-sm;
  686. }
  687. }
  688. .plans-v2-table-btn-buy {
  689. font-family: @font-family-sans-serif;
  690. padding: 4px 15px 5px;
  691. @media (min-width: (@screen-xs-max+1)) {
  692. .hidden-desktop {
  693. display: none;
  694. }
  695. }
  696. @media (max-width: @screen-sm-max) {
  697. font-size: @font-size-small;
  698. }
  699. @media (max-width: @screen-xs-max) {
  700. padding-left: 9px;
  701. padding-right: 9px;
  702. // truncating group plans long button text for mobile
  703. .hidden-mobile {
  704. display: none;
  705. }
  706. }
  707. }
  708. p.plans-v2-table-th-content-title {
  709. font-size: @font-size-large;
  710. padding-bottom: @padding-sm;
  711. border-bottom: 1px solid @gray-lighter;
  712. margin-bottom: @margin-lg;
  713. @media (max-width: @screen-md-max) {
  714. font-size: @font-size-base;
  715. }
  716. // `plans-v2-table-th-content-title` is visually invisible on screen size less than @screen-xs-max
  717. // because there is a sticky header (`plans-v2-table-sticky-header` class) that "replace" the content visually
  718. // (see the `@plans-v2-table-sticky-header-z-index` variable that make the sticky header element is "above" the whole table)
  719. // however, we still need to properly styling the `plans-v2-table-th-content-title` for small screen size to
  720. // fit this element to the size of the sticky header
  721. // this trick is used because th element can not have a `position: sticky` rule, at least for our use case
  722. @media (max-width: @screen-xs-max) {
  723. min-height: 40px;
  724. margin-bottom: @margin-md;
  725. font-size: @font-size-small;
  726. padding-bottom: 0;
  727. }
  728. }
  729. p.plans-v2-table-th-content-benefit,
  730. ul.plans-v2-table-th-content-benefit {
  731. padding-top: 15px;
  732. font-size: @font-size-small;
  733. font-family: @font-family-sans-serif;
  734. line-height: 23px;
  735. hyphens: auto;
  736. }
  737. ul.plans-v2-table-th-content-benefit {
  738. padding-left: 15px;
  739. text-align: left;
  740. margin-bottom: 0;
  741. li a {
  742. color: @ol-blue-gray-3;
  743. text-decoration: underline;
  744. }
  745. }
  746. // this class should only appear on the group table
  747. .plans-v2-group-total-price {
  748. font-weight: 700;
  749. }
  750. .plans-v2-table-price-container {
  751. position: relative;
  752. }
  753. p.plans-v2-table-price-period-label {
  754. margin: 0;
  755. font-size: @font-size-small;
  756. line-height: 23px;
  757. color: @ol-blue-gray-3;
  758. font-family: @font-family-sans-serif;
  759. }
  760. p.plans-v2-table-price {
  761. margin: 0;
  762. span {
  763. font-weight: 700;
  764. font-size: 32px;
  765. line-height: 42px;
  766. @media (max-width: @screen-xs-max) {
  767. line-height: 35px;
  768. font-size: @font-size-large;
  769. }
  770. }
  771. }
  772. strike.plans-v2-table-price-before-discount {
  773. position: absolute;
  774. top: -27px;
  775. font-weight: 700;
  776. font-size: @font-size-small;
  777. line-height: 42px;
  778. display: flex;
  779. justify-content: center;
  780. width: 100%;
  781. color: @ol-blue-gray-2;
  782. @media (max-width: @screen-xs-max) {
  783. font-size: @font-size-extra-small;
  784. }
  785. }
  786. small.plans-v2-table-th-content-additional-link {
  787. text-transform: lowercase;
  788. margin-top: @margin-xs;
  789. font-size: @font-size-extra-small;
  790. height: 16px;
  791. font-family: @font-family-sans-serif;
  792. a {
  793. color: @ol-blue-gray-5;
  794. text-decoration: underline;
  795. }
  796. }
  797. .plans-v2-table-feature-name {
  798. background-color: @white;
  799. display: flex;
  800. justify-content: space-between;
  801. align-items: center;
  802. padding: 6px 6px 6px 18px;
  803. i.plans-v2-table-feature-name-question-icon {
  804. margin-left: 10px;
  805. }
  806. span.plans-v2-table-feature-name-learn-more-container {
  807. display: none;
  808. }
  809. @media (max-width: @screen-xs-max) {
  810. display: inline-block;
  811. text-align: left;
  812. padding: 6px;
  813. width: 100%;
  814. background-color: @ol-blue-gray-0;
  815. min-height: @plans-v2-table-td-mobile-min-height;
  816. i.plans-v2-table-feature-name-question-icon {
  817. display: none;
  818. }
  819. span.plans-v2-table-feature-name-learn-more-container {
  820. margin-left: 5px;
  821. display: inline;
  822. // this white-space is important to ensure the "learn more" text won't get separated by a newline
  823. white-space: nowrap;
  824. span.plans-v2-table-feature-name-learn-more-text {
  825. color: @plans-v2-learn-more-link-color;
  826. }
  827. .tooltip {
  828. // force white-space to have initial value since the `white-space: nowrap` rule
  829. // on .plans-v2-table-feature-name-learn-more-container selector (the current code block) above
  830. // will also affect every child inside of it, including the generated tooltip
  831. white-space: initial;
  832. }
  833. }
  834. }
  835. }
  836. tr.plans-v2-table-divider {
  837. background-color: @ol-blue-gray-1;
  838. // direct child selector to NOT affect the generated tooltip
  839. td > div {
  840. text-align: center;
  841. padding: 6px;
  842. .plans-v2-table-divider-label {
  843. margin-bottom: 0;
  844. margin-right: 5px;
  845. }
  846. .plans-v2-table-divider-learn-more-container {
  847. display: none;
  848. }
  849. }
  850. // highlighted divider will only show if the highlighted column is on the last visible column
  851. .plans-v2-table-divider-highlighted > div {
  852. border-right: 2px solid @ol-green;
  853. }
  854. @media (max-width: @screen-xs-max) {
  855. // need the colspan attribute selector to increase specificity to override more specific css rule on another selector
  856. td[colspan] {
  857. padding-top: 0;
  858. padding-right: 0;
  859. padding-left: 0;
  860. // direct child selector to NOT affect the generated tooltip
  861. > div {
  862. background-color: @ol-blue-gray-1;
  863. padding: 15px 5px;
  864. i.plans-v2-table-divider-question-icon {
  865. display: none;
  866. }
  867. .plans-v2-table-divider-learn-more-container {
  868. display: inline;
  869. // this white-space is important to ensure the "learn more" text won't get separated by a newline
  870. white-space: nowrap;
  871. span.plans-v2-table-divider-learn-more-text {
  872. color: @plans-v2-learn-more-link-color;
  873. }
  874. // force white-space to have initial value since the `white-space: nowrap` rule
  875. // on .plans-v2-table-divider-learn-more-container selector (the current code block) above
  876. // will also affect every child inside of it, including the generated tooltip
  877. .tooltip {
  878. white-space: initial;
  879. }
  880. }
  881. }
  882. }
  883. .plans-v2-table-divider-highlighted {
  884. border-right: none;
  885. }
  886. }
  887. }
  888. // the `.plans-v2-table-green-highlighted` class below can be applied to both `th` and `td`
  889. .plans-v2-table-green-highlighted {
  890. > .plans-v2-table-cell,
  891. > .plans-v2-table-th {
  892. border-left: 2px solid @ol-green;
  893. border-right: 2px solid @ol-green;
  894. @media (max-width: @screen-xs-max) {
  895. border-left: unset;
  896. border-right: unset;
  897. }
  898. }
  899. }
  900. p.plans-v2-table-green-highlighted-text {
  901. border: 2px solid @ol-green;
  902. position: absolute;
  903. top: -1 * @plans-v2-highlighted-text-height-desktop;
  904. left: 0;
  905. display: flex;
  906. justify-content: center;
  907. align-items: center;
  908. width: 100%;
  909. font-family: @font-family-sans-serif;
  910. font-size: @font-size-small;
  911. line-height: 19px;
  912. font-weight: 700;
  913. background-color: @ol-green;
  914. border-radius: @plans-v2-table-border-radius @plans-v2-table-border-radius 0 0;
  915. color: @white;
  916. height: @plans-v2-highlighted-text-height-desktop;
  917. margin: 0;
  918. @media (max-width: @screen-sm-max) {
  919. top: -1 * @plans-v2-highlighted-text-height-mobile;
  920. height: @plans-v2-highlighted-text-height-mobile;
  921. }
  922. @media (max-width: @screen-xs-max) {
  923. padding-left: 5px;
  924. padding-right: 5px;
  925. font-size: @font-size-extra-small;
  926. line-height: 15px;
  927. }
  928. }
  929. .plans-v2-table-discount-highlighted {
  930. border-left: 2px solid @plans-v2-dark-blue;
  931. border-right: 2px solid @plans-v2-dark-blue;
  932. @media (max-width: @screen-xs-max) {
  933. border-left: unset;
  934. border-right: unset;
  935. }
  936. }
  937. p.plans-v2-table-discount-highlighted-text {
  938. border: 2px solid @plans-v2-dark-blue;
  939. position: absolute;
  940. top: -1 * @plans-v2-highlighted-text-height-desktop;
  941. left: -2px;
  942. display: flex;
  943. justify-content: center;
  944. align-items: center;
  945. // 4px because border width is 2px each side (left and right)
  946. width: calc(100% + 4px);
  947. font-family: @font-family-sans-serif;
  948. font-size: @font-size-small;
  949. line-height: 19px;
  950. font-weight: 700;
  951. background-color: @plans-v2-dark-blue;
  952. border-radius: @plans-v2-table-border-radius @plans-v2-table-border-radius 0 0;
  953. color: @white;
  954. height: @plans-v2-highlighted-text-height-desktop;
  955. margin: 0;
  956. z-index: @plans-v2-discount-highlighted-text-z-index;
  957. @media (max-width: @screen-sm-max) {
  958. top: -1 * @plans-v2-highlighted-text-height-mobile;
  959. height: @plans-v2-highlighted-text-height-mobile;
  960. }
  961. @media (max-width: @screen-xs-max) {
  962. padding-left: 5px;
  963. padding-right: 5px;
  964. font-size: @font-size-extra-small;
  965. line-height: 15px;
  966. }
  967. }
  968. .plans-v2-table-sticky-header-container {
  969. @media (max-width: @screen-xs-max) {
  970. // `height: 60%` is just an arbitrary percentage
  971. // since we need to cover the whole plans_v2_table
  972. // but not too much so it vertically overflows the page
  973. // and it's not trivial to calculate the precise table height
  974. height: 60%;
  975. width: 100%;
  976. position: absolute;
  977. }
  978. }
  979. .plans-v2-table-sticky-header-without-switch {
  980. margin-bottom: -107px;
  981. margin-top: 67px;
  982. }
  983. .plans-v2-table-sticky-header-with-switch {
  984. margin-bottom: -140px;
  985. margin-top: 100px;
  986. }
  987. .plans-v2-table-sticky-header {
  988. display: none;
  989. @media (max-width: @screen-xs-max) {
  990. display: flex;
  991. width: 100vw;
  992. top: 0;
  993. left: 0;
  994. z-index: @z-index-plans-page-table-header-mobile;
  995. height: 40px;
  996. // separate sticky class because we want to remove the class (to visually remove the sticky header)
  997. // with javascript whenever the table is not visible anymore
  998. &.sticky {
  999. position: sticky;
  1000. }
  1001. }
  1002. }
  1003. .plans-v2-table-sticky-header-item {
  1004. background-color: @white;
  1005. flex: 1 1 0px;
  1006. span {
  1007. margin: 0px @margin-xs;
  1008. border-bottom: 1px solid #cccccc;
  1009. height: 100%;
  1010. display: flex;
  1011. align-items: center;
  1012. justify-content: center;
  1013. font-family: @font-family-serif;
  1014. @media (max-width: @screen-xs-max) {
  1015. font-size: @font-size-small;
  1016. text-align: center;
  1017. line-height: 19px;
  1018. }
  1019. }
  1020. }
  1021. .plans-v2-table-sticky-header-item-green-highlighted span {
  1022. color: @ol-green;
  1023. }
  1024. .plans-v2-table-sticky-header-item-discount-highlighted span {
  1025. color: @plans-v2-dark-blue;
  1026. }
  1027. .plans-v2-faq {
  1028. // need for specificity to override default a color
  1029. p > a {
  1030. color: @ol-blue;
  1031. &:hover {
  1032. color: @ol-dark-blue;
  1033. }
  1034. }
  1035. }
  1036. .plans-v2-university-info {
  1037. padding: @padding-lg @padding-xxl;
  1038. background-color: @ol-blue-gray-1;
  1039. border-radius: 20px;
  1040. h3.plans-v2-university-info-header {
  1041. margin: 0 @margin-xl @margin-md @margin-xl;
  1042. }
  1043. p.plans-v2-university-info-text {
  1044. margin: 0 @margin-xl;
  1045. }
  1046. a.plans-v2-btn-university-info {
  1047. margin-top: @margin-md;
  1048. }
  1049. @media (max-width: @screen-sm-max) {
  1050. h3.plans-v2-university-info-header {
  1051. margin: 0 0 @margin-md 0;
  1052. }
  1053. p.plans-v2-university-info-text {
  1054. margin: 0;
  1055. }
  1056. }
  1057. @media (max-width: @screen-xs-max) {
  1058. padding: @padding-lg;
  1059. }
  1060. }