2013-09-06 03:37:07 +08:00
|
|
|
@import "common/foundation/variables";
|
|
|
|
@import "common/foundation/mixins";
|
|
|
|
|
|
|
|
a.loading-onebox {
|
|
|
|
background: {
|
|
|
|
image: image-url("spinner_96.gif");
|
|
|
|
position: 0;
|
|
|
|
size: 20px;
|
|
|
|
height: 25px;
|
|
|
|
repeat: no-repeat;
|
|
|
|
};
|
|
|
|
padding-left: 25px;
|
|
|
|
}
|
|
|
|
|
2013-11-14 12:10:47 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.onebox-result {
|
2014-01-28 06:58:53 +08:00
|
|
|
margin-top: 15px;
|
2013-12-20 07:32:39 +08:00
|
|
|
padding: 12px 25px 12px 12px;
|
2014-02-24 09:47:44 +08:00
|
|
|
border-left: 5px solid $primary_border_color;
|
|
|
|
background: lighten($secondary_background_color, 76%);
|
2013-09-06 03:37:07 +08:00
|
|
|
font-size: 14px;
|
|
|
|
> .source {
|
2013-11-14 12:10:47 +08:00
|
|
|
margin-bottom: 12px;
|
2013-09-06 03:37:07 +08:00
|
|
|
margin-right: 10px;
|
|
|
|
display: block;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $primary_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: relative;
|
2013-11-14 12:10:47 +08:00
|
|
|
height: 20px;
|
2013-09-06 03:37:07 +08:00
|
|
|
.info {
|
|
|
|
a {
|
|
|
|
color: black;
|
|
|
|
text-decoration: none;
|
2013-11-14 12:10:47 +08:00
|
|
|
padding-right: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
position: absolute;
|
|
|
|
font-size: 14px;
|
|
|
|
img.favicon {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-02-27 06:15:57 +08:00
|
|
|
|
2014-03-06 14:14:51 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.onebox-result-body {
|
|
|
|
padding-top: 5px;
|
|
|
|
img {
|
2013-12-20 07:32:39 +08:00
|
|
|
max-height: 80%;
|
2014-01-02 19:15:47 +08:00
|
|
|
max-width: 25%;
|
|
|
|
height: auto;
|
2013-12-20 07:32:39 +08:00
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
h3, h4 {
|
2014-03-06 14:14:51 +08:00
|
|
|
margin: 0 !important;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
code {
|
|
|
|
max-height: 400px;
|
|
|
|
}
|
|
|
|
.metrics {
|
|
|
|
clear: both;
|
|
|
|
padding-bottom: 25px;
|
|
|
|
.metric {
|
|
|
|
display: inline-block;
|
|
|
|
padding-left: 33px;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// RottenTomatoes Onebox
|
|
|
|
.onebox-result {
|
|
|
|
.onebox-result-body {
|
2013-12-20 07:32:39 +08:00
|
|
|
img.verdict {
|
|
|
|
float: none;
|
2013-09-06 03:37:07 +08:00
|
|
|
margin-right: 7px;
|
|
|
|
}
|
|
|
|
img.popcorn {
|
|
|
|
float: none;
|
|
|
|
margin-left: 20px;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-01-28 06:58:53 +08:00
|
|
|
|
|
|
|
@mixin onebox-favicon($class, $image) {
|
|
|
|
&.#{$class} .source {
|
|
|
|
background-image: image-url("favicons/#{$image}.png");
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
aside.onebox {
|
|
|
|
margin-top: 15px;
|
|
|
|
padding: 12px 25px 12px 12px;
|
2014-02-24 09:47:44 +08:00
|
|
|
border-left: 5px solid $primary_border_color;
|
|
|
|
background: lighten($secondary_background_color, 76%);
|
2014-01-28 06:58:53 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
header {
|
|
|
|
a[href] {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $primary_text_color;
|
2014-01-28 06:58:53 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include onebox-favicon('stackexchange', 'stackexchange');
|
|
|
|
@include onebox-favicon('twitterstatus', 'twitter');
|
|
|
|
@include onebox-favicon('wikipedia', 'wikipedia');
|
|
|
|
@include onebox-favicon('githubblob', 'github');
|
2014-02-22 05:10:20 +08:00
|
|
|
@include onebox-favicon('amazon', 'amazon');
|
2014-01-28 06:58:53 +08:00
|
|
|
|
|
|
|
|
|
|
|
.onebox-body {
|
|
|
|
clear: both;
|
|
|
|
|
2014-02-27 08:13:36 +08:00
|
|
|
h3, h4 {
|
2014-01-28 06:58:53 +08:00
|
|
|
font-size: 1.17em;
|
2014-02-26 03:50:21 +08:00
|
|
|
margin: 10px 0 !important;
|
2014-01-28 06:58:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a[href] {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $link_color;
|
2014-01-28 06:58:53 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a[href]:visited {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $link_color;
|
2014-01-28 06:58:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-height: 80%;
|
|
|
|
max-width: 25%;
|
|
|
|
height: auto;
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-25 12:52:40 +08:00
|
|
|
.github-avatar {
|
|
|
|
height: 90px;
|
|
|
|
width: 90px;
|
|
|
|
}
|
2014-01-28 06:58:53 +08:00
|
|
|
|