Skip to content

Instantly share code, notes, and snippets.

@5310
Last active September 7, 2017 13:04
Show Gist options
  • Select an option

  • Save 5310/5590350 to your computer and use it in GitHub Desktop.

Select an option

Save 5310/5590350 to your computer and use it in GitHub Desktop.
Quick Userstyle I'm using for the I/O 2013 Google Plus interface. I personally found the multicolumn layout to be utterly useless on the desktop, and the single column was too narrow, so I widened it. Caveats: Images are still set to the width of the default stream, and hence would appear centered in widened posts. There's a commented out declar…
@-moz-document url-prefix("https://plus.google.com"), domain("plus.google.com") {
/* Post Channel*/
.Dla.Ebb.nqa {
width: 1000px !important;
}
.noa.Kv.Tc.Nl {
width: 100% !important
}
/* Post Images*/
/* Enable to stretch any image to fit width (1000-15) even if it means looking crappy. */
/*.ev.MAvK1e.lg7oNe {
max-height: none;
max-width: none;
height: auto;
width: 985px;
}*/
/* Gallery Posts */
.dT6Wrb {
margin-left: 25%;
}
}
@5310

5310 commented May 16, 2013

Copy link
Copy Markdown
Author

Of course, I can't get the proper inset image size with userstyle alone. Will write userscript later.

Unfortunately, if the images don't come in a high enough resolution, simply changing the url parameters will result in crappy looking images. A compromise would be to try to fit the width but center the image if smaller than the width.

@5310

5310 commented May 16, 2013

Copy link
Copy Markdown
Author

Got the userscript to work. I'll make a script only version with configurable style later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment