A Pen by Max Quattromani on CodePen.
Created
March 27, 2015 16:52
-
-
Save quattromani/d141815ae4a1673b9adf to your computer and use it in GitHub Desktop.
RNdGWd
This file contains 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
<!-- Operational Message Component --> | |
<div class="operational-message"> | |
<ul> | |
<li>We regularly negotiate new programming contracts with local broadcasters</li> | |
<li>Us regularly negotiate new programming contracts with local broadcasters</li> | |
<li>You regularly negotiate new programming contracts with local broadcasters</li> | |
<li>I regularly negotiate new programming contracts with local broadcasters</li> | |
</ul> | |
</div> | |
<!-- .Operational Message Component --> | |
This file contains 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
/* ========================================================================== | |
Operational Message -- Version: 0.1.1 - Updated: 3/27/2015 | |
========================================================================== */ | |
$('.operational-message li').first().addClass('js-selected').show(); |
This file contains 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
.operational-message { | |
max-width: 90%; | |
margin: 0 auto; | |
text-align: center; | |
ul { | |
margin-bottom: 0; | |
list-style-type: none; | |
} | |
li { | |
display: none; | |
} | |
} | |
@media (max-width: 768px) { | |
.operational-message{ | |
display: block; | |
width: 100%; | |
padding: 0; | |
text-align: left; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment