HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css" />
<div class="menu-container">
<div class="menu">
<ul>
<li id="mmLogo"><a href="/"><img src="https://cutx.org/Portals/0/CUTX-Logo.png"></a></li>
<!-- USE IT -->
<li id="mmBlue" class="mmInvert"><a href="#"><span id="useIt">Use it</span></a>
<ul class="normal-sub">
<li class="mmSubHeader"><a href="/Use-It/Secure-Checking/">
<div id="secureChecking" class="mmSubIcon"></div>
<div class="mmSubText">Secure Checking</div>
</a></li>
<li class="mmSubHeader"><a href="/Use-It/Debit-ATM-Cards/">
<div id="atmCards" class="mmSubIcon"></div>
<div class="mmSubText">Debit/ATM Cards</div>
</a></li>
<li class="mmSubHeader"><a href="/Use-It/Digital-Banking/">
<div id="digitalBanking" class="mmSubIcon"></div>
<div class="mmSubText">Digital Banking</div>
</a></li>
<li class="mmSubHeader"><a href="/Use-It/Digital-Banking/resources">
<div id="digitalBankingResources" class="mmSubIcon"></div>
<div class="mmSubText">Digital Banking Resources</div>
</a></li>
<li class="mmSubHeader"><a href="/CUTX-Perks">
<div id="cutxPerks" class="mmSubIcon"></div>
<div class="mmSubText">CUTX Perks</div>
</a></li>
</ul>
</li>
<!-- GET IT -->
<li id="mmOrange" class="mmInvert"><a href="#"><span id="getIt">Get it</span></a>
<ul class="normal-sub">
<li class="mmSubHeader"><a href="/Get-It/Home-Loans">
<div id="homeLoans" class="mmSubIcon"></div>
<div class="mmSubText">Home Loans</div>
</a></li>
<li class="mmSubHeader"><a href="/Get-It/Personal-Loans">
<div id="personalLoans" class="mmSubIcon"></div>
<div class="mmSubText">Personal Loans</div>
</a></li>
<li class="mmSubHeader"><a href="/credit-cards">
<div id="creditCards" class="mmSubIcon"></div>
<div class="mmSubText">Credit Cards</div>
</a></li>
<li class="mmSubHeader"><a href="/Get-It/Loan-Promotions/">
<div id="loanPromotions" class="mmSubIcon"></div>
<div class="mmSubText">Loan Promotions</div>
</a></li>
<li class="mmSubHeader"><a href="/credit-card-promotions">
<div id="creditCardPromotions" class="mmSubIcon"></div>
<div class="mmSubText">Credit Card Promotions</div>
</a></li>
<li class="mmSubHeader"><a href="/Get-It/Build-it-Re-Build-it">
<div id="buildItRebuildIt" class="mmSubIcon"></div>
<div class="mmSubText">Build It | Re-Build It</div>
</a></li>
</ul>
</li>
<!-- SAVE IT -->
<li id="mmGreen" class="mmInvert"><a href="#"><span id="saveIt">Save it</span></a>
<ul class="normal-sub">
<li class="mmSubHeader"><a href="/Save-It/Savings-Accounts">
<div id="savingsAccounts" class="mmSubIcon"></div>
<div class="mmSubText">Savings Accounts</div>
</a></li>
<li class="mmSubHeader"><a href="/Save-It/Investments">
<div id="investments" class="mmSubIcon"></div>
<div class="mmSubText">Investments</div>
</a></li>
</ul>
</li>
<!-- DRIVE IT -->
<li id="mmRed" class="mmInvert"><a href="#"><span id="driveIt">Drive it</span></a>
<ul class="normal-sub">
<li class="mmSubHeader"><a href="/Auto-Refinance">
<div id="autoRefinance" class="mmSubIcon"></div>
<div class="mmSubText">Auto Refinance</div>
</a></li>
<li class="mmSubHeader"><a href="/Drive-it/Auto-Loans">
<div id="autoLoans" class="mmSubIcon"></div>
<div class="mmSubText">Auto Loans</div>
</a></li>
<li class="mmSubHeader"><a href="/FairLease">
<div id="fairLease" class="mmSubIcon"></div>
<div class="mmSubText">FairLease</div>
</a></li>
<li class="mmSubHeader"><a href="/Auto-Market">
<div id="autoMarket" class="mmSubIcon"></div>
<div class="mmSubText">Auto Market</div>
</a></li>
<li class="mmSubHeader"><a href="/Drive-It/Special-Auto-Coverage">
<div id="specialAuto" class="mmSubIcon"></div>
<div class="mmSubText">Special Auto Coverage</div>
</a></li>
</ul>
</li>
<!-- Our Locations -->
<li id="mmLocations"><a href="#"><span>Our Locations</span></a>
<ul>
<!-- Row 1 -->
<li>
<ul>
<li><a href="/Locations#Corporate">
Administrative/Corporate
</a></li>
<li><a href="/Locations#CastleHills">
Castle Hills Store
</a></li>
<li><a href="/Locations#DeSoto">
DeSoto Store
</a></li>
</ul>
</li>
<!-- Row 2 -->
<li>
<ul>
<li><a href="/Locations#Hampton">
Hampton Store
</a></li>
<li><a href="/Locations#HighFive">
High Five Store
</a></li>
<li><a href="/Locations#Irving">
Irving (Las Colinas) Store
</a></li>
</ul>
</li>
<!-- Row 3 -->
<li>
<ul>
<li><a href="/Locations#Lewisville">
Lewisville Store
</a></li>
<li><a href="/Locations#Mesquite">
Mesquite Store
</a></li>
<li><a href="/Locations#NorthRockwall">
North Rockwall Store
</a></li>
</ul>
</li>
<!-- Row 4 -->
<li>
<ul>
<li><a href="/Locations#Plano">
Plano Store
</a></li>
<li><a href="/Locations#Richardson">
Richardson Store
</a></li>
<li><a href="/Locations#RossAvenue">
Ross Avenue Store
</a></li>
<li><a href="/Locations#SouthRockwall">
South Rockwall Store
</a></li>
</ul>
</li>
</ul>
</li>
<!-- CUTX Info -->
<li id="mmInfo"><a href="#"><span>CUTX Info</span></a>
<ul class="mmNote">
<li><a href="/About-Us">About Us</a>
<ul>
<li><a href="/About-Us/Join-Us">Opening an Account Couldn't Be Easier</a></li>
<li><a href="/About-Us/Careers">Careers</a></li>
<li><a href="/About-Us/Contact-Us">Contact Us</a></li>
<li><a href="/About-Us/Fraud-Security">Fraud & Security</a></li>
<li><a href="/About-Us#MORE">Experience MORE</a></li>
<li><a href="/About-Us#History">Our History</a></li>
<li><a href="/About-Us#CommunityGiving">Community Giving</a></li>
<li><a href="/About-Us#StatementsAndPolicies">Financial Statements & Policies</a></li>
</ul>
</li>
<li><a href="http://blog.cutx.org/" target="_blank" class="mmExternal">Blog</a>
<ul>
<li><a href="http://blog.cutx.org/easter-bunny-visits-cutx-photos/" target="_blank" class="mmExternal">
EASTER BUNNY VISITS CUTX [PHOTOS]<br />
— April 17, 2017
</a></li>
<li><a href="http://blog.cutx.org/ross-grand-opening-recap-photos/" target="_blank" class="mmExternal">
ROSS GRAND OPENING RECAP [PHOTOS]<br />
— April 13, 2017
</a></li>
<li><a href="http://blog.cutx.org/experience-u-graduates-share-a-financial-tip/" target="_blank" class="mmExternal">
EXPERIENCE U GRADUATES SHARE A FINANCIAL TIP<br />
— April 5, 2017
</a></li>
</ul>
</li>
<li><a href="#">Apps & Forms</a>
<ul>
<li><a href="/About-Us/Apps-Forms#MembershipApp">Membership Application</a></li>
<li><a href="/About-Us/Apps-Forms#LoanApp">Loan Application</a></li>
<li><a href="/About-Us/Apps-Forms#CreditCardApp">Credit Card Application</a></li>
<li><a href="/About-Us/Apps-Forms#DebitApp">Debit Card Application</a></li>
<li><a href="/About-Us/Apps-Forms#TelephoneApp">Telephone Teller Application</a></li>
<li><a href="/About-Us/Apps-Forms#ATMapp">ATM Application</a></li>
<li><a href="/About-Us/Apps-Forms#FeeSchedule">Fee Schedule</a></li>
</ul>
</li>
<li><a href="#">More</a>
<ul>
<li><a href="/More#ForSchools">CUTX for Schools</a></li>
<li><a href="/More#ForStudents">CUTX for Students</a></li>
<li><a href="/More#ForVeterans">Secure Checking & Secure Checking PLUS are free for Veterans</a></li>
<li><a href="/More#TaxPrepSavings">Tax Prep Savings</a></li>
<li><a href="/More#MilitaryAndEducatorLoanDiscounts">Military/Educator Loan Discounts</a></li>
<li><a href="/More#AutoPayLoanDiscounts">Auto Pay Loan Discounts</a></li>
<li><a href="/More#HealthDiscounts">Health Discounts</a></li>
<li><a href="/More#SprintCashBackRewards">Sprint Cash Back Rewards</a></li>
</ul>
</li>
</ul>
</li>
<!-- Search -->
<li id="mmSearch"><a href="#"><span>Search</span></a>
<ul class="mmNote">
<li><a href="/About-Us">About Us</a>
<ul>
<li>
<input class="sc_searchbar3" placeholder="Have a question?" type="text">
<input class="sc_submit3" value="Ask" type="button">
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
@import url("https://fonts.googleapis.com/css?family=Montserrat:300,400,700");
@font-face {
font-family: 'font';
src: url('https://cutx.org/plugins/megamenu/fonts/ionicons.eot');
src: url('https://cutx.org/plugins/megamenu/fonts/ionicons.eot?#iefix') format('eot'),
url('https://cutx.org/plugins/megamenu/fonts/ionicons.woff') format('woff'),
url('https://cutx.org/plugins/megamenu/fonts/ionicons.ttf') format('truetype'),
url('https://cutx.org/plugins/megamenu/fonts/ionicons') format('svg');
font-weight: 400;
font-style: normal;
}
$blue: #3184cb;
$orange: #f47920;
$green: #81bd41;
$red: #cf202e;
$ease-fast: 300ms ease-in-out;
$breakpoint: 959px; // DEFAULT: 959px
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//
// # START DEFAULT STYLES
//
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/*
- Name: megamenu.js - style.css
- Version: 1.0
- Latest update: 29.01.2016.
- Author: Mario Loncarek
- Author web site: http://marioloncarek.com
*/
/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Screen style's
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.HeaderRight {
float: right;
text-align: inherit !important;
margin-top: 23px;
height: auto !important;
min-width: inherit !important;
}
.menu-container {
width: 80%;
margin: 0 auto;
background: #e9e9e9;
position: relative;
z-index: 9999999999999;
}
.menu-mobile {
display: none;
padding: 20px;
}
.menu-mobile:after {
content: "\f0c9";
// http://fontawesome.io/icon/bars/
font-family: "FontAwesome";
font-size: 2.5rem;
padding: 0;
float: right;
position: relative;
top: 50%;
-webkit-transform: translateY(-25%);
-ms-transform: translateY(-25%);
transform: translateY(-25%);
}
.menu-dropdown-icon:before {
content: "\f0d7";
// http://fontawesome.io/icon/caret-down/
font-family: "FontAwesome";
display: none;
cursor: pointer;
float: right;
padding: 1.5em 2em;
background: #fff;
color: #333;
}
.menu > ul {
margin: 0 auto;
width: 100%;
list-style: none;
padding: 0;
position: relative;
/* IF .menu position=relative -> ul = container width, ELSE ul = 100% width */
box-sizing: border-box;
}
.menu > ul:before,
.menu > ul:after {
content: "";
display: table;
}
.menu > ul:after {
clear: both;
}
.menu > ul > li {
float: left;
background: #e9e9e9;
padding: 0;
margin: 0;
}
.menu > ul > li a {
text-decoration: none;
padding: 1.5em 3em;
display: block;
}
.menu > ul > li:hover {
background: #f0f0f0;
}
.menu > ul > li > ul {
display: none;
width: 100%;
background: #f0f0f0;
padding: 20px;
position: absolute;
z-index: 99;
left: 0;
margin: 0;
list-style: none;
box-sizing: border-box;
}
.menu > ul > li > ul:before,
.menu > ul > li > ul:after {
content: "";
display: table;
}
.menu > ul > li > ul:after {
clear: both;
}
.menu > ul > li > ul > li {
margin: 0;
padding-bottom: 0;
list-style: none;
width: 25%;
background: none;
float: left;
}
.menu > ul > li > ul > li a {
color: #777;
padding: .2em 0;
width: 95%;
display: block;
border-bottom: 1px solid #ccc;
}
.menu > ul > li > ul > li > ul {
display: block;
padding: 0;
margin: 10px 0 0;
list-style: none;
box-sizing: border-box;
}
.menu > ul > li > ul > li > ul:before,
.menu > ul > li > ul > li > ul:after {
content: "";
display: table;
}
.menu > ul > li > ul > li > ul:after {
clear: both;
}
.menu > ul > li > ul > li > ul > li {
float: left;
width: 100%;
padding: 10px 0;
margin: 0;
font-size: .8em;
}
.menu > ul > li > ul > li > ul > li a {
border: 0;
}
.menu > ul > li > ul.normal-sub {
width: 300px;
left: auto;
padding: 10px 20px;
}
.menu > ul > li > ul.normal-sub > li {
width: 100%;
}
.menu > ul > li > ul.normal-sub > li a {
border: 0;
padding: 1em 0;
}
/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Mobile style's
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media only screen and (max-width: $breakpoint) {
.menu-container {
width: 100%;
}
.menu-mobile {
display: block;
}
.menu-dropdown-icon:before {
display: block;
}
.menu > ul {
display: none;
}
.menu > ul > li {
width: 100%;
float: none;
display: block;
}
.menu > ul > li a {
padding: 1.5em;
width: 100%;
display: block;
}
.menu > ul > li > ul {
position: relative;
}
.menu > ul > li > ul.normal-sub {
width: 100%;
}
.menu > ul > li > ul > li {
float: none;
width: 100%;
margin-top: 20px;
}
.menu > ul > li > ul > li:first-child {
margin: 0;
}
.menu > ul > li > ul > li > ul {
position: relative;
}
.menu > ul > li > ul > li > ul > li {
float: none;
}
.menu .show-on-mobile {
display: block;
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//
// # END DEFAULT STYLES
//
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
.menu-container {
width: 100%;
background: #ccc;
font-family: Montserrat, "Arial", sans-serif;
font-weight: 400;
a {
color: #333;
}
& .mmInvert a {
color: #fff;
}
& .menu > ul > li > ul {
}
// & .mmSubHeader {
// padding-bottom: 10px;
// border-bottom: 1px solid #fff;
// width: 90%;
// }
& #mmLogo {
background: #fff;
display: none;
&:hover, &:focus {
background: #fff;
}
& a {
text-align: center;
padding: 1.5em 1.5em;
}
& img {
max-width: 200px;
}
} // end .mmLogo
& .menu-dropdown-icon {
}
& #mmBlue {
background: $blue;
// &:hover, &:focus {
// background: mix(black, $blue, 25%);
// }
& > ul {
background: $blue;
& li a:hover, & li a:focus {
color: mix(black, $blue, 65%);
}
}
}
& #mmOrange {
background: $orange;
// &:hover, &:focus {
// background: mix(black, $orange, 25%);
// }
& > ul {
background: $orange;
& li a:hover, & li a:focus {
color: mix(black, $orange, 50%);
}
}
}
& #mmGreen {
background: $green;
// &:hover, &:focus {
// background: mix(black, $green, 25%);
// }
& > ul {
background: $green;
& li a:hover, & li a:focus {
color: mix(black, $green, 50%);
}
}
}
& #mmRed {
background: $red;
// &:hover, &:focus {
// background: mix(black, $red, 25%);
// }
& > ul {
background: $red;
& li a:hover, & li a:focus {
color: mix(black, $red, 50%);
}
}
}
& #mmLocations, & #mmInfo {
& > ul {
& li a:hover, & li a:focus {
color: mix(white, #777, 45%);
}
}
}
// -----------------------------------------
// # ICONS
// -----------------------------------------
// -----------------------------------------
// # useIt
& #useIt {
&:before {
content: "\f19c";
// http://fontawesome.io/icon/university/
font-family: FontAwesome;
margin-right: 10px;
}
}
// -----------------------------------------
// ## useIt - sub items
#secureChecking {
&:before {
content: "\f046";
// http://fontawesome.io/icon/check-square-o/
font-family: FontAwesome;
}
}
#atmCards {
&:before {
content: "\f09d";
// http://fontawesome.io/icon/credit-card/
font-family: FontAwesome;
}
}
#digitalBanking {
&:before {
content: "\f10b";
// http://fontawesome.io/icon/mobile/
font-family: FontAwesome;
font-size: 20px;
}
}
#digitalBankingResources {
&:before {
content: "\f085";
// http://fontawesome.io/icon/cogs/
font-family: FontAwesome;
}
}
#cutxPerks {
&:before {
content: "\f067";
// http://fontawesome.io/icon/plus/
font-family: FontAwesome;
}
}
// -----------------------------------------
// # getIt
& #getIt {
&:before {
content: "\f25a";
// http://fontawesome.io/icon/hand-pointer-o/
font-family: FontAwesome;
margin-right: 10px;
}
}
// -----------------------------------------
// ## getIt - subt items
#homeLoans {
&:before {
content: "\f015";
// http://fontawesome.io/icon/home/
font-family: FontAwesome;
}
}
#personalLoans {
&:before {
content: "\f290";
// http://fontawesome.io/icon/shopping-bag/
font-family: FontAwesome;
}
}
#creditCards {
&:before {
content: "\f09d";
// http://fontawesome.io/icon/credit-card/
font-family: FontAwesome;
}
}
#loanPromotions {
&:before {
content: "\f151";
// http://fontawesome.io/icon/caret-square-o-up/
font-family: FontAwesome;
}
}
#creditCardPromotions {
&:before {
content: "\f005";
// http://fontawesome.io/icon/star/
font-family: FontAwesome;
}
}
#buildItRebuildIt {
&:before {
content: url('https://cutx.org/uploads/dropdown/menuIcon-buildIt.png');
position: relative;
}
// &:before {
// content: "\f135";
// // http://fontawesome.io/icon/rocket/
// font-family: FontAwesome;
// }
}
// -----------------------------------------
// # saveIt
& #saveIt {
&:before {
content: "\f0d6";
// http://fontawesome.io/icon/money/
font-family: FontAwesome;
margin-right: 10px;
}
}
// -----------------------------------------
// ## saveIt - sub items
#savingsAccounts {
&:before {
content: "\f19c";
// http://fontawesome.io/icon/university/
font-family: FontAwesome;
}
}
#investments {
&:before {
content: "\f201";
// http://fontawesome.io/icon/line-chart/
font-family: FontAwesome;
}
}
// -----------------------------------------
// # driveIt
& #driveIt {
&:before {
content: "\f1b9";
// http://fontawesome.io/icon/car/
font-family: FontAwesome;
margin-right: 10px;
}
}
// -----------------------------------------
// ## driveIt - sub items
#autoRefinance {
&:before {
content: "\f013";
// http://fontawesome.io/icon/cog/
font-family: FontAwesome;
}
}
#autoLoans {
&:before {
content: "\f155";
// http://fontawesome.io/icon/usd/
font-family: FontAwesome;
}
}
#fairLease {
&:before {
content: url('https://cutx.org/uploads/dropdown/menuIcon-fairlease.png');
background: no-repeat center center;
position: relative;
width: 20px;
height: 15px;
overflow: visible;
}
}
#autoMarket {
&:before {
content: "\f064";
// http://fontawesome.io/icon/share/
font-family: FontAwesome;
}
}
#specialAuto {
&:before {
content: "\f132";
// http://fontawesome.io/icon/shield/
font-family: FontAwesome;
}
}
// -----------------------------------------
// # Locations
& #mmLocations {
& span:before {
content: "\f041";
// http://fontawesome.io/icon/map-marker/
font-family: FontAwesome;
margin-right: 10px;
}
}
// -----------------------------------------
// # Info
& #mmInfo {
& span:before {
content: "\f05a";
// http://fontawesome.io/icon/info-circle/
font-family: FontAwesome;
margin-right: 10px;
}
}
// -----------------------------------------
// # Info
& #mmSearch {
& span:before {
content: "\f002";
// http://fontawesome.io/icon/search/
font-family: FontAwesome;
margin-right: 10px;
}
}
// -----------------------------------------
// # mmLocations, mmInfo
& .menu > ul > li {
background: #ccc;
&:hover, &:focus {
background: #f0f0f0;
}
}
// -----------------------------------------
// # Locations
& .mmCallStore {
&:before {
content: "\f095";
// http://fontawesome.io/icon/phone/
font-family: FontAwesome;
margin-right: 10px;
}
}
& .mmDirections {
&:before {
content: "\f041";
// http://fontawesome.io/icon/map-marker/
font-family: FontAwesome;
margin-right: 10px;
}
}
// -----------------------------------------
// # External Links
& .mmExternal {
&:before {
content: "\f08e";
// http://fontawesome.io/icon/external-link/
font-family: FontAwesome;
font-size: 14px;
float: left;
margin: 2px 10px 20px 0;
}
}
// -----------------------------------------
// # External Links Note
// & .mmNote {
// &:after {
// content: "NOTE: Links marked with a '\f08e\'/ icon means the link will take you off CUTX.org.";
// color: #777;
// font-family: sans-serif;
// font-size: 11px;
// font-weight: normal;
// letter-spacing: 1px;
// text-align: center;
// text-transform: uppercase;
// width: 100%;
// position: relative;
// padding: 2em 0 1em;
// }
// }
& .mmSubIcon {
position: relative;
top: -1px;
margin: 0 10px 0 0;
float: left;
width: 15px;
}
& .mmDescription {
padding: 10px 20px 10px 0;
line-height: 1.5;
}
& .menu-dropdown-icon:before {
background: rgba(0,0,0,.45);
color: #fff;
}
& .menu-container .menu > ul > li:hover,
& .menu-container .menu > ul > li:focus {
background: rgba(0,0,0,.45);
}
& .menu-dropdown-icon > a {
padding: 1.5em;
}
& .menu-mobile:after {
top: -3px;
}
}
@media only screen and (max-width: $breakpoint) {
.menu-container {
& .mmSubHeader {
border-bottom: 1px solid rgba(0,0,0,.15);
padding-bottom: 20px !important;
&:last-child {
border-bottom: 0;
padding-bottom: 10px !important;
}
}
& .menu-dropdown-icon {
border-bottom: 1px solid rgba(250,250,250,.75);
&:last-child {
border-bottom: 0;
}
}
& #mmLogo {
display: block !important;
}
& .menu-mobile {
text-decoration: none;
font-weight: bold;
text-transform: uppercase;
letter-spacing: .75px;
}
}
// swap menu FontAwesome icons on click
.mmOpen {
&:after {
content: "\f00d";
// http://fontawesome.io/icon/times/
font-family: FontAwesome;
font-size: 2.4rem;
}
}
.mmSubOpen {
&:before {
content: "\f0d8";
// http://fontawesome.io/icon/caret-up/
font-family: FontAwesome;
}
}
}
#inline_content {
width: 100%;
// max-width: 300px;
// height: 100%;
// max-height: 100px;
padding: 20px;
& .sc_searchbar3 {
padding: 10px;
margin: 0 auto 10px;
width: 295px;
}
& .sc_submit3 {
padding: 10px;
margin: 0 auto;
width: 320px;
}
}
// Script to simply prevent outbound links from actually triggering
// ** NOT FOR DEPLOYMENT **
$(function() {
$("a").click(function( event ) {
event.preventDefault();
});
});
/*global $ */
$(document).ready(function () {
"use strict";
$(".menu > ul > li:has( > ul)").addClass("menu-dropdown-icon");
//Checks if li has sub (ul) and adds class for toggle icon - just an UI
$(".menu > ul > li > ul:not(:has(ul))").addClass("normal-sub");
//Checks if drodown menu"s li elements have anothere level (ul), if not the dropdown is shown as regular dropdown, not a mega menu (thanks Luka Kladaric)
$(".menu > ul").before("<a href=\"#\" class=\"menu-mobile\">CUTX Navigation</a>");
//Adds menu-mobile class (for mobile toggle menu) before the normal menu
//Mobile menu is hidden if width is more then 959px, but normal menu is displayed
//Normal menu is hidden if width is below 959px, and jquery adds mobile menu
//Done this way so it can be used with wordpress without any trouble
$(".menu > ul > li").hover(function (e) {
if ($(window).width() > 943) {
$(this).children("ul").stop(true, false).fadeToggle(150);
e.preventDefault();
}
});
//If width is more than 943px dropdowns are displayed on hover
$(".menu > ul > li").click(function () {
if ($(window).width() <= 943) {
$(this).children("ul").fadeToggle(150);
$(this).toggleClass("mmSubOpen");
}
});
//If width is less or equal to 943px dropdowns are displayed on click (thanks Aman Jain from stackoverflow)
$(".menu-mobile").click(function (e) {
$(".menu > ul").toggleClass("show-on-mobile");
$(".menu-mobile").toggleClass("mmOpen");
e.preventDefault();
});
//when clicked on mobile-menu, normal menu is shown as a list, classic rwd menu story (thanks mwl from stackoverflow)
});
Also see: Tab Triggers