Updated responsive settings
-
This is tested in Document-gallery version 1.4.2 and WordPress 3.8 with the new wide fullpage theme “Techism”.
Do not change any original coding. Just add the following code in the end in the Document-Gallery “style.css” (below /* END WITH DESCRIPTION */ on line 65)
/* START RESPONSIVE SETTINGS */ @media (max-width: 1000px) { div.document-icon{width: 23%;} } @media (max-width: 800px) { div.document-icon{text-align: center; max-width: 120px; line-height: 0.8em; width: 23%;} div.document-icon img{max-width: 70px; max-height: 70px; border: none;} div.document-icon a{ font-size: 1.2em; line-height: 1.3em; } div.descriptions.document-icon-wrapper div.document-icon{max-width: 100px; padding: 10; padding-right: 3px; float: left;} } @media (max-width: 400px) { div.document-icon{text-align: center; max-width: 50px; line-height: 0.8em; width: 22%;} div.document-icon img{max-width: 30px; max-height: 30px; border: none;} div.document-icon a{font-size: 0.7em; line-height: 0.8em;} div.descriptions.document-icon-wrapper div.document-icon{max-width: 70px; padding: 0; padding-right: 1px; float: left;} } /* END RESPONSIVE SETTINGS */
You may have to adjust some settings for other themes.
PS! The “width: 23%” setting is added to prevent the icons to end up with 3 on one line and 1 below on smaller monitors.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Updated responsive settings’ is closed to new replies.