mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-24 13:03:35 -04:00
FEATURE: better google docs onebox
This commit is contained in:
parent
8213da20f2
commit
d65f7742a7
11 changed files with 18 additions and 7 deletions
app/assets
images/favicons/google_branding
logo_docs_128px.pnglogo_docs_48px.pnglogo_drive_128px.pnglogo_drive_48px.pnglogo_forms_128px.pnglogo_forms_48px.pnglogo_sheets_128px.pnglogo_sheets_48px.pnglogo_slides_128px.pnglogo_slides_48px.png
stylesheets/common/base
Binary file not shown.
Before ![]() (image error) Size: 2.4 KiB |
BIN
app/assets/images/favicons/google_branding/logo_docs_48px.png
Normal file
BIN
app/assets/images/favicons/google_branding/logo_docs_48px.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 919 B |
Binary file not shown.
Before ![]() (image error) Size: 5.6 KiB |
BIN
app/assets/images/favicons/google_branding/logo_drive_48px.png
Normal file
BIN
app/assets/images/favicons/google_branding/logo_drive_48px.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1.9 KiB |
Binary file not shown.
Before ![]() (image error) Size: 2.8 KiB |
BIN
app/assets/images/favicons/google_branding/logo_forms_48px.png
Normal file
BIN
app/assets/images/favicons/google_branding/logo_forms_48px.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1 KiB |
Binary file not shown.
Before ![]() (image error) Size: 2.6 KiB |
BIN
app/assets/images/favicons/google_branding/logo_sheets_48px.png
Normal file
BIN
app/assets/images/favicons/google_branding/logo_sheets_48px.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1,021 B |
Binary file not shown.
Before ![]() (image error) Size: 2.5 KiB |
BIN
app/assets/images/favicons/google_branding/logo_slides_48px.png
Normal file
BIN
app/assets/images/favicons/google_branding/logo_slides_48px.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 932 B |
|
@ -110,6 +110,7 @@ aside.onebox {
|
|||
@include onebox-favicon('githubissue', 'github');
|
||||
@include onebox-favicon('githubgist', 'github');
|
||||
@include onebox-favicon('amazon', 'amazon');
|
||||
@include onebox-favicon('googledocs', 'google_branding/logo_drive_48px');
|
||||
|
||||
|
||||
.onebox-body {
|
||||
|
@ -153,10 +154,23 @@ aside.onebox {
|
|||
|
||||
@mixin gdocs-logo($type) {
|
||||
&.g-#{$type}-logo {
|
||||
background: image-url("favicons/google_branding/logo_#{$type}_128px.png") no-repeat;
|
||||
background: image-url("favicons/google_branding/logo_#{$type}_48px.png") no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
.googledocs-onebox-logo {
|
||||
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');
|
||||
}
|
||||
|
||||
// Google Calendar Placeholder
|
||||
.gdocs-onebox-splash {
|
||||
background-color: blend-primary-secondary(30%);
|
||||
color: $primary;
|
||||
|
@ -165,12 +179,9 @@ aside.onebox {
|
|||
display: inline-block;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
@include gdocs-logo('docs');
|
||||
@include gdocs-logo('forms');
|
||||
@include gdocs-logo('sheets');
|
||||
@include gdocs-logo('slides');
|
||||
@include gdocs-logo('calendar');
|
||||
@include gdocs-logo('drive');
|
||||
&.g-calendar-logo {
|
||||
background: image-url("favicons/google_branding/logo_calendar_128px.png") no-repeat;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue