Disable click behavior for images - python-sphinx

I am creating html documentation using sphinx and the read-the-docs theme. When I add a scaled image, it can be clicked and pops-up full-size in a new tab. How can I disable this behavior.
For example, I am using the following scenario throughout my document
1) Create a png file, e.g., application-icon.png , to be exactly 10pt by 10pt.
2) Create a document containing:
.. |application_icon| image:: images/application-icon.png
:width: 10pt
:height: 10pt
Click the application icon |application_icon| to display …"
When the width and height scale information are included, the icon displays perfectly and properly sizes even when I view the document on my cellphone. However, the icon is clickable and opens a new tab showing the image.
If I omit the scale information, the icon is no longer clickable, however the image does not scale when the document is opened on my cellphone, instead the image occupies the entire width of the cellphone screen.

Try adding html_scaled_image_link = False to your Sphinx conf.py file. You can find details here.

Inline
.. image:: images/pic.png
:class: no-scaled-link
I kept clicking on them when I was switching between windows/ tabs!

Related

How to change the size (resolution) of one pageview in Spotfire

I saw a viz in the company's repository, and I wish to replicate one of the feature.
The viz is consist of several pages with an introductory page. The introductory page contained a lot of information with a scrollable canvas, while other detail page had a fixed-to-window way of presenting data, showing each segment in one screen without the overall scroll bar.
What I want to know is how to only make one or part of the pages in the dxp file able to enable the scroll bar (larger canvas height), while the rest having the fit-to screen way of displaying the viz. Any approach will be appreciated.
PS:
The Document Property→General→Visualization area size→Custom size method changes the canvas size of all visualization table. Which is not able to fulfill this feature, as this property changes the canvas size of all pages in the dxp file, which is not what I expected.
sounds like they used a Text Area but it's hard to tell without seeing the document.
you can insert a Text Area the same way you do a visualization (via the toolbar or the main menu). you can then right click the Text Area to edit it either with the WYSIWYG editor or in raw HTML. Text Areas will show scrollbars to match the length of your content.

Change background color of transparent PNG images uploaded to blogger

I have a blog hosted by Blogger with a custom template: http://www.drugchannels.net/
Images uploaded to the blog are hosted at X.bp.blogspot.com (where X is a number). Examples:
https://1.bp.blogspot.com/-Jwy2VQYRIEA/WqmwvsA07WI/AAAAAAAATA4/jWVcEts1h1Y4IXM0hD0njUhSmQ2AZPnxQCLcBGAs/s1600/Specialty_vs_Retail-2014_vs_2017.png
https://4.bp.blogspot.com/-O4S9ps4u67k/Wk0yhTEuV-I/AAAAAAAASUE/5tPedr-p7_4kedNYU4RY711l6K3maokiQCLcBGAs/s1600/DCI-Copay_Accumulator-03Jan2018-CORRECTED.png
I want to have a white background when the image is clicked. (The images look fine on the site itself. This is not a problem with the blog's background, which is set to be solid white.)
Using the Inspect option in Chrome, I see the following information
The body formatting (background: #0e0e0e;) does NOT appear anywhere on my blog or in my template.
How can I fix?
Thank you!
P.S. I have 10 years of legacy posts with images, so I need a global solution that changes the background to white for all images posted to the blog.
Wrap the image in a div and set the background color of that div with css. That should work
.divclass:active {
background:#FFFFFF
}
If you are opening the images in a new tab or window then your only option is changing the background of the images yourself with a photo editor. If you're just trying to give the user a full size view of an image when they click it you could use javascript/jquery and have a full size div with a background and an image pop up in full screen without sending them to the linked image. Theres probably quite a few jquery plugins that will do this with minimal coding knowledge, just google it.
Thanks, Riley.
I can't go back and edit hundreds of images, so the photo editor option won't work.
But based on your suggestion, I used the following solution:
1) Enabled "Showcase Images with Lightbox" on blogger
2) Added CSS from this page (http://www.howbloggerz.com/2016/05/how-to-customize-blogger-lightbox.html) with no background image and background color set ot white (#ffffff).
Downside is that charts/images now pop up on same page rather than opening in a new tab.
Thank you!

CKeditor, size of image preview box

Searched the web all over to find the way to change the image preview box dimensions in CKeditor, with no luck.
Although https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_howtos_dialog_windows-section-6 teaches how to change the dialog dimensions, it doesn't provide information on how to set the image preview box width and height, which remain fixed on changing the dimensions of its parent window.
Dimensions of the preview box could be changed in skin's CSS, located – in the case of moono and moono-lisa skins – in skins/<name of skin>/dialog.css. The selector connected with it is .cke_dialog .ImagePreviewBox.

Magento home page slider full width

I installed the slider extension Auguria Slider but somehow it doesn't work like expected.
How can i make the slider full width?
actually i have installed Auguria Slider first we have to know how we download image
1.first how much pixel you want image
2.consider i want width 1200px height 350px
3.then down load
4.go to magento admin panel select system=>configuration=>right side one option is there that is slider click on
5.it will show slider option
6.how much you want set the value
7.then check your home page magento it will not display do not worry
8. here i have wamp so i go to www=>your folder name=>skin=>frontend=>base=>default=>css=>Auguria=>sliders=>default.css
9.here we have to put some code that is
.auguria-slider-image{
width:1200px;
height:600px;
}
10.i hope it will work good
11.you have change pixel range
conclusion
12.how to know how much pixel we want
13.first go to magento home page cursor put on slider image right click then we will select inspectelement
14.now we see one box left side corner one arrow mark is there click on then go to slider image it will show how much pixel have
15.we have to particular image open paint we can change pixel and size
16.that all
17.i hope it will work finethis image last work good[enter link description here][1]

Parsys on top of an image

There is requirement where parsys should be added on top of an image. It is like a background image with the provision of parsys so that other components can be dragged and dropped on top of it. I am using html5smartimage for image component. But, no clue yet on how I can get the parsys on top of the image. Please help if you find any ideas. Thanks.
is the image authorable? If so, how do you intend to provide click-area for the authors to change the image vs edit items in the parsys.
If the image isn't authorable, just target the CSS for your parsys and set the image.
If the image is authorable, in edit mode you want the image to be distinct from the parsys and have separate clickable areas. Then in preview/disabled modes you would generate the actually desired markup & CSS to position the parsys content over the background image.

Resources