helper.scss 17 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  1. /*------------------------------------------------------------------------------
  2. General table styling
  3. ------------------------------------------------------------------------------*/
  4. $white: #ffffff;
  5. // Grays
  6. $gray: #87a6bc;
  7. $gray-light: lighten( $gray, 33% ); //#f3f6f8
  8. $gray-dark: darken( $gray, 38% ); //#2e4453
  9. // $gray-text: ideal for standard, non placeholder text
  10. // $gray-text-min: minimum contrast needed for WCAG 2.0 AA on white background
  11. $gray-text: $gray-dark;
  12. $gray-text-min: darken( $gray, 18% ); //#537994
  13. $woo_pink1: #955a89;
  14. $woo_pink2: #bb77ae;
  15. $color_text_blue: #0073AA;
  16. $color_button_primary: $woo_pink1;
  17. $color_button_secondary: $woo_pink2;
  18. /*------------------------------------------------------------------------------
  19. Tab navigation
  20. ------------------------------------------------------------------------------*/
  21. .wc-helper {
  22. .nav-tab-wrapper {
  23. margin-bottom: 22px;
  24. }
  25. @media only screen and (max-width : 784px) {
  26. .nav-tab {
  27. max-width: 40%;
  28. overflow: hidden;
  29. text-overflow: ellipsis;
  30. }
  31. }
  32. }
  33. /*------------------------------------------------------------------------------
  34. Buttons
  35. ------------------------------------------------------------------------------*/
  36. .wc-helper {
  37. .button, .button:hover, .button:focus, .button:active{
  38. background-color: $color_button_primary;
  39. border-width: 0;
  40. box-shadow: none;
  41. border-radius: 3px;
  42. color: #fff;
  43. height: auto;
  44. padding: 3px 14px;
  45. text-align: center;
  46. white-space: normal !important;
  47. @media only screen and (max-width : 782px) {
  48. line-height: 2;
  49. }
  50. &.button-secondary {
  51. background-color: #e6e6e6;
  52. color: #3c3c3c;
  53. text-shadow: none;
  54. }
  55. }
  56. .button:hover {
  57. opacity: 0.8;
  58. }
  59. }
  60. .wc-helper .subscription-filter {
  61. color: #2E4453;
  62. font-size: 13px;
  63. line-height: 13px;
  64. margin: 22px 0;
  65. label {
  66. display: none;
  67. position: relative;
  68. .chevron {
  69. color: #E1E1E1;
  70. border-bottom-width: 0;
  71. line-height: 1;
  72. padding: 0;
  73. position: absolute;
  74. top: 10px;
  75. right: 14px;
  76. }
  77. }
  78. li {
  79. color: #0073AA;
  80. display: inline-block;
  81. padding: 0 4px 0 8px;
  82. position: relative;
  83. &::before {
  84. background-color: #979797;
  85. content: " ";
  86. position: absolute;
  87. top: 0;
  88. left: 0;
  89. bottom: 0;
  90. width: 1px;
  91. }
  92. &:first-of-type {
  93. &::before {
  94. display: none;
  95. }
  96. }
  97. }
  98. a{
  99. color: #0073AA;
  100. text-decoration: none;
  101. &.current{
  102. color: #000;
  103. font-weight: 600;
  104. }
  105. }
  106. .count{
  107. color: #555d66;
  108. font-weight: 400;
  109. }
  110. @media only screen and (max-width : 600px) {
  111. background-color: #fff;
  112. border: 1px solid #E1E1E1;
  113. border-radius: 4px;
  114. font-size: 14px;
  115. label,
  116. li {
  117. line-height: 21px;
  118. padding: 8px 16px;
  119. margin: 0;
  120. &:last-child {
  121. border-bottom: none;
  122. }
  123. }
  124. li {
  125. border-bottom: 1px solid #E1E1E1;
  126. }
  127. label,
  128. span.chevron {
  129. display: block;
  130. }
  131. label {
  132. text-decoration: none;
  133. }
  134. li {
  135. display: none;
  136. }
  137. li {
  138. &::before {
  139. display: none;
  140. }
  141. }
  142. a {
  143. cursor: pointer;
  144. }
  145. span.chevron {
  146. color: #555555;
  147. opacity: 0.5;
  148. transform: rotateX(180deg);
  149. }
  150. &:focus,
  151. &:hover {
  152. box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  153. label {
  154. border-bottom: 1px solid #E1E1E1;
  155. }
  156. li {
  157. display: block;
  158. }
  159. span.chevron {
  160. transform: rotateX(0deg);
  161. }
  162. }
  163. }
  164. }
  165. /*------------------------------------------------------------------------------
  166. Subscriptons Header
  167. ------------------------------------------------------------------------------*/
  168. .wc-helper {
  169. .subscriptions-header {
  170. margin: 3em 0 0;
  171. position: relative;
  172. z-index: 10;
  173. h2 {
  174. display: inline-block;
  175. line-height: 25px;
  176. margin: 0 0 1.5em 0;
  177. }
  178. }
  179. .button-update, .button-update:hover {
  180. background-color: #E6E6E6;
  181. border-radius: 4px;
  182. color: #333;
  183. font-weight: 800;
  184. font-size: 10px;
  185. line-height: 20px;
  186. margin-left: 6px;
  187. opacity: 0.75;
  188. padding: 3px 7px;
  189. text-transform: uppercase;
  190. .dashicons {
  191. font-size: 12px;
  192. height: 12px;
  193. width: 12px;
  194. vertical-align: text-bottom;
  195. }
  196. }
  197. .button-update:hover {
  198. opacity: 1;
  199. }
  200. .user-info {
  201. background-color: #fff;
  202. border: 1px solid #E1E1E1;
  203. border-radius: 4px;
  204. font-size: 12px;
  205. line-height: 26px;
  206. position: absolute;
  207. top: -10px;
  208. right: 0;
  209. transition: all .1s ease-in;
  210. @media only screen and (max-width : 600px) {
  211. position: relative;
  212. width: 100%;
  213. }
  214. p {
  215. line-height: 26px;
  216. margin: 0;
  217. }
  218. &:hover {
  219. box-shadow: 0 3px 5px rgba(0,0,0,.2);
  220. }
  221. header {
  222. color: #555555;
  223. font-weight: 600;
  224. padding: 6px 14px;
  225. position: relative;
  226. p {
  227. padding-right: 26px;
  228. }
  229. .dashicons {
  230. opacity: 0.5;
  231. position: absolute;
  232. top: 9px;
  233. right: 14px;
  234. }
  235. &:hover {
  236. cursor: pointer;
  237. }
  238. }
  239. section {
  240. display: none;
  241. p {
  242. border-top: 1px solid #E1E1E1;
  243. padding: 6px 14px;
  244. text-align: center;
  245. }
  246. .actions {
  247. border-top: 1px solid #E1E1E1;
  248. display: flex;
  249. }
  250. a {
  251. color: #A26897;
  252. cursor: pointer;
  253. font-weight: 600;
  254. line-height: 38px;
  255. padding: 0 14px;
  256. text-align: center;
  257. text-decoration: none;
  258. white-space: nowrap;
  259. width: 50%;
  260. .dashicons {
  261. margin-top: -3px;
  262. vertical-align: middle;
  263. }
  264. &:first-child {
  265. border-right: 1px solid #E1E1E1;
  266. }
  267. &:hover {
  268. background-color: #A26897;
  269. color: #fff;
  270. }
  271. }
  272. .avatar {
  273. border: 1px solid #ECE1EA;
  274. border-radius: 50%;
  275. height: auto;
  276. margin-right: 6px;
  277. width: 24px;
  278. vertical-align: bottom;
  279. }
  280. }
  281. }
  282. .user-info:hover,
  283. .user-info:focus,
  284. .user-info:active {
  285. header .dashicons {
  286. transform: rotateX(180deg);
  287. }
  288. section {
  289. display: block
  290. }
  291. }
  292. }
  293. /*------------------------------------------------------------------------------
  294. Subscripton table
  295. ------------------------------------------------------------------------------*/
  296. .wc-helper {
  297. .striped > tbody > :nth-child(odd),
  298. ul.striped > :nth-child(odd),
  299. .alternate {
  300. background-color: #ffffff;
  301. }
  302. table.widefat,
  303. .wp-editor-container,
  304. .stuffbox,
  305. p.popular-tags,
  306. .widgets-holder-wrap,
  307. .popular-tags,
  308. .feature-filter,
  309. .imgedit-group,
  310. .comment-ays {
  311. padding-top: 5px;
  312. }
  313. .widefat thead tr th,
  314. .widefat thead tr td,
  315. .widefat tfoot tr th,
  316. .widefat tfoot tr td {
  317. color: #32373c;
  318. padding-bottom: 15px;
  319. padding-top: 10px;
  320. }
  321. .widefat td {
  322. padding-bottom: 15px;
  323. padding-top: 15px;
  324. }
  325. .wp-list-table {
  326. border: 0;
  327. box-shadow: none;
  328. padding-top: 0 !important;
  329. z-index: 1;
  330. }
  331. .button {
  332. @media only screen and (max-width : 782px) {
  333. font-size: 11px;
  334. }
  335. }
  336. .wp-list-table__row {
  337. background-color: rgba(0,0,0,0);
  338. td {
  339. align-items: center;
  340. background-color: #fff;
  341. border: 0px;
  342. //border-top: 1px solid #e5e5e5;
  343. padding: 16px 22px;
  344. vertical-align: middle;
  345. @media only screen and (max-width : 782px) {
  346. padding: 16px;
  347. }
  348. }
  349. td.color-bar {
  350. border-left: 0;
  351. }
  352. &.is-ext-header {
  353. td {
  354. border-top: 1px solid #E1E1E1;
  355. }
  356. @media only screen and (max-width : 782px) {
  357. display: inline-flex;
  358. flex-flow: row wrap;
  359. width: 100%;
  360. .wp-list-table__ext-details {
  361. display: block;
  362. flex: 2;
  363. }
  364. .wp-list-table__ext-actions {
  365. display: block;
  366. flex: 1;
  367. min-width: 0;
  368. }
  369. }
  370. }
  371. &:last-child td {
  372. border-bottom: 24px solid #F1F1F1;
  373. box-shadow: inset 0 -1px 0 #E1E1E1;
  374. }
  375. }
  376. .wp-list-table__ext-details,
  377. .wp-list-table__ext-status,
  378. .wp-list-table__licence-container {
  379. padding-right: 22px;
  380. position: relative;
  381. width: 100%;
  382. &::before {
  383. background-color: #E1E1E1;
  384. content: " ";
  385. position: absolute;
  386. top: 0;
  387. bottom: 0;
  388. left: 0 !important;
  389. width: 1px !important;
  390. }
  391. }
  392. .wp-list-table__ext-details {
  393. display: flex;
  394. @media only screen and (max-width : 782px) {
  395. display: table;
  396. }
  397. }
  398. .wp-list-table__ext-title {
  399. color: $color_text_blue;
  400. font-size: 18px;
  401. font-weight: 600;
  402. width: 60%;
  403. @media only screen and (max-width : 782px) {
  404. margin-bottom: 12px;
  405. width: 100%;
  406. }
  407. @media only screen and (max-width : 320px) {
  408. max-width: 120px;
  409. }
  410. }
  411. .wp-list-table__ext-description {
  412. color: #333;
  413. padding-left: 12px;
  414. width: 40%;
  415. @media only screen and (max-width : 782px) {
  416. padding-left: 0;
  417. width: 100%;
  418. }
  419. }
  420. .wp-list-table__ext-status {
  421. position: relative;
  422. &.update-available::after {
  423. background-color: #FFC322;
  424. content: " ";
  425. position: absolute;
  426. top: 0;
  427. left: 0;
  428. bottom: 0;
  429. width: 5px;
  430. }
  431. &.expired::after {
  432. background-color: #B81C23;
  433. content: " ";
  434. position: absolute;
  435. top: 0;
  436. left: 0;
  437. bottom: 0;
  438. width: 5px;
  439. }
  440. .dashicons-update {
  441. color: #FFC322;
  442. }
  443. .dashicons-info {
  444. color: #B81C23;
  445. }
  446. p {
  447. color: #333333;
  448. margin: 0;
  449. }
  450. .dashicons {
  451. margin-right: 5px;
  452. }
  453. }
  454. .wp-list-table__ext-actions {
  455. min-width: 150px;
  456. position: relative;
  457. width: 25%;
  458. text-align: right;
  459. &::after {
  460. background-color: #E1E1E1;
  461. content: " ";
  462. position: absolute;
  463. top: 0;
  464. bottom: 0;
  465. right: 0;
  466. width: 1px;
  467. }
  468. }
  469. .wp-list-table__ext-updates,
  470. .wp-list-table__ext-licence {
  471. td {
  472. position: relative;
  473. &::before {
  474. background-color: #E1E1E1;
  475. content: " ";
  476. height: 1px;
  477. position: absolute;
  478. top: 0;
  479. left: 0;
  480. right: 0;
  481. }
  482. }
  483. td.wp-list-table__ext-status,
  484. td.wp-list-table__licence-container {
  485. &::before {
  486. left: 22px !important;
  487. width: auto !important;
  488. }
  489. }
  490. td.wp-list-table__ext-actions::before {
  491. right: 22px;
  492. }
  493. @media only screen and (max-width : 782px) {
  494. display: flex;
  495. .wp-list-table__ext-status {
  496. flex: 2;
  497. &::before {
  498. left: 0 !important;
  499. width: 100% !important;
  500. }
  501. }
  502. .wp-list-table__ext-actions {
  503. flex: 1;
  504. min-width: 0;
  505. &::before {
  506. left: 0 !important;
  507. right: 0 !important;
  508. width: 100% !important;
  509. }
  510. }
  511. }
  512. }
  513. .wp-list-table__licence-container {
  514. padding: 0 !important;
  515. &::after {
  516. background-color: #E1E1E1;
  517. content: " ";
  518. position: absolute;
  519. top: 0;
  520. bottom: 0;
  521. right: 0;
  522. width: 1px;
  523. }
  524. }
  525. .wp-list-table__licence-form {
  526. display: flex;
  527. padding: 16px 22px;
  528. @media only screen and (max-width : 782px) {
  529. display: block;
  530. }
  531. &::before {
  532. background-color: #E1E1E1;
  533. content: " ";
  534. height: 1px;
  535. position: absolute;
  536. top: 0;
  537. right: 22px;
  538. left: 22px;
  539. @media only screen and (max-width : 782px) {
  540. right: 0;
  541. left: 0;
  542. }
  543. }
  544. div {
  545. padding-right: 16px;
  546. vertical-align: middle;
  547. @media only screen and (max-width : 782px) {
  548. padding: 0;
  549. }
  550. }
  551. p {
  552. margin: 0 !important;
  553. }
  554. }
  555. .wp-list-table__licence-label {
  556. label {
  557. color: #23282d;
  558. font-weight: 600;
  559. line-height: 30px;
  560. }
  561. }
  562. .wp-list-table__licence-field {
  563. input {
  564. height: 32px;
  565. @media only screen and (max-width : 480px) {
  566. width: 100%;
  567. }
  568. }
  569. @media only screen and (max-width : 782px) {
  570. padding: 8px 0 16px !important;
  571. }
  572. }
  573. .wp-list-table__licence-actions {
  574. flex-grow: 2;
  575. padding-right: 0 !important;
  576. .button {
  577. margin-right: 8px;
  578. }
  579. .button-secondary {
  580. float: right;
  581. margin: 0 0 0 8px;
  582. }
  583. @media only screen and (max-width : 480px) {
  584. text-align: right;
  585. }
  586. }
  587. }
  588. /*------------------------------------------------------------------------------
  589. Expired notification bar
  590. ------------------------------------------------------------------------------*/
  591. .wc-helper {
  592. td.color-bar {
  593. border-left: solid 4px transparent;
  594. }
  595. td.color-bar.expired {
  596. border-left-color: #B81C23;
  597. }
  598. td.color-bar.expiring {
  599. border-left-color: orange;
  600. }
  601. td.color-bar.update-available {
  602. border-left-color: #8FAE1B;
  603. }
  604. td.color-bar.expiring.update-available {
  605. border-left-color: #8FAE1B;
  606. }
  607. }
  608. /*------------------------------------------------------------------------------
  609. Connected account table
  610. ------------------------------------------------------------------------------*/
  611. .wc-helper {
  612. .connect-wrapper {
  613. background-color: #fff;
  614. border: 1px solid #e5e5e5;
  615. margin-bottom: 25px;
  616. overflow: auto;
  617. }
  618. .connected {
  619. display: flex;
  620. .user-info {
  621. display: flex;
  622. padding: 20px;
  623. width: 100%;
  624. vertical-align: middle;
  625. }
  626. img {
  627. border: 1px solid #e5e5e5;
  628. height: 34px;
  629. width: 34px;
  630. }
  631. .buttons {
  632. padding: 20px;
  633. white-space: nowrap;
  634. }
  635. p {
  636. flex: 2;
  637. margin: 10px 0 0 20px;
  638. }
  639. .chevron {
  640. display: none;
  641. &:hover {
  642. color: $woo_pink1;
  643. cursor: pointer;
  644. }
  645. }
  646. @media only screen and (max-width : 784px) {
  647. display: block;
  648. strong {
  649. display: block;
  650. overflow: hidden;
  651. text-overflow: ellipsis;
  652. }
  653. p {
  654. margin: 0;
  655. overflow: hidden;
  656. text-overflow: ellipsis;
  657. width: 80%;
  658. }
  659. .user-info {
  660. padding-right: 0;
  661. width: auto;
  662. }
  663. .avatar {
  664. margin-right: 12px;
  665. }
  666. .chevron {
  667. color: #E1E1E1;
  668. display: block;
  669. margin: 10px;
  670. transform: rotateX(0deg);
  671. }
  672. .buttons {
  673. display: none;
  674. border-top: 1px solid #E1E1E1;
  675. padding: 10px 20px;
  676. &.active {
  677. display: block;
  678. }
  679. }
  680. }
  681. }
  682. }
  683. /*------------------------------------------------------------------------------
  684. Initial connection screen
  685. ------------------------------------------------------------------------------*/
  686. .wc-helper {
  687. .start-container {
  688. background-color: #ffffff;
  689. border-left: 4px solid #cc99c2;
  690. padding: 45px 20px 20px 30px;
  691. position: relative;
  692. overflow: hidden;
  693. h2,
  694. p {
  695. max-width: 800px;
  696. }
  697. }
  698. .start-container::before {
  699. color: #eee2ec;
  700. content: "\e01C";
  701. display: block;
  702. font-family: WooCommerce;
  703. font-size: 192px;
  704. line-height: 1;
  705. position: absolute;
  706. top: 65%;
  707. right: -3%;
  708. text-align: center;
  709. width: 1em;
  710. }
  711. .start-container h2 {
  712. font-size: 24px;
  713. line-height: 29px;
  714. position: relative;
  715. }
  716. .start-container p {
  717. font-size: 16px;
  718. margin-bottom: 30px;
  719. position: relative;
  720. }
  721. .button-primary {
  722. height: 37px;
  723. line-height: 37px;
  724. min-width: 124px;
  725. padding: 0 13px;
  726. text-shadow: none;
  727. &:hover,
  728. &:active,
  729. &:focus {
  730. padding: 0 13px;
  731. }
  732. }
  733. }
  734. // ==========================================================================
  735. // FormToggle
  736. // ==========================================================================
  737. .form-toggle__wrapper {
  738. position: relative;
  739. label {
  740. cursor: default;
  741. }
  742. }
  743. .form-toggle {
  744. cursor: pointer;
  745. display: block;
  746. position: absolute;
  747. top: 0;
  748. bottom: -1px;
  749. left: 0;
  750. right: 0;
  751. text-align: left;
  752. text-indent: -100000px;
  753. z-index: 2;
  754. &:focus {
  755. box-shadow: none;
  756. }
  757. &.disabled {
  758. cursor: default;
  759. }
  760. }
  761. .form-toggle__switch {
  762. align-self: flex-start;
  763. background: lighten( $gray, 20% );
  764. border-radius: 12px;
  765. box-sizing: border-box;
  766. display: inline-block;
  767. padding: 2px;
  768. outline: 0;
  769. position: relative;
  770. width: 40px;
  771. height: 24px;
  772. transition: all .4s ease, box-shadow 0s;
  773. vertical-align: middle;
  774. &::before,
  775. &::after {
  776. content: "";
  777. display: block;
  778. position: relative;
  779. width: 20px;
  780. height: 20px;
  781. }
  782. &::after {
  783. border-radius: 50%;
  784. background: $white;
  785. left: 0;
  786. transition: all .2s ease;
  787. }
  788. &::before {
  789. display: none;
  790. }
  791. .accessible-focus &:focus {
  792. box-shadow: 0 0 0 2px $woo_pink1;
  793. }
  794. }
  795. .form-toggle__label {
  796. vertical-align: bottom;
  797. z-index: 1;
  798. .form-toggle__label-content {
  799. color: #87a6bc;
  800. flex: 0 1 100%;
  801. font-size: 13px;
  802. line-height: 16px;
  803. margin-left: 12px;
  804. margin-right: 8px;
  805. vertical-align: top;
  806. text-transform: uppercase;
  807. @media only screen and (max-width : 480px) {
  808. display: none;
  809. }
  810. }
  811. }
  812. .form-toggle {
  813. .accessible-focus &:focus {
  814. + .form-toggle__label .form-toggle__switch {
  815. box-shadow: 0 0 0 2px $woo_pink1;
  816. }
  817. &:checked + .form-toggle__label .form-toggle__switch {
  818. box-shadow: 0 0 0 2px $woo_pink2;
  819. }
  820. }
  821. & + .form-toggle__label .form-toggle__switch {
  822. background: lighten( $gray, 10% );
  823. }
  824. &:not( :disabled ) {
  825. + .form-toggle__label:hover .form-toggle__switch {
  826. background: lighten( $gray, 20% );
  827. }
  828. }
  829. &.active {
  830. + .form-toggle__label .form-toggle__switch {
  831. background: $woo_pink1;
  832. &::after {
  833. left: 8px;
  834. }
  835. }
  836. + .form-toggle__label:hover .form-toggle__switch {
  837. background: $woo_pink2;
  838. }
  839. }
  840. &.disabled {
  841. + label.form-toggle__label span.form-toggle__switch {
  842. opacity: 0.25;
  843. }
  844. }
  845. }
  846. // Classes for toggle state before action is complete (updating plugin or something)
  847. .form-toggle.is-toggling {
  848. + .form-toggle__label .form-toggle__switch {
  849. background: $woo_pink1;
  850. }
  851. &:checked {
  852. + .form-toggle__label .form-toggle__switch {
  853. background: lighten( $gray, 20% );
  854. }
  855. }
  856. }
  857. .form-toggle.is-compact {
  858. + .form-toggle__label .form-toggle__switch {
  859. border-radius: 8px;
  860. width: 24px;
  861. height: 16px;
  862. &::before,
  863. &::after {
  864. height: 12px;
  865. width: 12px;
  866. }
  867. }
  868. &:checked {
  869. + .form-toggle__label .form-toggle__switch {
  870. &::after {
  871. left: 8px;
  872. }
  873. }
  874. }
  875. }