plans-v2.less 27 KB

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