2013-09-06 03:37:07 +08:00
|
|
|
a.loading-onebox {
|
2018-06-20 01:07:16 +08:00
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
display: inline-flex;
|
|
|
|
float: left;
|
|
|
|
margin: 3px 5px 0 0;
|
|
|
|
position: relative;
|
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 2px solid var(--primary-low-mid);
|
2018-06-20 01:07:16 +08:00
|
|
|
border-right-color: transparent;
|
|
|
|
border-radius: 50%;
|
|
|
|
-webkit-animation: rotate-forever 1s infinite linear;
|
|
|
|
animation: rotate-forever 1s infinite linear;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.onebox-result {
|
2018-06-20 01:07:16 +08:00
|
|
|
@include post-aside;
|
|
|
|
|
|
|
|
margin-top: 15px;
|
|
|
|
padding: 12px;
|
|
|
|
font-size: $font-0;
|
|
|
|
> .source {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
margin-right: 10px;
|
|
|
|
display: block;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2018-06-20 01:07:16 +08:00
|
|
|
position: relative;
|
|
|
|
height: 20px;
|
|
|
|
.info {
|
|
|
|
a {
|
|
|
|
color: black;
|
|
|
|
text-decoration: none;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
position: absolute;
|
|
|
|
font-size: $font-0;
|
|
|
|
img.favicon {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.onebox-result-body {
|
|
|
|
padding-top: 5px;
|
|
|
|
img {
|
|
|
|
max-height: 80%;
|
|
|
|
max-width: 25%;
|
|
|
|
height: auto;
|
|
|
|
float: left;
|
2020-11-24 05:16:50 +08:00
|
|
|
margin-right: 1em;
|
2018-06-20 01:07:16 +08:00
|
|
|
}
|
|
|
|
h3,
|
|
|
|
h4 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
code {
|
|
|
|
max-height: 400px;
|
|
|
|
}
|
|
|
|
.metrics {
|
|
|
|
clear: both;
|
|
|
|
padding-bottom: 25px;
|
|
|
|
.metric {
|
|
|
|
display: inline-block;
|
|
|
|
padding-left: 33px;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// RottenTomatoes Onebox
|
|
|
|
.onebox-result {
|
2018-06-20 01:07:16 +08:00
|
|
|
.onebox-result-body {
|
|
|
|
img.verdict {
|
|
|
|
float: none;
|
|
|
|
margin-right: 7px;
|
|
|
|
}
|
|
|
|
img.popcorn {
|
|
|
|
float: none;
|
|
|
|
margin-left: 20px;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-01-28 06:58:53 +08:00
|
|
|
|
|
|
|
@mixin onebox-favicon($class, $image) {
|
2018-06-20 01:07:16 +08:00
|
|
|
&.#{$class} .source {
|
2021-04-12 11:57:39 +08:00
|
|
|
background: absolute-image-url("/favicons/#{$image}.png") no-repeat 0% 50%;
|
2018-06-20 01:07:16 +08:00
|
|
|
background-size: 16px 16px;
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
2014-01-28 06:58:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
aside.onebox {
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 5px solid var(--primary-low);
|
2021-05-26 11:52:33 +08:00
|
|
|
margin: 1em 0;
|
2020-11-24 05:16:50 +08:00
|
|
|
padding: 1em;
|
2018-06-20 01:07:16 +08:00
|
|
|
font-size: $font-0;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--secondary);
|
2018-06-20 01:07:16 +08:00
|
|
|
|
|
|
|
header {
|
2020-11-24 05:16:50 +08:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
|
2021-04-08 21:58:12 +08:00
|
|
|
.d-icon {
|
|
|
|
margin-right: 5px;
|
|
|
|
margin-top: 2px;
|
|
|
|
|
|
|
|
&.d-icon-fab-twitter {
|
|
|
|
color: var(--twitter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-20 01:07:16 +08:00
|
|
|
a[href] {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2018-06-20 01:07:16 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include onebox-favicon("stackexchange", "stackexchange");
|
|
|
|
@include onebox-favicon("instagram", "instagram");
|
|
|
|
@include onebox-favicon("googledocs", "google_branding/logo_drive_48px");
|
2019-04-10 16:07:24 +08:00
|
|
|
@include onebox-favicon("googledrive", "google_branding/logo_drive_48px");
|
2018-06-20 01:07:16 +08:00
|
|
|
|
|
|
|
.onebox-body {
|
|
|
|
clear: both;
|
|
|
|
|
|
|
|
h3,
|
|
|
|
h4 {
|
|
|
|
font-size: $font-up-1;
|
|
|
|
margin: 0 0 10px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a[href] {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2018-06-20 01:07:16 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a[href]:visited {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2018-06-20 01:07:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-height: 170px;
|
|
|
|
max-width: 20%;
|
|
|
|
@media all and (max-width: 600px) {
|
|
|
|
max-width: 35%;
|
|
|
|
}
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
|
|
|
float: left;
|
2020-11-24 05:16:50 +08:00
|
|
|
margin-right: 1em;
|
2018-06-20 01:07:16 +08:00
|
|
|
&.onebox-full-image {
|
|
|
|
max-height: none;
|
|
|
|
max-width: none;
|
|
|
|
width: initial;
|
|
|
|
height: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-15 14:52:04 +08:00
|
|
|
.github-body-container {
|
2021-04-15 16:58:39 +08:00
|
|
|
margin: 1em 0 0 0;
|
2021-04-15 14:52:04 +08:00
|
|
|
color: var(--primary-very-high);
|
|
|
|
max-height: 400px;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
overflow-y: auto;
|
|
|
|
word-break: break-word;
|
|
|
|
font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono",
|
|
|
|
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
|
2021-04-15 16:58:39 +08:00
|
|
|
flex: 1 0 100%;
|
|
|
|
box-sizing: border-box;
|
2021-04-15 14:52:04 +08:00
|
|
|
|
|
|
|
.show-more {
|
|
|
|
// padding on right for larger hitzone
|
2021-04-15 16:58:39 +08:00
|
|
|
padding: 0.5em 1.5em 0em 0.25em;
|
2021-04-12 16:45:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-20 01:07:16 +08:00
|
|
|
[style*="--aspect-ratio"] > :first-child {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
[style*="--aspect-ratio"] > img {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
// this allows us to load all onebox images without jiggle
|
|
|
|
// see: http://cssmojo.com/aspect-ratio-using-custom-properties-and-calc/
|
|
|
|
@supports (--custom: property) {
|
|
|
|
.aspect-image {
|
|
|
|
max-height: 170px;
|
|
|
|
--magic-ratio: calc(var(--aspect-ratio) + 0.15);
|
|
|
|
width: calc(128px * var(--magic-ratio));
|
|
|
|
max-width: 20%;
|
|
|
|
float: left;
|
2020-11-24 05:16:50 +08:00
|
|
|
margin-right: 1em;
|
2018-06-20 01:07:16 +08:00
|
|
|
height: auto;
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: inherit;
|
|
|
|
max-width: initial;
|
|
|
|
max-height: initial;
|
|
|
|
float: none;
|
|
|
|
margin-right: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// full size images for instagram, twitter, etc.
|
|
|
|
.aspect-image-full-size {
|
2020-11-23 07:49:02 +08:00
|
|
|
margin: 0.5em 0;
|
2020-05-06 18:28:30 +08:00
|
|
|
max-height: 100%;
|
2018-06-20 01:07:16 +08:00
|
|
|
width: calc(500px * var(--aspect-ratio));
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: inherit;
|
|
|
|
max-width: initial;
|
|
|
|
max-height: initial;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[style*="--aspect-ratio"] {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
[style*="--aspect-ratio"]::before {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
padding-bottom: calc(100% / (var(--aspect-ratio)));
|
|
|
|
}
|
|
|
|
[style*="--aspect-ratio"] > :first-child {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// tighten bottom margin on last para
|
|
|
|
p:last-child {
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// twitter fixes
|
|
|
|
.tweet-images {
|
|
|
|
display: block;
|
|
|
|
clear: both;
|
|
|
|
|
|
|
|
img.tweet-image {
|
|
|
|
margin-top: 1em;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
float: none;
|
|
|
|
}
|
2019-08-12 23:03:54 +08:00
|
|
|
|
|
|
|
@include breakpoint(mobile-extra-large) {
|
|
|
|
// Prevent twitter embeds from being taller than the mobile viewport
|
|
|
|
iframe {
|
|
|
|
max-height: 70vh;
|
|
|
|
}
|
|
|
|
}
|
2018-06-20 01:07:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.user-onebox {
|
|
|
|
.fa {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
.full-name,
|
|
|
|
.location {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-04 17:24:30 +08:00
|
|
|
// instagram + reddit fixes
|
|
|
|
.instagram-images,
|
|
|
|
.scale-images {
|
2018-06-20 01:07:16 +08:00
|
|
|
clear: both;
|
2018-08-31 11:10:36 +08:00
|
|
|
position: relative;
|
|
|
|
|
2019-04-04 17:24:30 +08:00
|
|
|
.instagram-image,
|
|
|
|
.scale-image {
|
2018-06-20 01:07:16 +08:00
|
|
|
padding: 5px 5px 5px 5px;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
2019-05-10 17:46:07 +08:00
|
|
|
|
|
|
|
.instagram-video-icon {
|
|
|
|
&:before {
|
|
|
|
opacity: 0.8;
|
|
|
|
// ideally, the SVG used here should be in HTML and reference the SVG sprite
|
|
|
|
content: svg-uri(
|
|
|
|
'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" viewBox="0 0 512 512" fill="white"><path d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"></path></svg>'
|
|
|
|
);
|
|
|
|
}
|
2020-05-06 22:03:50 +08:00
|
|
|
bottom: 15px;
|
2019-05-10 17:46:07 +08:00
|
|
|
right: 10px;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2018-06-20 01:07:16 +08:00
|
|
|
}
|
2014-01-28 06:58:53 +08:00
|
|
|
}
|
|
|
|
|
2015-09-24 04:57:54 +08:00
|
|
|
@mixin gdocs-logo($type) {
|
2018-06-20 01:07:16 +08:00
|
|
|
&.g-#{$type}-logo {
|
2021-04-12 11:57:39 +08:00
|
|
|
background: absolute-image-url(
|
|
|
|
"/favicons/google_branding/logo_#{$type}_48px.png"
|
|
|
|
)
|
2018-06-20 01:07:16 +08:00
|
|
|
no-repeat;
|
|
|
|
}
|
2015-09-24 04:57:54 +08:00
|
|
|
}
|
|
|
|
|
2016-08-10 20:25:04 +08:00
|
|
|
.googledocs-onebox-logo {
|
2018-06-20 01:07:16 +08:00
|
|
|
width: 60px;
|
|
|
|
height: 50px;
|
|
|
|
float: left;
|
|
|
|
@include gdocs-logo("docs");
|
|
|
|
@include gdocs-logo("forms");
|
|
|
|
@include gdocs-logo("sheets");
|
|
|
|
@include gdocs-logo("slides");
|
|
|
|
@include gdocs-logo("calendar");
|
|
|
|
@include gdocs-logo("drive");
|
2016-08-10 20:25:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Google Calendar Placeholder
|
2015-09-24 04:57:54 +08:00
|
|
|
.gdocs-onebox-splash {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-low-mid);
|
|
|
|
color: var(--primary);
|
|
|
|
border: 1px inset var(--primary);
|
2018-06-20 01:07:16 +08:00
|
|
|
.gdocs-onebox-logo {
|
|
|
|
display: inline-block;
|
|
|
|
width: 128px;
|
|
|
|
height: 128px;
|
|
|
|
&.g-calendar-logo {
|
2021-04-12 11:57:39 +08:00
|
|
|
background: absolute-image-url(
|
|
|
|
"/favicons/google_branding/logo_calendar_128px.png"
|
|
|
|
)
|
2018-06-20 01:07:16 +08:00
|
|
|
no-repeat;
|
|
|
|
}
|
|
|
|
}
|
2015-09-24 04:57:54 +08:00
|
|
|
}
|
|
|
|
|
2021-01-22 22:35:28 +08:00
|
|
|
aside.onebox .onebox-body .onebox-avatar {
|
2018-06-20 01:07:16 +08:00
|
|
|
max-height: none;
|
|
|
|
max-width: none;
|
|
|
|
height: 60px;
|
|
|
|
width: 60px;
|
2014-03-25 12:52:40 +08:00
|
|
|
}
|
2014-05-23 09:55:50 +08:00
|
|
|
|
|
|
|
blockquote {
|
2018-06-20 01:07:16 +08:00
|
|
|
aside.onebox {
|
|
|
|
@include post-aside;
|
|
|
|
}
|
2014-10-18 00:32:24 +08:00
|
|
|
}
|
2014-09-28 12:37:21 +08:00
|
|
|
|
2020-11-24 05:16:50 +08:00
|
|
|
pre.onebox {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2014-09-28 12:37:21 +08:00
|
|
|
// -- Onebox Github Code Blob --
|
|
|
|
pre.onebox code ol.lines li:before {
|
2018-06-20 01:07:16 +08:00
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
width: 35px;
|
|
|
|
left: -40px;
|
|
|
|
color: #afafaf;
|
|
|
|
text-align: right;
|
|
|
|
padding-right: 5px;
|
|
|
|
font-size: $font-down-1;
|
|
|
|
line-height: $line-height-large;
|
|
|
|
content: counter(li-counter);
|
|
|
|
counter-increment: li-counter;
|
2014-09-28 12:37:21 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
pre.onebox code ol {
|
2018-06-20 01:07:16 +08:00
|
|
|
margin-left: 0;
|
|
|
|
line-height: $line-height-large;
|
2014-09-28 12:37:21 +08:00
|
|
|
}
|
2015-08-19 06:02:41 +08:00
|
|
|
pre.onebox code {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-very-low);
|
2015-08-19 06:02:41 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
pre.onebox code li {
|
2018-06-20 01:07:16 +08:00
|
|
|
padding-left: 5px;
|
2014-09-28 12:37:21 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
pre.onebox code ol.lines {
|
2018-06-20 01:07:16 +08:00
|
|
|
position: relative;
|
|
|
|
margin: 0 0 0 40px;
|
2014-09-28 12:37:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre.onebox code ol.lines li {
|
2018-06-20 01:07:16 +08:00
|
|
|
list-style-type: none;
|
|
|
|
padding-left: 5px;
|
|
|
|
margin-left: 0;
|
|
|
|
border-left: 1px solid #cfcfcf;
|
|
|
|
min-height: 1.5em; //show empty li lines
|
|
|
|
white-space: pre;
|
2014-09-28 12:37:21 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
pre.onebox code li.selected {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--highlight-low-or-medium);
|
2014-09-28 12:37:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre.onebox code {
|
2018-06-20 01:07:16 +08:00
|
|
|
white-space: normal;
|
2014-09-28 12:37:21 +08:00
|
|
|
}
|
2014-09-29 12:33:20 +08:00
|
|
|
|
2020-11-19 01:55:16 +08:00
|
|
|
.onebox-warning-message {
|
|
|
|
margin-top: 5px;
|
|
|
|
color: var(--primary-med-or-secondary-med);
|
|
|
|
img.emoji {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-08 02:26:10 +08:00
|
|
|
// Onebox - Github - PR, Commit & Issue
|
|
|
|
.onebox.githubpullrequest,
|
|
|
|
.onebox.githubcommit,
|
|
|
|
.onebox.githubissue {
|
2019-10-09 18:47:58 +08:00
|
|
|
.onebox-body {
|
|
|
|
h4 {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .github-icon {
|
|
|
|
// For backwards compatibility with old onebox
|
|
|
|
float: left;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-row {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-icon-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
2019-10-08 02:26:10 +08:00
|
|
|
.github-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
fill: var(--primary-high);
|
2019-10-09 18:47:58 +08:00
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.branches {
|
|
|
|
font-size: $font-down-1;
|
2019-10-11 09:35:36 +08:00
|
|
|
code {
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
2019-10-09 18:47:58 +08:00
|
|
|
}
|
|
|
|
|
2019-10-17 18:00:44 +08:00
|
|
|
.github-info-container {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-10-09 18:47:58 +08:00
|
|
|
.github-info {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
2019-10-17 18:00:44 +08:00
|
|
|
width: 100%;
|
2019-10-09 18:47:58 +08:00
|
|
|
|
|
|
|
> div {
|
|
|
|
margin: 2.5px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> div:not(:last-child) {
|
|
|
|
margin-right: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lines {
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
.added {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--success);
|
2019-10-09 18:47:58 +08:00
|
|
|
}
|
|
|
|
.removed {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
2019-10-09 18:47:58 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-08 02:26:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.onebox-avatar-inline {
|
2019-10-09 18:47:58 +08:00
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
border-radius: 2px;
|
|
|
|
float: none;
|
|
|
|
margin: 0;
|
2019-10-11 09:35:36 +08:00
|
|
|
padding: 0;
|
2019-10-09 18:47:58 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2019-10-09 19:28:48 +08:00
|
|
|
.labels span {
|
|
|
|
// !important required to override inline style attribute
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-medium) !important;
|
|
|
|
color: var(--secondary) !important;
|
2019-10-09 19:28:48 +08:00
|
|
|
padding: 2px 4px !important;
|
|
|
|
}
|
2021-06-26 01:48:36 +08:00
|
|
|
|
|
|
|
.emoji {
|
|
|
|
max-height: 15px;
|
|
|
|
margin: 0.2em;
|
|
|
|
}
|
2019-10-08 02:26:10 +08:00
|
|
|
}
|
|
|
|
|
2021-05-27 17:38:42 +08:00
|
|
|
.onebox.githubactions {
|
|
|
|
h4 {
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-row {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-icon-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-icon {
|
|
|
|
fill: var(--primary-medium);
|
|
|
|
width: var(--font-up-3);
|
|
|
|
height: var(--font-up-3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-icon-success {
|
|
|
|
fill: var(--success);
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-icon-failure {
|
|
|
|
fill: var(--danger);
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-icon-pending {
|
|
|
|
fill: #dbab0a;
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-info {
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-run-number {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-29 12:33:20 +08:00
|
|
|
//Onebox - Github - Pull request
|
|
|
|
.onebox-body .github-commit-status {
|
2018-06-20 01:07:16 +08:00
|
|
|
background: #f5f5f5;
|
|
|
|
border-radius: 5px;
|
|
|
|
margin: 0 0 5px 100px;
|
|
|
|
padding: 10px;
|
2014-09-29 12:33:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.onebox-body .status_tag {
|
2018-06-20 01:07:16 +08:00
|
|
|
display: inline-block;
|
|
|
|
color: #fff;
|
|
|
|
padding: 1px 4px;
|
|
|
|
border-radius: 3px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
text-transform: capitalize;
|
2014-09-29 12:33:20 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.onebox-body .build_status {
|
2018-06-20 01:07:16 +08:00
|
|
|
padding: 2px;
|
|
|
|
font-size: $font-down-1;
|
2014-09-29 12:33:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.onebox-body .status_tag.open {
|
2018-06-20 01:07:16 +08:00
|
|
|
background-color: #6cc644;
|
2014-09-29 12:33:20 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.onebox-body .status_tag.merged {
|
2018-06-20 01:07:16 +08:00
|
|
|
background-color: #6e5494;
|
2014-09-29 12:33:20 +08:00
|
|
|
}
|
|
|
|
.onebox-body .status_tag.closed {
|
2018-06-20 01:07:16 +08:00
|
|
|
background-color: #bd2c00;
|
2014-09-29 12:33:20 +08:00
|
|
|
}
|
|
|
|
|
2015-07-22 01:21:26 +08:00
|
|
|
//Onebox - Twitter - Status
|
|
|
|
aside.onebox.twitterstatus .onebox-body {
|
2018-06-20 01:07:16 +08:00
|
|
|
h4 {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2015-07-22 01:21:26 +08:00
|
|
|
}
|
2017-02-09 09:08:40 +08:00
|
|
|
|
|
|
|
// thumbnail, oddly, ONLY applies to twitter avatar
|
2015-07-22 01:21:26 +08:00
|
|
|
.onebox.twitterstatus {
|
2021-05-27 13:35:32 +08:00
|
|
|
.thumbnail,
|
|
|
|
.thumbnail.onebox-avatar {
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
.twitter-screen-name {
|
|
|
|
font-size: var(--font-down-1);
|
2018-06-20 01:07:16 +08:00
|
|
|
}
|
|
|
|
p,
|
|
|
|
.tweet {
|
2021-05-27 13:35:32 +08:00
|
|
|
clear: left;
|
|
|
|
padding: 1em 0;
|
2019-07-03 22:34:46 +08:00
|
|
|
|
2019-07-05 22:05:36 +08:00
|
|
|
.quoted {
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 1px solid var(--primary-low);
|
2021-05-27 13:35:32 +08:00
|
|
|
padding: 0.5em 1em;
|
|
|
|
margin-top: 1em;
|
2019-07-05 22:05:36 +08:00
|
|
|
white-space: normal;
|
2019-07-03 22:34:46 +08:00
|
|
|
|
2019-07-05 22:05:36 +08:00
|
|
|
.quoted-link {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2019-07-03 22:34:46 +08:00
|
|
|
|
2019-07-05 22:05:36 +08:00
|
|
|
.quoted-title {
|
|
|
|
font-weight: bold;
|
2021-05-27 13:35:32 +08:00
|
|
|
margin: 0.5em 0;
|
|
|
|
padding: 0;
|
2019-07-03 22:34:46 +08:00
|
|
|
|
2019-07-05 22:05:36 +08:00
|
|
|
span {
|
|
|
|
font-weight: lighter;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2019-07-03 22:34:46 +08:00
|
|
|
}
|
2019-07-05 22:05:36 +08:00
|
|
|
}
|
2019-07-03 22:34:46 +08:00
|
|
|
|
2019-07-05 22:05:36 +08:00
|
|
|
div {
|
|
|
|
margin-bottom: 5px;
|
2019-07-03 22:34:46 +08:00
|
|
|
}
|
|
|
|
}
|
2018-06-20 01:07:16 +08:00
|
|
|
}
|
2015-07-11 04:22:16 +08:00
|
|
|
}
|
2015-11-03 14:55:22 +08:00
|
|
|
|
2019-09-12 01:53:11 +08:00
|
|
|
// Onebox - Imgur/Flickr - Album
|
2019-09-12 02:02:58 +08:00
|
|
|
.onebox.imgur-album,
|
|
|
|
.onebox.flickr-album {
|
2018-06-20 01:07:16 +08:00
|
|
|
.outer-box {
|
|
|
|
position: absolute;
|
|
|
|
z-index: z("base");
|
|
|
|
font-size: $font-down-1;
|
|
|
|
color: #fff;
|
|
|
|
background-color: rgba(0, 0, 0, 0.6);
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
|
|
|
max-width: 690px;
|
2018-06-20 01:07:16 +08:00
|
|
|
padding: 5px 0;
|
|
|
|
|
|
|
|
.inner-box {
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
overflow: hidden;
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
2018-06-20 01:07:16 +08:00
|
|
|
|
|
|
|
.album-title {
|
|
|
|
width: 100%;
|
|
|
|
font-size: $font-up-1;
|
|
|
|
line-height: $line-height-large;
|
|
|
|
color: #ccc;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-11-03 14:55:22 +08:00
|
|
|
}
|
2015-11-03 21:41:15 +08:00
|
|
|
|
|
|
|
// resize stackexchange onebox image
|
2016-07-14 00:24:49 +08:00
|
|
|
aside.onebox.stackexchange .onebox-body {
|
2018-06-20 01:07:16 +08:00
|
|
|
img:not(.onebox-avatar) {
|
|
|
|
max-height: 60%;
|
|
|
|
max-width: 10%;
|
|
|
|
}
|
2016-07-14 00:24:49 +08:00
|
|
|
|
2018-06-20 01:07:16 +08:00
|
|
|
.tags {
|
|
|
|
color: gray;
|
|
|
|
}
|
2015-11-03 21:41:15 +08:00
|
|
|
}
|
2016-04-25 11:04:07 +08:00
|
|
|
|
2016-06-07 15:26:38 +08:00
|
|
|
.onebox-metadata {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2016-06-07 15:26:38 +08:00
|
|
|
}
|
|
|
|
|
2021-06-18 21:15:03 +08:00
|
|
|
aside.onebox.xkcd .onebox-body img {
|
|
|
|
float: none;
|
|
|
|
max-height: unset;
|
2016-11-28 22:14:59 +08:00
|
|
|
}
|
2017-02-08 14:38:41 +08:00
|
|
|
|
|
|
|
// pdf onebox
|
|
|
|
.onebox.pdf .onebox-body {
|
2018-06-20 01:07:16 +08:00
|
|
|
.pdf-onebox-logo {
|
|
|
|
width: 60px;
|
|
|
|
height: 50px;
|
|
|
|
float: left;
|
2021-04-12 11:57:39 +08:00
|
|
|
background: absolute-image-url("/favicons/pdf_64px.png") no-repeat;
|
2018-06-20 01:07:16 +08:00
|
|
|
background-size: 48px 48px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.filesize {
|
|
|
|
color: gray;
|
|
|
|
}
|
2017-02-08 14:38:41 +08:00
|
|
|
}
|
|
|
|
|
2020-07-27 08:23:54 +08:00
|
|
|
// allowlistedgeneric twitter labels
|
|
|
|
.onebox.allowlistedgeneric,
|
2017-11-01 18:14:00 +08:00
|
|
|
.onebox.whitelistedgeneric {
|
2018-06-20 01:07:16 +08:00
|
|
|
.label1,
|
|
|
|
.label2 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2018-06-20 01:07:16 +08:00
|
|
|
}
|
|
|
|
.label1 {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.label2 {
|
|
|
|
float: right;
|
|
|
|
}
|
2018-02-12 23:39:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.onebox {
|
2020-07-27 08:23:54 +08:00
|
|
|
&.allowlistedgeneric,
|
2018-06-20 01:07:16 +08:00
|
|
|
&.whitelistedgeneric,
|
2020-11-25 07:51:29 +08:00
|
|
|
&.gfycat,
|
|
|
|
&.githubfolder {
|
2018-06-20 01:07:16 +08:00
|
|
|
.site-icon {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2020-11-24 05:16:50 +08:00
|
|
|
margin-right: 0.5em;
|
2018-06-20 01:07:16 +08:00
|
|
|
}
|
|
|
|
}
|
2020-12-10 01:36:05 +08:00
|
|
|
&.category-onebox {
|
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
padding-left: calc(1em - 5px);
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2018-02-12 23:39:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.onebox.gfycat p {
|
2018-06-20 01:07:16 +08:00
|
|
|
span.label1 a {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2017-11-01 18:14:00 +08:00
|
|
|
}
|
|
|
|
|
2018-03-22 23:41:47 +08:00
|
|
|
.onebox.instagram {
|
2018-06-20 01:07:16 +08:00
|
|
|
div.instagram-description {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2018-06-20 01:07:16 +08:00
|
|
|
padding-top: 10px;
|
|
|
|
}
|
2018-03-18 23:52:05 +08:00
|
|
|
}
|
|
|
|
|
2020-05-06 18:28:30 +08:00
|
|
|
.onebox.reddit {
|
2020-05-06 22:03:50 +08:00
|
|
|
div.aspect-image-full-size {
|
|
|
|
position: relative;
|
|
|
|
}
|
2020-05-06 18:28:30 +08:00
|
|
|
div.description {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2020-05-06 18:28:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-25 07:51:29 +08:00
|
|
|
.onebox.githubfolder {
|
|
|
|
.thumbnail {
|
|
|
|
width: 60px;
|
|
|
|
height: 60px;
|
|
|
|
&.onebox-full-image {
|
|
|
|
max-height: 60px;
|
|
|
|
max-width: 60px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.label1 {
|
|
|
|
color: var(--primary-med-or-secondary-med);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-08 08:50:01 +08:00
|
|
|
.onebox.githubcommit {
|
2018-06-20 01:07:16 +08:00
|
|
|
pre.message {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2017-11-08 08:50:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-17 15:29:40 +08:00
|
|
|
.onebox.twitterstatus {
|
|
|
|
.like,
|
|
|
|
.retweet {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2018-07-17 15:29:40 +08:00
|
|
|
padding-left: 10px;
|
2018-12-10 10:58:02 +08:00
|
|
|
svg {
|
|
|
|
fill: currentColor;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2018-07-17 15:29:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-08 14:38:41 +08:00
|
|
|
// mobile specific style
|
|
|
|
.mobile-view article.onebox-body {
|
2018-06-20 01:07:16 +08:00
|
|
|
border-top: none;
|
2017-02-08 14:38:41 +08:00
|
|
|
}
|
2018-11-09 18:14:06 +08:00
|
|
|
|
|
|
|
// Google Photos Album
|
|
|
|
.onebox.google-photos-album {
|
|
|
|
@extend .imgur-album;
|
|
|
|
}
|
2019-01-09 00:22:03 +08:00
|
|
|
|
|
|
|
// Force oneboxed videos to 16:9 aspect ratio
|
2020-01-29 13:52:02 +08:00
|
|
|
.onebox.video-onebox,
|
|
|
|
.video-container {
|
2019-01-09 00:22:03 +08:00
|
|
|
position: relative;
|
|
|
|
padding: 0 0 56.25% 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
video {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
2019-06-26 16:08:29 +08:00
|
|
|
|
2021-04-23 21:56:13 +08:00
|
|
|
.video-container {
|
|
|
|
.notice {
|
|
|
|
background-color: var(--highlight-medium);
|
|
|
|
padding: 10px 20px;
|
|
|
|
position: absolute;
|
|
|
|
width: calc(100% - 40px);
|
|
|
|
animation: 0.5s fadeIn;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-09 00:09:58 +08:00
|
|
|
.onebox-placeholder-container {
|
2019-06-27 01:50:39 +08:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2019-06-27 14:57:14 +08:00
|
|
|
padding: 0 0 48.25% 0;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-low);
|
2019-06-27 01:50:39 +08:00
|
|
|
|
2019-07-09 00:09:58 +08:00
|
|
|
.placeholder-icon {
|
2019-06-27 01:50:39 +08:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-07-09 00:09:58 +08:00
|
|
|
|
|
|
|
&.video {
|
|
|
|
&:before {
|
|
|
|
opacity: 0.8;
|
|
|
|
content: svg-uri(
|
|
|
|
'<svg width="128px" height="128px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="grey" d="M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"></path></svg>'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.audio {
|
|
|
|
&:before {
|
|
|
|
opacity: 0.4;
|
|
|
|
content: svg-uri(
|
|
|
|
'<svg width="128px" height="128px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"></path></svg>'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2020-02-03 20:42:42 +08:00
|
|
|
&.map {
|
|
|
|
&:before {
|
|
|
|
opacity: 0.4;
|
|
|
|
content: svg-uri(
|
|
|
|
'<svg width="128px" height="128px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"></path></svg>'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2019-07-09 00:09:58 +08:00
|
|
|
&.generic {
|
|
|
|
&:before {
|
|
|
|
opacity: 0.4;
|
|
|
|
content: svg-uri(
|
|
|
|
'<svg width="128px" height="128px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"></path></svg>'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2019-06-26 16:08:29 +08:00
|
|
|
}
|
|
|
|
}
|
2021-01-22 22:35:28 +08:00
|
|
|
|
|
|
|
aside.onebox.preview-error .site-icon {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|