mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 19:33:56 +08:00
174d392e5a
Run `prettier --write "app/assets/stylesheets/**/*.scss" "plugins/**/*.scss"` after making sure you installed it with `yarn` It's recommended to configure your editor to run prettier on file save.
87 lines
1.5 KiB
SCSS
87 lines
1.5 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: 6px 10px 10px 10px;
|
|
width: 300px;
|
|
display: none;
|
|
&.visible {
|
|
display: block;
|
|
}
|
|
input[type="text"] {
|
|
width: 96%;
|
|
}
|
|
.share-for-touch .overflow-ellipsis {
|
|
clear: both;
|
|
}
|
|
.share-for-touch {
|
|
margin: 14px 0;
|
|
}
|
|
h3 {
|
|
font-size: $font-0;
|
|
}
|
|
.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-left: 2px;
|
|
margin-right: 8px;
|
|
float: left;
|
|
font-size: $font-up-4;
|
|
}
|
|
.reply-as-new-topic {
|
|
float: left;
|
|
line-height: $line-height-large;
|
|
margin-left: 8px;
|
|
margin-top: 0.5em;
|
|
.fa {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
.link {
|
|
margin-right: 2px;
|
|
float: right;
|
|
font-size: $font-up-3;
|
|
a {
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
margin: 5px 0;
|
|
float: left;
|
|
}
|
|
|
|
.date {
|
|
float: right;
|
|
margin: 5px;
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
}
|
|
|
|
input[type="text"] {
|
|
font-size: $font-up-1;
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
.discourse-no-touch #share-link .share-for-touch {
|
|
display: none;
|
|
}
|
|
|
|
.discourse-touch #share-link input[type="text"] {
|
|
display: none;
|
|
}
|