From ecb06552410fdbc7329a1e3317be190d224d6ba0 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:04:41 -0500 Subject: [PATCH] Merge pull request #20572 from overleaf/jel-cms-styled-list [web] Render styled lists on `Element | Content` GitOrigin-RevId: 9d951e2339a85cc89b14991bbde2bc4d4316852a --- .../bootstrap-5/components/all.scss | 1 + .../bootstrap-5/components/list.scss | 33 +++++++++++++++++++ .../website-redesign/check-in-blue-circle.svg | 9 +++++ .../check-in-green-circle.svg | 9 +++++ 4 files changed, 52 insertions(+) create mode 100644 services/web/frontend/stylesheets/bootstrap-5/components/list.scss create mode 100644 services/web/public/img/website-redesign/check-in-blue-circle.svg create mode 100644 services/web/public/img/website-redesign/check-in-green-circle.svg diff --git a/services/web/frontend/stylesheets/bootstrap-5/components/all.scss b/services/web/frontend/stylesheets/bootstrap-5/components/all.scss index d368999211..7d50253664 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/components/all.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/components/all.scss @@ -10,6 +10,7 @@ @import 'badge'; @import 'form'; @import 'input-suggestions'; +@import 'list'; @import 'modal'; @import 'quote'; @import 'footer'; diff --git a/services/web/frontend/stylesheets/bootstrap-5/components/list.scss b/services/web/frontend/stylesheets/bootstrap-5/components/list.scss new file mode 100644 index 0000000000..dd4f030075 --- /dev/null +++ b/services/web/frontend/stylesheets/bootstrap-5/components/list.scss @@ -0,0 +1,33 @@ +@mixin list-checkmark { + $icon-size: 24px; + + ul { + list-style: none; + margin-top: var(--spacing-06); + padding-left: 0; + } + + li { + background-size: $icon-size $icon-size; + margin-bottom: var(--spacing-05); + padding-left: calc(var(--spacing-05) + $icon-size); + } +} + +.list-checkmark-green { + @include list-checkmark; + + li { + background: url('../../../../public/img/website-redesign/check-in-green-circle.svg') + no-repeat left top; + } +} + +.list-checkmark-blue { + @include list-checkmark; + + li { + background: url('../../../../public/img/website-redesign/check-in-blue-circle.svg') + no-repeat left top; + } +} diff --git a/services/web/public/img/website-redesign/check-in-blue-circle.svg b/services/web/public/img/website-redesign/check-in-blue-circle.svg new file mode 100644 index 0000000000..11af81dd9f --- /dev/null +++ b/services/web/public/img/website-redesign/check-in-blue-circle.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/services/web/public/img/website-redesign/check-in-green-circle.svg b/services/web/public/img/website-redesign/check-in-green-circle.svg new file mode 100644 index 0000000000..507c304c46 --- /dev/null +++ b/services/web/public/img/website-redesign/check-in-green-circle.svg @@ -0,0 +1,9 @@ + + + + + + + + +