Skip to content

Commit

Permalink
fix(google): improve support for images and videos
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate committed Mar 27, 2020
1 parent cf61353 commit 196093f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/scripts/engines/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ if (!mobile({ tablet: true })) {
isch: {
controlHandlers: [
{
createControl: createControlBefore('ub-pc-images-control', '.ymoOte'),
createControl: createControlBefore('ub-pc-images-control', '.FAZ4xe'),
},
{
createControl: createControlBefore('ub-pc-images-control-sensitive', '.mJxzWe'),
},
],
entryHandlers: [
Expand Down
15 changes: 11 additions & 4 deletions src/styles/engines/google.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
}

&-video-action {
font-size: 12px;
font-size: 14px;
margin: -10px 0 10px;
padding: 0 16px;
}
Expand All @@ -91,11 +91,18 @@
.ub-pc-images {
&-control {
color: #70757a;
margin: 0 0 8px 165px;
padding: 0 0 6px 165px;
}

&-control-sensitive {
border-top: 1px solid #dfe1e5;
color: #70757a;
padding: 11px 0 11px 165px;
}

&-general-action {
font-size: 12px;
font-size: 11px;
line-height: 16px;
padding: 0 4px;
}
}
Expand Down Expand Up @@ -133,7 +140,7 @@

&-general-action {
@extend %pc-action-inline;
font-size: 14px;
font-size: 16px;
margin-left: 6px;
span + & {
margin-left: 0;
Expand Down

0 comments on commit 196093f

Please sign in to comment.