From 8d8ad1853f50c1e2004ef5a24a7dac6984f776b2 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:16:07 -0500 Subject: [PATCH] Merge pull request #19601 from overleaf/jel-light-touch-toggle [web] Update monthly/annual toggle on the light touch plans redesign GitOrigin-RevId: 46c3ec317b589e5a389336d429c7bba2a61af61c --- .../app/plans/plans-light-touch-redesign.less | 39 ++++++++----------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/services/web/frontend/stylesheets/app/plans/plans-light-touch-redesign.less b/services/web/frontend/stylesheets/app/plans/plans-light-touch-redesign.less index 9abe0d6025..5c80c839fb 100644 --- a/services/web/frontend/stylesheets/app/plans/plans-light-touch-redesign.less +++ b/services/web/frontend/stylesheets/app/plans/plans-light-touch-redesign.less @@ -1,7 +1,7 @@ // m-a stands for: monthly annual @plans-top-switch-item-height: 34px; @plans-top-switch-item-border-radius: @plans-top-switch-item-height / 2; -@plans-m-a-switch-height: 34px; +@plans-m-a-switch-height: 20px; @plans-highlighted-text-height-desktop: 32px; @plans-highlighted-text-height-mobile: 41px; @plans-learn-more-link-color: hsl(206, 100%, 52%); @@ -189,27 +189,18 @@ align-items: center; justify-content: center; position: relative; - margin-top: @margin-xl; + margin-top: var(--spacing-10); .underline { text-decoration: underline; } &.disabled { - span { - color: @ol-blue-gray-2; - } - - label { - input + span { - background-color: @ol-blue-gray-2; - cursor: not-allowed; - } - } + display: none; } @media (max-width: @screen-xs-max) { - margin-top: 25px; + margin-top: var(--spacing-08); &[data-ol-current-view='group'] { display: none; @@ -219,9 +210,9 @@ label { position: relative; display: inline-block; - width: 60px; + width: 34px; height: @plans-m-a-switch-height; - margin: 0 @margin-lg; + margin: 0 var(--spacing-05); input { opacity: 0; @@ -234,11 +225,11 @@ } input:checked + span { - background-color: @ol-blue-gray-4; + background-color: var(--neutral-70); } input:checked + span::before { - transform: translateX(26px); + transform: translateX(14px); } span { @@ -254,10 +245,10 @@ &::before { position: absolute; content: ''; - height: 32px; - width: 32px; - left: 1px; - bottom: 1px; + height: 16px; + width: 16px; + left: 2px; + bottom: 2px; background-color: @white; transition: 0.4s; border-radius: 50%; @@ -273,10 +264,12 @@ position: absolute; color: @white; width: auto; - border-radius: 4px; - right: 110%; + border-radius: var(--border-radius-base-new); + margin-right: var(--spacing-05); + right: 100%; top: 0; z-index: 0; + font-weight: 600; &.tooltip.in.left { .tooltip-inner {