mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 08:23:44 +08:00
c937afc75e
A first step to adding automatic dark mode color scheme switching. Adds a new SCSS file at `color_definitions.scss` that serves to output all SCSS color variables as CSS custom properties. And replaces all SCSS color variables with the new CSS custom properties throughout the stylesheets. This is an alpha feature at this point, can only be enabled via console using the `default_dark_mode_color_scheme_id` site setting.
104 lines
1.9 KiB
SCSS
104 lines
1.9 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: var(--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: var(--primary-med-or-secondary-med);
|
|
}
|
|
}
|
|
|
|
.copy-text {
|
|
display: inline-block;
|
|
position: absolute;
|
|
margin: 5px 5px 5px 15px;
|
|
color: var(--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: var(--tertiary-or-white);
|
|
}
|
|
.d-icon-fab-facebook {
|
|
// Adheres to Facebook brand guidelines
|
|
color: var(--facebook-or-white);
|
|
}
|
|
.d-icon-fab-twitter-square {
|
|
// Adheres to Twitter brand guidelines
|
|
color: var(--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: var(--primary-med-or-secondary-med);
|
|
}
|
|
|
|
.new-topic {
|
|
margin-right: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|