discourse/app/assets/stylesheets/common/base/share_link.scss
2020-07-29 12:01:12 -04:00

104 lines
1.8 KiB
SCSS

// styles that apply to the "share" popup when sharing a link to a post or topic
#share-link {
position: absolute;
left: 20px;
z-index: z("dropdown");
box-shadow: shadow("card");
background-color: $secondary;
padding: 8px 8px 4px 8px;
width: 300px;
display: none;
&.visible {
display: block;
}
input[type="text"] {
width: 100%;
}
.title {
margin-bottom: 4px;
align-items: center;
display: flex;
justify-content: space-between;
h3 {
font-size: $font-0;
margin: 0;
}
.date {
font-weight: normal;
color: $primary-med-or-secondary-med;
}
}
.copy-text {
display: inline-block;
position: absolute;
margin: 5px 5px 5px 15px;
color: $success;
opacity: 1;
transition: opacity 0.25s;
font-size: $font-0;
&:not(.success) {
opacity: 0;
}
}
.social-link {
margin-right: 8px;
font-size: $font-up-4;
.d-icon {
color: $tertiary-or-white;
}
.d-icon-fab-facebook {
// Adheres to Facebook brand guidelines
color: $facebook-or-white;
}
.d-icon-fab-twitter-square {
// Adheres to Twitter brand guidelines
color: $twitter-or-white;
}
}
input[type="text"] {
font-size: $font-up-1;
margin-bottom: 0;
}
.actions {
display: flex;
align-items: flex-end;
margin-top: 8px;
.sources {
display: flex;
align-items: center;
flex-wrap: wrap;
flex-direction: row;
max-width: 45%;
.social-link {
margin-right: 8px;
}
}
.alt-actions {
display: flex;
align-items: center;
flex: 1;
justify-content: flex-end;
height: 36px;
.close-share {
font-size: $font-up-3;
color: $primary-med-or-secondary-med;
}
.new-topic {
margin-right: 16px;
}
}
}
}