plans-v2.less 26 KB

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