Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor danlester

    (@danlester)

    Thank you for your message.

    Unfortunately, those colors are set by Google whose service is used to actually display the docs – and I believe there is no way to change them…

    Regards,

    Dan

    I’m breaking my head to customize the plugin, the CSS that pulls up from the lib-setup.php is specified to the /css directory that the plugin comes in with.BUT for some reason even if you modify the /css/gde-dark changes don’t take effect.

    My conclusion digging deep into the code is that the plugin hasn;t been updated lately, It pulls the CSS from Google API. which is hosted on their servers not the users. there is no way…

    CSS that the plugin is using is not at my reach? it point to something like rs=AC2dHMIeE-6MbfA2snzxF2ZFrGo5aZcsWg
    I just wanted to change the #d1d1d1 background color in the viewer to #FFFFFF aparently if i modify gde-dark changes don’t take effect. The Plugin is using this CSS sheet… which is not hosted on my side…

    I think the variables that they use to specify parameters are not friendly user… really complex

    .ndfHFb-c4YZDc-nJjxad-SxecR-PFprWc{
    background-color:#151515;
    background-image:-moz-linear-gradient(top,#000000,#303030);
    background-image:linear-gradient(top,#000000,#303030);
    -moz-box-shadow:0 0 5px 0 #ffffff;
    box-shadow:0 0 5px 0 #ffffff;
    background-color:#151515!important;
    -moz-border-radius:6px;
    border-radius:6px;
    top:18px;
    height:10px;
    width:10px;
    border:solid 1px #fff

    Plugin Contributor danlester

    (@danlester)

    All of this CSS appears inside an iframe which is entirely served by Google, so there is no way to affect its content.

    The old version of the viewer (which no longer works) went out of its way to ‘translate’ Google’s files into its own versions, so that it could modify them slightly to introduce custom code. But Google’s more recent updates have made it far too complicated to make those changes, and of course even if we did try to write a viewer that knew how to work with Google’s new code, any slight changes on their end could break it again very easily.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doc viewer styling’ is closed to new replies.