Forked from cobaltapps/DWB Responsive Logo Image Trick
Created
March 7, 2019 02:26
-
-
Save DalavanCloud/3168bbe73c5504c17b478de1c7a10341 to your computer and use it in GitHub Desktop.
This CSS code is for a DWB screencast where I show how to make your Logo Image responsive, without the need for multiple images.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* HTML5 5th @media query trigger point */ | |
| .site-header { | |
| min-height: 80px; | |
| } | |
| .header-image .site-header .wrap .title-area { | |
| width: 400px; | |
| height: 80px; | |
| background-size: 400px 80px; | |
| } | |
| /* HTML5 6th @media query trigger point */ | |
| .site-header { | |
| min-height: 60px; | |
| } | |
| .header-image .site-header .wrap .title-area { | |
| width: 300px; | |
| height: 60px; | |
| background-size: 300px 60px; | |
| } | |
| /* Pre-HTML5 5th @media query trigger point */ | |
| #header { | |
| min-height: 80px; | |
| } | |
| .header-image #header .wrap #title-area { | |
| width: 400px; | |
| height: 80px; | |
| background-size: 400px 80px; | |
| } | |
| /* Pre-HTML5 6th @media query trigger point */ | |
| #header { | |
| min-height: 60px; | |
| } | |
| .header-image #header .wrap #title-area { | |
| width: 300px; | |
| height: 60px; | |
| background-size: 300px 60px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment