plans-v2.less 28 KB

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