plans-v2.less 26 KB

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