Advertisement
ListaBrBazil

barrayeeah.css

Sep 13th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.86 KB | None | 0 0
  1. /* =============================================
  2.  *
  3.  *   FIXED RESPONSIVE NAV
  4.  *
  5.  *   (c) 2014 @adtileHQ
  6.  *   http://www.adtile.me
  7.  *   http://twitter.com/adtilehq
  8.  *
  9.  *   Free to use under the MIT License.
  10.  *
  11.  * ============================================= */
  12.  
  13. body, div,
  14. h1, h2, h3, h4, h5, h6,
  15. p, blockquote, pre, dl, dt, dd, ol, ul, li, hr,
  16. fieldset, form, label, legend, th, td,
  17. article, aside, figure, footer, header, hgroup, menu, nav, section,
  18. summary, hgroup {
  19.   margin: 0;
  20.   padding: 0;
  21.   border: 0;
  22. }
  23.  
  24. a:active,
  25. a:hover {
  26.   outline: 0;
  27. }
  28.  
  29. @-webkit-viewport { width: device-width; }
  30. @-moz-viewport { width: device-width; }
  31. @-ms-viewport { width: device-width; }
  32. @-o-viewport { width: device-width; }
  33. @viewport { width: device-width; }
  34.  
  35.  
  36. /* ------------------------------------------
  37.   RESPONSIVE NAV STYLES
  38. --------------------------------------------- */
  39.  
  40. .nav-collapse ul {
  41.   margin: 0;
  42.   padding: 0;
  43.   width: 100%;
  44.   display: block;
  45.   list-style: none;
  46. }
  47.  
  48. .nav-collapse li {
  49.   width: 100%;
  50.   display: block;
  51. }
  52.  
  53. .js .nav-collapse {
  54.   clip: rect(0 0 0 0);
  55.   max-height: 0;
  56.   position: absolute;
  57.   display: block;
  58.   overflow: hidden;
  59.   zoom: 1;
  60. }
  61.  
  62. .nav-collapse.opened {
  63.   max-height: 9999px;
  64. }
  65.  
  66. .disable-pointer-events {
  67.   pointer-events: none !important;
  68. }
  69.  
  70. .nav-toggle {
  71.   -webkit-tap-highlight-color: rgba(0,0,0,0);
  72.   -webkit-touch-callout: none;
  73.   -webkit-user-select: none;
  74.   -moz-user-select: none;
  75.   -ms-user-select: none;
  76.   -o-user-select: none;
  77.   user-select: none;
  78. }
  79.  
  80. @media screen and (min-width: 40em) {
  81.   .js .nav-collapse {
  82.     position: relative;
  83.   }
  84.   .js .nav-collapse.closed {
  85.     max-height: none;
  86.   }
  87.   .nav-toggle {
  88.     display: none;
  89.   }
  90. }
  91.  
  92.  
  93. /* ------------------------------------------
  94.   DEMO STYLES
  95. --------------------------------------------- */
  96.  
  97. body {
  98.   -webkit-text-size-adjust: 100%;
  99.   -ms-text-size-adjust: 100%;
  100.   text-size-adjust: 100%;
  101.   color: #37302a;
  102.   background: #fff;
  103.   font: normal 100%/1.4 sans-serif;
  104. }
  105.  
  106. section {
  107.   border-bottom: 1px solid #999;
  108.   text-align: center;
  109.   padding: 100px 0 0;
  110.   height: 800px;
  111.   width: 100%;
  112. }
  113.  
  114. h1 {
  115.   margin-bottom: .5em;
  116. }
  117.  
  118. p {
  119.   width: 90%;
  120.   margin: 0 auto;
  121. }
  122.  
  123.  
  124. /* ------------------------------------------
  125.   FIXED HEADER
  126. --------------------------------------------- */
  127.  
  128. header {
  129.   background: #141414;
  130.   position: fixed;
  131.   z-index: 3;
  132.   width: 100%;
  133.   left: 0;
  134.   top: 0;
  135. }
  136.  
  137. .logo {
  138.   -webkit-tap-highlight-color: rgba(0,0,0,0);
  139.   text-decoration: none;
  140.   font-weight: bold;
  141.   line-height: 55px;
  142.   padding: 5px 20px;
  143.   color: #fff;
  144.   float: left;
  145. }
  146.  
  147. .logo-menu{
  148.     width: 113px;
  149.             margin: auto;
  150.         display: block;
  151.         padding: 8px 0;
  152. }
  153.  
  154.  
  155. /* ------------------------------------------
  156.   MASK
  157. --------------------------------------------- */
  158.  
  159. .mask {
  160.   -webkit-transition: opacity 300ms;
  161.   -moz-transition: opacity 300ms;
  162.   transition: opacity 300ms;
  163.   background: rgba(0,0,0, .5);
  164.   visibility: hidden;
  165.   position: fixed;
  166.   opacity: 0;
  167.   z-index: 2;
  168.   bottom: 0;
  169.   right: 0;
  170.   left: 0;
  171.   top: 0;
  172. }
  173.  
  174. .android .mask {
  175.   -webkit-transition: none;
  176.   transition: none;
  177. }
  178.  
  179. .js-nav-active .mask {
  180.   visibility: visible;
  181.   opacity: 1;
  182. }
  183.  
  184. @media screen and (min-width: 40em) {
  185.   .mask {
  186.     display: none !important;
  187.     opacity: 0 !important;
  188.   }
  189. }
  190.  
  191.  
  192. /* ------------------------------------------
  193.   NAVIGATION STYLES
  194. --------------------------------------------- */
  195.  
  196. .fixed {
  197.   position: fixed;
  198.   width: 100%;
  199.   left: 0;
  200.   top: 0;
  201. }
  202.  
  203. .nav-collapse,
  204. .nav-collapse * {
  205.   -webkit-box-sizing: border-box;
  206.   -moz-box-sizing: border-box;
  207.   box-sizing: border-box;
  208. }
  209.  
  210. .nav-collapse,
  211. .nav-collapse ul {
  212.   list-style: none;
  213.   width: 100%;
  214.   float: left;
  215. }
  216.  
  217. @media screen and (min-width: 40em) {
  218.   .nav-collapse {
  219.     float: right;
  220.     width: auto;
  221.   }
  222. }
  223.  
  224. .nav-collapse li {
  225.   float: left;
  226.   width: 100%;
  227. }
  228.  
  229. @media screen and (min-width: 40em) {
  230.   .nav-collapse li {
  231.     width: auto;
  232.   }
  233. }
  234.  
  235. .nav-collapse a {
  236.   -webkit-tap-highlight-color: rgba(0,0,0,0);
  237.   border-top: 0px solid white;
  238.   text-decoration: none;
  239.   background: #141414;
  240.   padding: 0.7em 1em;
  241.   color: #fff;
  242.   width: 100%;
  243.   float: left;
  244. }
  245.  
  246. .nav-collapse a:active,
  247. .nav-collapse .active a {
  248.   background: #141414;
  249. }
  250.  
  251. @media screen and (min-width: 40em) {
  252.   .nav-collapse a {
  253.     border-left: 0px solid white;
  254.     padding: 1.02em 2em;
  255.     text-align: center;
  256.     border-top: 0;
  257.     float: left;
  258.     margin: 0;
  259.   }
  260. }
  261.  
  262. .nav-collapse ul ul a {
  263.   background: #141414;
  264.   padding-left: 2em;
  265. }
  266.  
  267. @media screen and (min-width: 40em) {
  268.   .nav-collapse ul ul a {
  269.     display: none;
  270.   }
  271. }
  272.  
  273.  
  274. /* ------------------------------------------
  275.   NAV TOGGLE STYLES
  276. --------------------------------------------- */
  277.  
  278. @font-face {
  279.   font-family: "responsivenav";
  280.   src:url("../icons/responsivenav.eot");
  281.   src:url("../icons/responsivenav.eot?#iefix") format("embedded-opentype"),
  282.     url("../icons/responsivenav.ttf") format("truetype"),
  283.     url("../icons/responsivenav.woff") format("woff"),
  284.     url("../icons/responsivenav.svg#responsivenav") format("svg");
  285.   font-weight: normal;
  286.   font-style: normal;
  287. }
  288.  
  289. .nav-toggle {
  290.   -webkit-font-smoothing: antialiased;
  291.   -moz-osx-font-smoothing: grayscale;
  292.   text-decoration: none;
  293.   text-indent: -300px;
  294.   position: relative;
  295.   overflow: hidden;
  296.   width: 60px;
  297.   height: 55px;
  298.   float: right;
  299. }
  300.  
  301. .nav-toggle:before {
  302.   color: #fff; /* Edit this to change the icon color */
  303.   font: normal 28px/55px "responsivenav"; /* Edit font-size (28px) to change the icon size */
  304.   text-transform: none;
  305.   text-align: center;
  306.   position: absolute;
  307.   content: "\2261"; /* Hamburger icon */
  308.   text-indent: 0;
  309.   speak: none;
  310.   width: 100%;
  311.   left: 0;
  312.   top: 0;
  313. }
  314.  
  315. .nav-toggle.active:before {
  316.   font-size: 24px;
  317.   content: "\78"; /* Close icon */
  318. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement