Advertisement
FriendlyWP

Swoop

Aug 19th, 2013
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.41 KB | None | 0 0
  1. /*** SCSS ***/
  2. .taupe {
  3.     background-color: $taupe;
  4.     z-index: 100;
  5. }
  6.  
  7. .blue {
  8.     background-color: $blue;
  9. }
  10.  
  11. .light-blue {
  12.     background-color: $light-blue;
  13. }
  14.  
  15. .white {
  16.     position: relative;
  17. }
  18.  
  19. .swoop {
  20.     display: inline-block;
  21.     float:right;
  22.     clear:right;
  23.     padding:.3em 0 .5em 1em;
  24.     position: relative;
  25.     @include border-radius(0 0 0 1.6em);
  26.     @include box-shadow(3px 4px 4px -2px rgba(0,0,0,0.22));
  27.  
  28.     &:after {
  29.         position: absolute;
  30.         top:0;
  31.         content:"";
  32.         top:0;
  33.         bottom:0;
  34.         left:100%;
  35.         width:300em;
  36.         height:100%;
  37.         @include box-shadow(0 4px 4px -2px rgba(0,0,0,0.22));
  38.     }
  39.  
  40.     /* squares */
  41.     &:before {
  42.         position:absolute;
  43.         top:0;
  44.         content:"";
  45.         width:1.6em;
  46.         height:1.6em;
  47.         left:-1.6em;
  48.         z-index:1;
  49.     }
  50.  
  51.     &.bottom {
  52.         @include border-radius(1.67em 0 0 0);
  53.         position: absolute;
  54.         float: none;
  55.         bottom:0;
  56.         right:0;
  57.         padding:.5em 0 0em 1em;
  58.         max-width:64%;
  59.         @include box-shadow(none);
  60.  
  61.         /* squares */
  62.         &:before {
  63.             bottom:0 !important;
  64.             top: auto !important;
  65.         }
  66.  
  67.         &:after {
  68.             @include box-shadow(none);
  69.         }
  70.     }
  71.  
  72.     &.taupe:before, &.taupe:after {
  73.         background-color: $taupe;
  74.     }
  75.  
  76.     &.light-blue:before, &.light-blue:after {
  77.         background-color: $light-blue;
  78.     }
  79.  
  80.     &.blue:before, &.blue:after {
  81.         background-color: $blue;
  82.     }
  83.  
  84.     span {
  85.         &.curvy {
  86.             display: block;
  87.             float:left;
  88.  
  89.             /* circles */
  90.             &:before {
  91.                 position:absolute;
  92.                 top:0;
  93.                 content:"";
  94.                 background-color: $white;
  95.                 width:2.9em;
  96.                 height:2.9em;
  97.                 left:-2.5em;
  98.                 z-index:2;
  99.                 @include border-radius(1.6em 2.6em);
  100.             }
  101.         }
  102.  
  103.         /* circles */
  104.         &.rounddown {
  105.             display: block;
  106.             float:left;
  107.  
  108.                 &:before {
  109.                 position:absolute;
  110.                 bottom:0;
  111.                 content:"";
  112.                 background-color: $white;
  113.                 width:2.9em;
  114.                 height:2.9em;
  115.                 left:-2.5em;
  116.                 z-index:2;
  117.                 @include border-radius(2.6em 1.6em);
  118.             }
  119.         }
  120.     }
  121.  
  122. }
  123.  
  124. .taupe.swoop {
  125.     position: inherit;
  126.     background-color: $taupe;
  127.     width: auto;
  128.     margin:inherit;
  129.     padding:.2em .2em .2em 1.5em;
  130.     text-align: left;
  131. }
  132.  
  133. /******* HTML *******/
  134.  
  135. <div class="wrap white clearfix">
  136.                    
  137.     <div class="taupe swoop">
  138.         <span class="curvy"></span>
  139.         <ul id="menu-social-links" class="social-nav clearfix">
  140.             <li><!-- social li's here--></li>
  141.         </ul>
  142.         <form role="search" method="get" id="searchform" action="http://texascasa.wpengine.com/">
  143.                 <label class="screen-reader-text" for="s">Search for:</label>
  144.                 <input type="text" value="" placeholder="Search Texas CASA" name="s" id="s" />
  145.                 <button type="submit" id="searchsubmit" class="button" value="Search" /><i class="icon-search icon-large"></i></button>
  146.         </form>
  147.     </div>
  148.  
  149.     <a id="logo" href="http://texascasa.wpengine.com" rel="nofollow"><img src="http://texascasa.wpengine.com/wp-content/themes/texascasa-bones/library/images/logo-texas-casa.png" alt="Texas CASA" /></a>
  150.  
  151.     <div class="blue swoop bottom">
  152.         <span class="rounddown"></span>
  153.         <nav role="navigation">
  154.             <ul id="menu-primary-menu" class="nav top-nav clearfix">
  155.                 <li><!-- navigation li's here --></li>
  156.             </ul>
  157.         </nav>
  158.     </div>
  159.  
  160.    
  161.     <div class="light-blue swoop">
  162.         <span class="curvy"></span>
  163.         <ul id="menu-ancillary-menu" class="nav ancillary-nav clearfix">
  164.             <li><!-- ancillary nav li's here--></li>
  165.         </ul>
  166.     </div>
  167.  
  168. </div><!-- .wrap -->
  169.  
  170. <div class="stretch blue">
  171.     <!-- this is just to make the background stretch full-width to the right -->
  172. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement