mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:06:26 +08:00
FEATURE: Update onebox and add styling for githubfolder onebox (#11313)
This commit is contained in:
parent
436d68d54f
commit
416f984c5e
|
@ -235,7 +235,7 @@ GEM
|
|||
omniauth-twitter (1.4.0)
|
||||
omniauth-oauth (~> 1.1)
|
||||
rack
|
||||
onebox (2.1.6)
|
||||
onebox (2.1.7)
|
||||
addressable (~> 2.7.0)
|
||||
htmlentities (~> 4.3)
|
||||
multi_json (~> 1.11)
|
||||
|
|
|
@ -118,6 +118,7 @@ aside.onebox {
|
|||
@include onebox-favicon("githubcommit", "github");
|
||||
@include onebox-favicon("githubpullrequest", "github");
|
||||
@include onebox-favicon("githubissue", "github");
|
||||
@include onebox-favicon("githubfile", "github");
|
||||
@include onebox-favicon("githubgist", "github");
|
||||
@include onebox-favicon("amazon", "amazon");
|
||||
@include onebox-favicon("instagram", "instagram");
|
||||
|
@ -661,7 +662,8 @@ aside.onebox.stackexchange .onebox-body {
|
|||
.onebox {
|
||||
&.allowlistedgeneric,
|
||||
&.whitelistedgeneric,
|
||||
&.gfycat {
|
||||
&.gfycat,
|
||||
&.githubfolder {
|
||||
.site-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
|
@ -692,6 +694,20 @@ aside.onebox.stackexchange .onebox-body {
|
|||
}
|
||||
}
|
||||
|
||||
.onebox.githubfolder {
|
||||
.thumbnail {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
&.onebox-full-image {
|
||||
max-height: 60px;
|
||||
max-width: 60px;
|
||||
}
|
||||
}
|
||||
.label1 {
|
||||
color: var(--primary-med-or-secondary-med);
|
||||
}
|
||||
}
|
||||
|
||||
.onebox.githubcommit {
|
||||
pre.message {
|
||||
padding: 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user