plans-v2.less 26 KB

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