diff --git a/src/lib-components/PullQuote.vue b/src/lib-components/PullQuote.vue index 13157e044..86687f366 100644 --- a/src/lib-components/PullQuote.vue +++ b/src/lib-components/PullQuote.vue @@ -1,27 +1,27 @@ - diff --git a/src/stories/PullQuote.stories.js b/src/stories/PullQuote.stories.js index 4a421e8f5..6b1b7355b 100644 --- a/src/stories/PullQuote.stories.js +++ b/src/stories/PullQuote.stories.js @@ -1,3 +1,4 @@ +import { computed } from 'vue' import PullQuote from '../lib-components/PullQuote' export default { @@ -46,3 +47,45 @@ export function NoAttribution() { `, } } + +export function FTVADefault() { + return { + data() { + return { + ...mock, + } + }, + provide() { + return { + theme: computed(() => 'ftva'), + } + }, + components: { PullQuote }, + template: ` + + `, + } +} +export function FTVADefaultNoAttribution() { + return { + data() { + return { + ...mock, + } + }, + provide() { + return { + theme: computed(() => 'ftva'), + } + }, + components: { PullQuote }, + template: ` + + `, + } +} diff --git a/src/styles/default/_pull-quote.scss b/src/styles/default/_pull-quote.scss new file mode 100644 index 000000000..485139ed9 --- /dev/null +++ b/src/styles/default/_pull-quote.scss @@ -0,0 +1,66 @@ +.pull-quote { + background-color: var(--color-white); + max-width: var(--container-width); + text-align: left; + font-family: var(--font-primary); + font-size: 24px; + font-style: italic; + font-weight: 600; + line-height: 150%; + letter-spacing: 0.01em; + color: var(--color-primary-blue-03); + border-left: 4px solid var(--color-default-cyan-03); + border-radius: 2px; + padding: 24px var(--spacing-text-left); + --spacing-text-left: 64px; + --container-width: $container-m-text + px; + + :deep(.rich-text) { + max-width: none; + margin: 0; + padding-right: 0; + } + + :deep(div), + :deep(p) { + color: var(--color-primary-blue-03); + font-size: 24px; + font-style: italic; + font-weight: 600; + line-height: 150%; + } + + :deep(.parsed-content) { + margin-bottom: 0; + } + + // Breakpoints + @media #{$small} { + --spacing-text-left: 24px; + --container-width: 100%; + } + + .attribution-block { + padding-top: 24px; + } + + .dash { + font-size: 48px; + font-style: normal; + font-weight: 300; + color: var(--color-secondary-grey-05); + position: absolute; + height: 58px; + } + + .attribution { + font-weight: 400; + font-size: 20px; + font-style: normal; + line-height: 140%; + align-items: center; + text-transform: uppercase; + color: var(--color-secondary-grey-05); + margin-left: 50px; + } +} \ No newline at end of file diff --git a/src/styles/ftva/_pull-quote.scss b/src/styles/ftva/_pull-quote.scss new file mode 100644 index 000000000..34ac8fafc --- /dev/null +++ b/src/styles/ftva/_pull-quote.scss @@ -0,0 +1,39 @@ +.ftva.pull-quote { + --spacing-text-left: 36px; + padding: 20px var(--spacing-text-left); + border-color: $grey-blue; + + :deep(div), + :deep(p) { + @include ftva-card-title-1; + color: $accent-blue; + line-height: 140%; + font-weight: 500; + font-style: normal; + } + :deep(strong){ + font-weight: 600; + } + + :deep(.parsed-content) { + margin-bottom: 0; + } + + .attribution-block { + padding-top: 12px; + ::before { + content: url('ucla-library-design-tokens/assets/svgs/icon-ftva-diamond.svg'); + padding-right: 8px; + filter: invert(98%) sepia(131%) saturate(1029%) hue-rotate(196deg) brightness(130%) contrast(68%); + } + .attribution { + margin-left: 0px; + @include ftva-subtitle-1; + color: $subtitle-grey; + } + } + // hide default dash for ftva + .dash { + display: none; + } +} \ No newline at end of file