A platform for community discussion. Free, open, simple.
FEATURE: Redesigned GitHub oneboxes
David Taylor3edd514c7233
diff --git a/Gemfile b/Gemfileindex 645bbc5da01..31d391e4cd2 100644--- a/Gemfile+++ b/Gemfile@@ -50,7 +50,7 @@ gem 'redis-namespace'gem 'active_model_serializers', '~> 0.8.3'-gem 'onebox', '1.9.15'+gem 'onebox', '1.9.16'gem 'http_accept_language', '~>2.0.5', require: falsediff --git a/Gemfile.lock b/Gemfile.lockindex c35d6352b9e..a03c3d3defa 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -245,7 +245,7 @@ GEMomniauth-twitter (1.4.0)omniauth-oauth (~> 1.1)rack- onebox (1.9.15)+ onebox (1.9.16)htmlentities (~> 4.3)moneta (~> 1.0)multi_json (~> 1.11)@@ -501,7 +501,7 @@ DEPENDENCIESomniauth-oauth2omniauth-openidomniauth-twitter- onebox (= 1.9.15)+ onebox (= 1.9.16)openid-redis-storeparallel_testspgdiff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scssindex 3e45c7be816..240d93308c3 100644--- a/app/assets/stylesheets/common/base/onebox.scss+++ b/app/assets/stylesheets/common/base/onebox.scss@@ -382,18 +382,75 @@ pre.onebox code {.onebox.githubpullrequest,.onebox.githubcommit,.onebox.githubissue {+ .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;+ }+.github-icon {- float: left;- margin-right: 4px;fill: $primary-high;- width: 30px;- height: 30px;+ width: 40px;+ height: 40px;+ }++ .branches {+ font-size: $font-down-1;+ }++ .github-info {+ display: flex;+ align-items: center;+ flex-wrap: wrap;++ > div {+ margin: 2.5px 0;+ }++ > div:not(:last-child) {+ margin-right: 15px;+ }++ .lines {+ font-weight: bold;++ .added {+ color: $success;+ }+ .removed {+ color: $danger;+ }+ }}.onebox-avatar-inline {- height: 1em;- width: 1em;- margin-right: 4px;+ height: 20px;+ width: 20px;+ border-radius: 2px;+ float: none;+ margin: 0;+ vertical-align: middle;+ max-width: none;+ }++ .github-content {+ margin: 5px 0 0 0;}}