plans-v2.less 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  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. &:not(.plans-v2-table-divider) {
  363. background-color: @white;
  364. }
  365. }
  366. // only make corners have round borders if the column is not highlighted
  367. th:not(.plans-v2-table-green-highlighted) {
  368. &:nth-last-child(2) .plans-v2-table-th {
  369. border-top-right-radius: @plans-v2-table-border-radius;
  370. @media (max-width: @screen-xs-max) {
  371. border-top-right-radius: 0;
  372. }
  373. }
  374. &:nth-child(2) .plans-v2-table-th {
  375. border-top-left-radius: @plans-v2-table-border-radius;
  376. @media (max-width: @screen-xs-max) {
  377. border-top-right-radius: 0;
  378. }
  379. }
  380. }
  381. @media (max-width: @screen-md-max) {
  382. tr {
  383. th:last-of-type {
  384. // Last column is only a UI placeholder for desktop view.
  385. // We need to hide it for mobile to have the full table fully visible on mobile
  386. // without any empty horizontal space.
  387. display: none;
  388. }
  389. }
  390. }
  391. @media (max-width: @screen-xs-max) {
  392. tr {
  393. &:not(.plans-v2-table-divider) {
  394. td:not(:first-of-type),
  395. th:not(:first-of-type) {
  396. // 33.33% is because table-group & table-student have 3 real column on mobile.
  397. // It actually has 5 table column, but on mobile version,
  398. // the first column become row and the last column is hidden since it is just a UI placeholder.
  399. // We need to force 33.33% width to make each of 3 columns have an equal width of 1/3 screen width.
  400. width: 33.33%;
  401. }
  402. }
  403. }
  404. }
  405. }
  406. .plans-v2-table-individual {
  407. tr {
  408. &:last-child {
  409. td:first-child {
  410. background-color: @ol-blue-gray-0;
  411. .plans-v2-table-feature-name {
  412. border-bottom-left-radius: @plans-v2-table-border-radius;
  413. @media (max-width: @screen-xs-max) {
  414. border-bottom-left-radius: 0;
  415. }
  416. }
  417. }
  418. td:last-child {
  419. background-color: @ol-blue-gray-0;
  420. .plans-v2-table-cell {
  421. border-bottom-right-radius: @plans-v2-table-border-radius;
  422. @media (max-width: @screen-xs-max) {
  423. border-bottom-right-radius: 0;
  424. }
  425. }
  426. }
  427. }
  428. &:not(.plans-v2-table-divider) td {
  429. background-color: @white;
  430. }
  431. }
  432. th {
  433. &:last-child .plans-v2-table-th {
  434. border-top-right-radius: @plans-v2-table-border-radius;
  435. @media (max-width: @screen-xs-max) {
  436. border-top-right-radius: 0;
  437. }
  438. }
  439. &:nth-child(2) .plans-v2-table-th {
  440. border-top-left-radius: @plans-v2-table-border-radius;
  441. @media (max-width: @screen-xs-max) {
  442. border-top-left-radius: 0;
  443. }
  444. }
  445. }
  446. // for remove-personal-plan split test default variant
  447. @media (max-width: @screen-xs-max) {
  448. tr.cols-4:not(.plans-v2-table-divider) {
  449. td:not(:first-of-type),
  450. th:not(:first-of-type) {
  451. // 25% is because table-individual have 4 real columns on mobile
  452. // it actually has 5 table columns, but on mobile version, the first column become row
  453. // we need to force 25% width to make each of 4 columns have an equal width of 1/4 screen width
  454. width: 25%;
  455. }
  456. }
  457. // for remove-personal-plan split test personal-off variant
  458. tr.cols-3:not(.plans-v2-table-divider) {
  459. td:not(:first-of-type),
  460. th:not(:first-of-type) {
  461. // 33% is because table-individual have 3 real columns on mobile
  462. // it actually has 4 table columns, but on mobile version, the first column become row
  463. // we need to force 33% width to make each of 3 columns have an equal width of 1/3 screen width
  464. width: calc(100% / 3);
  465. }
  466. }
  467. }
  468. }
  469. .plans-v2-table-group {
  470. margin-top: 26px + @plans-v2-highlighted-text-height-desktop;
  471. p.plans-v2-table-th-content-title {
  472. // Reduce font size of table heading for screen size >= @screen-lg (1200px) from 20px to 19px
  473. // 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".
  474. // In the English version, "Group Professional" won't be wrapped to two separate lines with 20px font size for big screen.
  475. // 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.
  476. // 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.
  477. // 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.
  478. font-size: 19px;
  479. @media (max-width: @screen-md-max) {
  480. font-size: @font-size-base;
  481. }
  482. @media (max-width: @screen-xs-max) {
  483. font-size: @font-size-small;
  484. }
  485. }
  486. }
  487. .plans-v2-table {
  488. background-color: @ol-blue-gray-0;
  489. margin-bottom: 15px;
  490. table-layout: fixed;
  491. width: 100%;
  492. // We want these `div` inside `th` and `td` to have a 100% height since
  493. // white backgrounds are defined here:
  494. // 1. `td > div.plans-v2-table-cell`
  495. // 2. `th > div.plans-v2-table-th`
  496. //
  497. // To make both of them have 100% height of their respective `td` and `th`,
  498. // we need to have the `table` has an explicit `height` rule.
  499. // The value can be arbitrary, since it will be ignored by the browser
  500. //
  501. // See https://stackoverflow.com/a/56913789 for more details
  502. height: 100%;
  503. tr {
  504. height: 100%;
  505. }
  506. th,
  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. th {
  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. &:first-child {
  538. border-left: 0;
  539. text-align: left;
  540. }
  541. &:last-child:not(.plans-v2-table-green-highlighted):not(.plans-v2-table-divider-highlighted) {
  542. border-right: 0;
  543. }
  544. }
  545. tr {
  546. &:first-child th {
  547. // keep the position here, otherwise messes up border on safari
  548. position: relative;
  549. }
  550. // css hack for table border-radius on the first feature name
  551. &:nth-child(2) {
  552. td:first-child {
  553. background-color: @ol-blue-gray-0;
  554. .plans-v2-table-feature-name {
  555. border-top-left-radius: @plans-v2-table-border-radius;
  556. @media (max-width: @screen-xs-max) {
  557. border-top-left-radius: 0;
  558. }
  559. }
  560. }
  561. }
  562. &:not(.plans-v2-table-row-last-row-per-section):not(.plans-v2-table-divider):not(:last-of-type) {
  563. th > .plans-v2-table-th > .plans-v2-table-th-content,
  564. td > .plans-v2-table-feature-name,
  565. td > .plans-v2-table-cell > .plans-v2-table-cell-content {
  566. border-bottom: 1px solid @ol-blue-gray-0;
  567. @media (max-width: @screen-xs-max) {
  568. border-bottom: unset;
  569. }
  570. }
  571. }
  572. // this will show highlghted border-bottom on the last row
  573. &:last-child td.plans-v2-table-green-highlighted {
  574. > .plans-v2-table-cell {
  575. border-bottom: 2px solid @ol-green;
  576. @media (max-width: @screen-xs-max) {
  577. border-bottom: unset;
  578. }
  579. }
  580. }
  581. &:last-child td.plans-v2-table-discount-highlighted {
  582. border-bottom: 2px solid @plans-v2-dark-blue;
  583. @media (max-width: @screen-xs-max) {
  584. border-bottom: unset;
  585. }
  586. }
  587. }
  588. .fa-check {
  589. color: @green;
  590. }
  591. @media (min-width: @screen-sm-min) {
  592. // highlight rows on hover
  593. tr:not(.plans-v2-table-divider):hover td {
  594. background-color: @table-hover-bg;
  595. .plans-v2-table-feature-name,
  596. .plans-v2-table-cell {
  597. background-color: @table-hover-bg;
  598. }
  599. }
  600. }
  601. @media (max-width: @screen-sm-max) {
  602. font-size: @font-size-small;
  603. }
  604. @media (max-width: @screen-xs-max) {
  605. tr {
  606. display: flex;
  607. // for mobile, we need to show the feature name (the first column) as its own row
  608. // the flex-flow will make the whole tr overflow to a next row if
  609. // total td width combined is bigger than viewport width
  610. // so, one tr can have multiple "visible" row depending on the total width.
  611. flex-flow: row wrap;
  612. justify-content: space-around;
  613. }
  614. th {
  615. font-size: 12px;
  616. }
  617. // hide the first column header
  618. tr:first-child th:first-child {
  619. display: none;
  620. }
  621. // for mobile, we need to show the feature name (the first td) as its own row
  622. // the width: 100vw rule will enhance the flex-flow on the tr by ensuring the feature name (first column of each feature row)
  623. // will have the full width of viewport,
  624. // 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)
  625. td:first-child {
  626. background: @gray-lightest;
  627. width: 100vw;
  628. span.plans-v2-table-feature-name {
  629. width: 100%;
  630. span {
  631. text-align: left;
  632. }
  633. }
  634. }
  635. }
  636. }
  637. // plans-v2-table-cell class only appears for the inner `div` of a `td`
  638. // that doesn't contain divider or feature name
  639. // (i.e it contains either check mark icon or a dash)
  640. .plans-v2-table-cell {
  641. background-color: @white;
  642. height: 100%;
  643. .plans-v2-table-cell-content {
  644. height: 100%;
  645. display: flex;
  646. align-items: center;
  647. justify-content: center;
  648. }
  649. @media (max-width: @screen-xs-max) {
  650. .plans-v2-table-cell-content {
  651. padding: 6px;
  652. min-height: @plans-v2-table-td-mobile-min-height;
  653. }
  654. }
  655. }
  656. .plans-v2-table-th {
  657. height: 100%;
  658. background-color: @white;
  659. .plans-v2-table-th-content {
  660. display: flex;
  661. flex-direction: column;
  662. min-height: 321px;
  663. height: 100%;
  664. padding: 10px 13px;
  665. @media (max-width: @screen-md-max) {
  666. min-height: 330px;
  667. }
  668. @media (max-width: @screen-sm-max) {
  669. padding-left: @padding-xs;
  670. padding-right: @padding-xs;
  671. }
  672. }
  673. }
  674. .plans-v2-table-btn-buy-container-desktop {
  675. margin-top: auto;
  676. display: flex;
  677. flex-direction: column;
  678. min-height: 60px;
  679. @media (max-width: @screen-xs-max) {
  680. display: none;
  681. }
  682. }
  683. .plans-v2-table-btn-buy-container-mobile {
  684. display: none;
  685. @media (max-width: @screen-xs-max) {
  686. display: flex;
  687. flex-direction: column;
  688. min-height: 50px;
  689. margin-top: @padding-sm;
  690. }
  691. }
  692. .plans-v2-table-btn-buy {
  693. font-family: @font-family-sans-serif;
  694. padding: 4px 15px 5px;
  695. @media (min-width: (@screen-xs-max+1)) {
  696. .hidden-desktop {
  697. display: none;
  698. }
  699. }
  700. @media (max-width: @screen-sm-max) {
  701. font-size: @font-size-small;
  702. }
  703. @media (max-width: @screen-xs-max) {
  704. padding-left: 9px;
  705. padding-right: 9px;
  706. // truncating group plans long button text for mobile
  707. .hidden-mobile {
  708. display: none;
  709. }
  710. }
  711. }
  712. p.plans-v2-table-th-content-title {
  713. font-size: @font-size-large;
  714. padding-bottom: @padding-sm;
  715. border-bottom: 1px solid @gray-lighter;
  716. margin-bottom: @margin-lg;
  717. @media (max-width: @screen-md-max) {
  718. font-size: @font-size-base;
  719. }
  720. // `plans-v2-table-th-content-title` is visually invisible on screen size less than @screen-xs-max
  721. // because there is a sticky header (`plans-v2-table-sticky-header` class) that "replace" the content visually
  722. // (see the `@plans-v2-table-sticky-header-z-index` variable that make the sticky header element is "above" the whole table)
  723. // however, we still need to properly styling the `plans-v2-table-th-content-title` for small screen size to
  724. // fit this element to the size of the sticky header
  725. // this trick is used because th element can not have a `position: sticky` rule, at least for our use case
  726. @media (max-width: @screen-xs-max) {
  727. min-height: 40px;
  728. margin-bottom: @margin-md;
  729. font-size: @font-size-small;
  730. padding-bottom: 0;
  731. }
  732. }
  733. p.plans-v2-table-th-content-benefit,
  734. ul.plans-v2-table-th-content-benefit {
  735. padding-top: 15px;
  736. font-size: @font-size-small;
  737. font-family: @font-family-sans-serif;
  738. line-height: 23px;
  739. hyphens: auto;
  740. }
  741. ul.plans-v2-table-th-content-benefit {
  742. padding-left: 15px;
  743. text-align: left;
  744. margin-bottom: 0;
  745. li a {
  746. color: @ol-blue-gray-3;
  747. text-decoration: underline;
  748. }
  749. }
  750. // this class should only appear on the group table
  751. .plans-v2-group-total-price {
  752. font-weight: 700;
  753. }
  754. .plans-v2-table-price-container {
  755. position: relative;
  756. }
  757. p.plans-v2-table-price-period-label {
  758. margin: 0;
  759. font-size: @font-size-small;
  760. line-height: 23px;
  761. color: @ol-blue-gray-3;
  762. font-family: @font-family-sans-serif;
  763. }
  764. p.plans-v2-table-price {
  765. margin: 0;
  766. span {
  767. font-weight: 700;
  768. font-size: 32px;
  769. line-height: 42px;
  770. @media (max-width: @screen-xs-max) {
  771. line-height: 35px;
  772. font-size: @font-size-large;
  773. }
  774. }
  775. }
  776. strike.plans-v2-table-price-before-discount {
  777. position: absolute;
  778. top: -27px;
  779. font-weight: 700;
  780. font-size: @font-size-small;
  781. line-height: 42px;
  782. display: flex;
  783. justify-content: center;
  784. width: 100%;
  785. color: @ol-blue-gray-2;
  786. @media (max-width: @screen-xs-max) {
  787. font-size: @font-size-extra-small;
  788. }
  789. }
  790. small.plans-v2-table-th-content-additional-link {
  791. text-transform: lowercase;
  792. margin-top: @margin-xs;
  793. font-size: @font-size-extra-small;
  794. height: 16px;
  795. font-family: @font-family-sans-serif;
  796. a {
  797. color: @ol-blue-gray-5;
  798. text-decoration: underline;
  799. }
  800. }
  801. .plans-v2-table-feature-name {
  802. background-color: @white;
  803. display: flex;
  804. justify-content: space-between;
  805. align-items: center;
  806. padding: 6px 6px 6px 18px;
  807. i.plans-v2-table-feature-name-question-icon {
  808. margin-left: 10px;
  809. }
  810. span.plans-v2-table-feature-name-learn-more-container {
  811. display: none;
  812. }
  813. @media (max-width: @screen-xs-max) {
  814. display: inline-block;
  815. text-align: left;
  816. padding: 6px;
  817. width: 100%;
  818. background-color: @ol-blue-gray-0;
  819. min-height: @plans-v2-table-td-mobile-min-height;
  820. i.plans-v2-table-feature-name-question-icon {
  821. display: none;
  822. }
  823. span.plans-v2-table-feature-name-learn-more-container {
  824. margin-left: 5px;
  825. display: inline;
  826. // this white-space is important to ensure the "learn more" text won't get separated by a newline
  827. white-space: nowrap;
  828. span.plans-v2-table-feature-name-learn-more-text {
  829. color: @plans-v2-learn-more-link-color;
  830. }
  831. .tooltip {
  832. // force white-space to have initial value since the `white-space: nowrap` rule
  833. // on .plans-v2-table-feature-name-learn-more-container selector (the current code block) above
  834. // will also affect every child inside of it, including the generated tooltip
  835. white-space: initial;
  836. }
  837. }
  838. }
  839. }
  840. tr.plans-v2-table-divider {
  841. background-color: @ol-blue-gray-1;
  842. // direct child selector to NOT affect the generated tooltip
  843. td > div {
  844. text-align: center;
  845. padding: 6px;
  846. .plans-v2-table-divider-label {
  847. margin-bottom: 0;
  848. margin-right: 5px;
  849. }
  850. .plans-v2-table-divider-learn-more-container {
  851. display: none;
  852. }
  853. }
  854. // highlighted divider will only show if the highlighted column is on the last visible column
  855. .plans-v2-table-divider-highlighted > div {
  856. border-right: 2px solid @ol-green;
  857. }
  858. @media (max-width: @screen-xs-max) {
  859. // need the colspan attribute selector to increase specificity to override more specific css rule on another selector
  860. td[colspan] {
  861. padding-top: 0;
  862. padding-right: 0;
  863. padding-left: 0;
  864. // direct child selector to NOT affect the generated tooltip
  865. > div {
  866. background-color: @ol-blue-gray-1;
  867. padding: 15px 5px;
  868. i.plans-v2-table-divider-question-icon {
  869. display: none;
  870. }
  871. .plans-v2-table-divider-learn-more-container {
  872. display: inline;
  873. // this white-space is important to ensure the "learn more" text won't get separated by a newline
  874. white-space: nowrap;
  875. span.plans-v2-table-divider-learn-more-text {
  876. color: @plans-v2-learn-more-link-color;
  877. }
  878. // force white-space to have initial value since the `white-space: nowrap` rule
  879. // on .plans-v2-table-divider-learn-more-container selector (the current code block) above
  880. // will also affect every child inside of it, including the generated tooltip
  881. .tooltip {
  882. white-space: initial;
  883. }
  884. }
  885. }
  886. }
  887. .plans-v2-table-divider-highlighted {
  888. border-right: none;
  889. }
  890. }
  891. }
  892. // the `.plans-v2-table-green-highlighted` class below can be applied to both `th` and `td`
  893. .plans-v2-table-green-highlighted {
  894. > .plans-v2-table-cell,
  895. > .plans-v2-table-th {
  896. border-left: 2px solid @ol-green;
  897. border-right: 2px solid @ol-green;
  898. @media (max-width: @screen-xs-max) {
  899. border-left: unset;
  900. border-right: unset;
  901. }
  902. }
  903. }
  904. p.plans-v2-table-green-highlighted-text {
  905. border: 2px solid @ol-green;
  906. position: absolute;
  907. top: -1 * @plans-v2-highlighted-text-height-desktop;
  908. left: 0;
  909. display: flex;
  910. justify-content: center;
  911. align-items: center;
  912. width: 100%;
  913. font-family: @font-family-sans-serif;
  914. font-size: @font-size-small;
  915. line-height: 19px;
  916. font-weight: 700;
  917. background-color: @ol-green;
  918. border-radius: @plans-v2-table-border-radius @plans-v2-table-border-radius 0 0;
  919. color: @white;
  920. height: @plans-v2-highlighted-text-height-desktop;
  921. margin: 0;
  922. @media (max-width: @screen-sm-max) {
  923. top: -1 * @plans-v2-highlighted-text-height-mobile;
  924. height: @plans-v2-highlighted-text-height-mobile;
  925. }
  926. @media (max-width: @screen-xs-max) {
  927. padding-left: 5px;
  928. padding-right: 5px;
  929. font-size: @font-size-extra-small;
  930. line-height: 15px;
  931. }
  932. }
  933. .plans-v2-table-discount-highlighted {
  934. border-left: 2px solid @plans-v2-dark-blue;
  935. border-right: 2px solid @plans-v2-dark-blue;
  936. @media (max-width: @screen-xs-max) {
  937. border-left: unset;
  938. border-right: unset;
  939. }
  940. }
  941. p.plans-v2-table-discount-highlighted-text {
  942. border: 2px solid @plans-v2-dark-blue;
  943. position: absolute;
  944. top: -1 * @plans-v2-highlighted-text-height-desktop;
  945. left: -2px;
  946. display: flex;
  947. justify-content: center;
  948. align-items: center;
  949. // 4px because border width is 2px each side (left and right)
  950. width: calc(100% + 4px);
  951. font-family: @font-family-sans-serif;
  952. font-size: @font-size-small;
  953. line-height: 19px;
  954. font-weight: 700;
  955. background-color: @plans-v2-dark-blue;
  956. border-radius: @plans-v2-table-border-radius @plans-v2-table-border-radius 0 0;
  957. color: @white;
  958. height: @plans-v2-highlighted-text-height-desktop;
  959. margin: 0;
  960. z-index: @plans-v2-discount-highlighted-text-z-index;
  961. @media (max-width: @screen-sm-max) {
  962. top: -1 * @plans-v2-highlighted-text-height-mobile;
  963. height: @plans-v2-highlighted-text-height-mobile;
  964. }
  965. @media (max-width: @screen-xs-max) {
  966. padding-left: 5px;
  967. padding-right: 5px;
  968. font-size: @font-size-extra-small;
  969. line-height: 15px;
  970. }
  971. }
  972. .plans-v2-table-sticky-header-container {
  973. @media (max-width: @screen-xs-max) {
  974. // `height: 60%` is just an arbitrary percentage
  975. // since we need to cover the whole plans_v2_table
  976. // but not too much so it vertically overflows the page
  977. // and it's not trivial to calculate the precise table height
  978. height: 60%;
  979. width: 100%;
  980. position: absolute;
  981. }
  982. }
  983. .plans-v2-table-sticky-header-without-switch {
  984. margin-bottom: -107px;
  985. margin-top: 67px;
  986. }
  987. .plans-v2-table-sticky-header-with-switch {
  988. margin-bottom: -140px;
  989. margin-top: 100px;
  990. }
  991. .plans-v2-table-sticky-header {
  992. display: none;
  993. @media (max-width: @screen-xs-max) {
  994. display: flex;
  995. width: 100vw;
  996. top: 0;
  997. left: 0;
  998. z-index: @z-index-plans-page-table-header-mobile;
  999. height: 40px;
  1000. // separate sticky class because we want to remove the class (to visually remove the sticky header)
  1001. // with javascript whenever the table is not visible anymore
  1002. &.sticky {
  1003. position: sticky;
  1004. }
  1005. }
  1006. }
  1007. .plans-v2-table-sticky-header-item {
  1008. background-color: @white;
  1009. flex: 1 1 0px;
  1010. span {
  1011. margin: 0px @margin-xs;
  1012. border-bottom: 1px solid #cccccc;
  1013. height: 100%;
  1014. display: flex;
  1015. align-items: center;
  1016. justify-content: center;
  1017. font-family: @font-family-serif;
  1018. @media (max-width: @screen-xs-max) {
  1019. font-size: @font-size-small;
  1020. text-align: center;
  1021. line-height: 19px;
  1022. }
  1023. }
  1024. }
  1025. .plans-v2-table-sticky-header-item-green-highlighted span {
  1026. color: @ol-green;
  1027. }
  1028. .plans-v2-table-sticky-header-item-discount-highlighted span {
  1029. color: @plans-v2-dark-blue;
  1030. }
  1031. .plans-v2-faq {
  1032. // need for specificity to override default a color
  1033. p > a {
  1034. color: @ol-blue;
  1035. &:hover {
  1036. color: @ol-dark-blue;
  1037. }
  1038. }
  1039. }
  1040. .plans-v2-university-info {
  1041. padding: @padding-lg @padding-xxl;
  1042. background-color: @ol-blue-gray-1;
  1043. border-radius: 20px;
  1044. h3.plans-v2-university-info-header {
  1045. margin: 0 @margin-xl @margin-md @margin-xl;
  1046. }
  1047. p.plans-v2-university-info-text {
  1048. margin: 0 @margin-xl;
  1049. }
  1050. a.plans-v2-btn-university-info {
  1051. margin-top: @margin-md;
  1052. }
  1053. @media (max-width: @screen-sm-max) {
  1054. h3.plans-v2-university-info-header {
  1055. margin: 0 0 @margin-md 0;
  1056. }
  1057. p.plans-v2-university-info-text {
  1058. margin: 0;
  1059. }
  1060. }
  1061. @media (max-width: @screen-xs-max) {
  1062. padding: @padding-lg;
  1063. }
  1064. }