-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: APPS-2957 Create FTVA Pullquote (#617)
* feat: ftva pull-quote * chore: lint * fix: font weight, non italic * fix: bolder bold inside pullquote * fix: font weight * fix: add 12px --------- Co-authored-by: Jess Divers <[email protected]> Co-authored-by: Parinita Mulak <[email protected]>
- Loading branch information
1 parent
6574e35
commit 65577e8
Showing
4 changed files
with
167 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
65577e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ucla-library-storybook.netlify.app as production
🚀 Deployed on https://66f2fbd040593408e71b45de--ucla-library-storybook.netlify.app