fleet/website/assets/styles/components/scrollable-tweets.component.less
Eric ad610b4fae
Website: update link styles across the website. (#26544)
Closes: #25839

Changes:
- Updated the default styles for links on the Fleet website.

---------

Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2025-02-25 11:08:23 -06:00

229 lines
4.7 KiB
Text
Vendored

/**
* <scrollable-tweets>
*
* App-wide styles for horizontally scrolling rows of tweets.
*/
[parasails-component='scrollable-tweets'] {
font-size: 13px;
line-height: 20px;
position: relative;
[purpose='tweets']::-webkit-scrollbar {
display: none;
}
[purpose='previous-page-indicator'] {
display: none;
opacity: 0;
cursor: pointer;
z-index: 30;
position: absolute;
transition: transform 1s, opacity 0.25s ease-in;
transform: scale(0.5);
bottom: 50%;
left: 10px;
width: 48px;
height: 48px;
img {
width: 48px;
height: 48px;
}
}
[purpose='next-page-indicator'] {
display: none;
opacity: 0;
cursor: pointer;
position: absolute;
transition: transform 1s, opacity 0.25s ease-in;
transform: scale(0.5);
bottom: 50%;
z-index: 30;
right: 10px;
width: 48px;
height: 48px;
img {
width: 48px;
height: 48px;
}
}
[purpose='tweets'] {
overflow-x: scroll;
scroll-behavior: smooth;
padding-left: 120px;
padding-right: 120px;
margin-top: 80px;
margin-bottom: 80px;
scrollbar-width: none;
-ms-overflow-style: none;
&:hover {
[purpose='previous-page-indicator'] {
opacity: 1;
transform: scale(1.0);
}
[purpose='next-page-indicator'] {
opacity: 1;
transform: scale(1.0);
}
}
}
[purpose='tweet-card'] {
box-shadow: none;
background-color: #FFF;
[purpose='logo'] {
img {
max-height: 32px;
}
min-height: 0;
margin-bottom: 24px;
}
[purpose='quote'] {
margin-bottom: 24px;
color: #515774;
font-size: 14px;
font-weight: 400;
line-height: 150%;
}
[purpose='quote-author-info'] {
[purpose='job-title'] {
font-size: 12px !important;//lesshint-disable-line importantRule,duplicateProperty
line-height: 18px !important;//lesshint-disable-line importantRule,duplicateProperty
}
[purpose='name'] {
text-transform: capitalize;
color: @core-fleet-black !important;//lesshint-disable-line importantRule,duplicateProperty
}
[purpose='profile-picture'] {
margin-right: 16px;
img {
height: 48px;
width: 48px;
border-radius: 50%;
}
}
}
[purpose='video-link'] {
cursor: pointer;
color: @core-vibrant-blue;
}
height: fit-content;
max-width: 360px;
min-width: 360px;
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 8px;
margin-right: 8px;
margin-bottom: 8px;
text-align: left;
background: #FFFFFF;
padding: 24px;
border: 1px solid @core-vibrant-blue-15;
box-sizing: border-box;
border-radius: 16px;
text-decoration: none;
&:hover {
text-decoration: none;
pointer: cursor;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}
}
[purpose='video-modal'] {
[purpose='modal-dialog'] {
width: 100%;
max-width: 100%;
}
[purpose='modal-content'] {
max-width: 1140px;
height: 641px;
background-color: transparent;
box-shadow: none;
border: none;
padding: 0px;
margin-top: 150px;
margin-left: auto;
margin-right: auto;
[purpose='modal-close-button'] {
top: -40px;
right: 0px;
border-radius: 50%;
width: 32px;
height: 32px;
padding: 0px 0px 4px 0px;
background-color: #192147;
color: #FFF;
opacity: 1;
}
}
iframe {
width: 1140px;
height: 641px;
}
}
@media(hover) {
[purpose='previous-page-indicator'] {
display: flex;
}
[purpose='next-page-indicator'] {
display: flex;
}
}
@media (max-width: 991px) {
[purpose='tweets'] {
padding-left: 80px;
padding-right: 80px;
}
}
@media (max-width: 768px) {
[purpose='tweets'] {
padding-left: 40px;
padding-right: 40px;
}
[purpose='video-modal'] {
[purpose='modal-dialog'] {
max-width: 97vw;
}
[purpose='modal-content'] {
max-width: 540px;
height: 304px;
}
iframe {
width: 540px;
height: 304px;
}
}
}
@media (max-width: 575px) {
[purpose='tweets'] {
padding-left: 20px;
padding-right: 20px;
}
[purpose='tweet-card'] {
min-width: 280px;
padding: 20px;
border-radius: 16px;
}
[purpose='video-modal'] {
[purpose='modal-content'] {
width: 95vw;
height: calc(~'9/16 * 95vw');
}
iframe {
width: 95vw;
height: calc(~'9/16 * 95vw');
}
}
}
}