plans-v2.less 30 KB

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