Tagged: x
-
AuthorPosts
-
October 12, 2016 at 1:51 pm #1213401
AndreiParticipantHello, I would like to make the content of the page responsive on mobile. On tablet the content is ok, with one exception: the last image, manifesto, is not aligned with the rest of the paragraphs. I can align it with margin and padding but the problem is that when I change the device (the screen width), the alignment breaks. On mobile the content is out of the screen on the right.
Also I would like to disable the fade effect on mobile.
The page I am talking about is https://sinestezic.com/about-us/
Thank you,
AndreiOctober 12, 2016 at 10:58 pm #1214075
RadModeratorHi there,
Thanks for writing in.
Please add this Custom CSS as well,
@media ( max-width: 767px ){ .page-id-835 .x-container.width { width: 100%; padding: 0 5% !Important; } .page-id-835 .x-block-grid, .page-id-835 .x-text { width: 100% !important; margin-left: 0 !important; } .page-id-835 .x-block-grid li, .page-id-835 .x-text { padding-left: 20px !important; padding-right: 20px !important; } }Though this only applies to few elements. You don’t have uniform layout and class names, it looks like every of your content is unique with their own selectors.
Example, you have ourstoryphoto that never used anywhere, hence I decided to use
.page-id-835 .x-block-grid lito select them all. Then, another structure unlocksensesgrid but it’s a regular text instead of a block grid.That CSS may not fix all, let’s see what’s left after that solution.
Cheers!
October 13, 2016 at 2:04 am #1214212
AndreiParticipantHi Rad,
Thank you for your reply. It works except 2 things:
The photo from “Inspired BY” which needs to be expanded at the edge of the ccontainer and the manifesto photo which needs to be aligned with the other containers.
October 13, 2016 at 5:26 am #1214418
Paul RModeratorHi Andrei,
You can add this under Custom > Edit Global CSS in the Customizer.
@media (max-width: 1201px) { .page-id-835 .x-block-grid .x-block-grid-item.ourstoryphoto { padding:0 !important; } } .page-id-835 .x-section.manifestosection { padding:0 !important; } .page-id-835 .x-section.manifestosection .manifesto { left:0; }Hope that helps.
October 13, 2016 at 6:52 am #1214502
AndreiParticipantHi Paul,
Yesss it works! Thank you very much. There is one more small problem. The text on tablet is smaller than the text on phone. In the CSS code they are the same size. Also How can I completely disable the fade animation? I tried a code I found on the forum but the elements are still moving up when I scroll.
October 13, 2016 at 6:54 am #1214508
AndreiParticipantI found another issue. The manifesto photo is not aligned on big screens.
October 13, 2016 at 3:28 pm #1215239
RadModeratorHi there,
Are you testing on the actual device? It will look small on browser developer preview since the viewport is scaled down. Hence, elements will look smaller.
And about manifesto, please change this css,
.page-id-835 .x-section.manifestosection .manifesto { left:0; }to this
@media ( max-width: 767px ) { .page-id-835 .x-section.manifestosection .manifesto { left:0; } }Thanks!
October 14, 2016 at 1:53 am #1215808
AndreiParticipantHi Rad, thank you very much. Do you also know how can I disable fade effect on mobile?
October 14, 2016 at 2:06 am #1215817
RadModeratorHi there,
Please try this CSS,
@media ( max-width: 767px ) { .x-column[data-fade="true"] { transition: initial !important; display: block !important; visibility: visible !important; opacity: 1 !important; transform: translate(0px, 0px) !important; transition-duration: 0ms !important; } }Hope this helps.
October 15, 2016 at 6:30 am #1217255
AndreiParticipantThank you very much. It works.
October 15, 2016 at 6:48 am #1217261
ThaiModeratorIf you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1213401 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
