Please decode this code please

brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
edited September 3, 2013 in SmugMug Customization
the red menu line on this page is donated code from a fellow SM'er...
http://www.brandolinoimaging.com/Info-Pages/Test-2/n-zvWvH

The CSS for the code is what I'm trying to figure out... it's below...
What part is making the drops seem to fly in from below or right?
#menu-primary {
  background-color: #bd4c33;
  background-image: -webkit-gradient(left top, left bottom, from(#bd4c33), to(#8C3926));
  background-image: -webkit-linear-gradient(top, #bd4c33, #8C3926);
  background-image: -moz-linear-gradient(top, #bd4c33, #8C3926);
  background-image: -ms-linear-gradient(top, #bd4c33, #8C3926);
  background-image: -o-linear-gradient(top, #bd4c33, #8C3926);
  background-image: linear-gradient(top, #bd4c33, #8C3926);
  -pie-background: linear-gradient(top, #bd4c33, #8C3926);
  box-shadow: 0px 3px 5px #000;
  -moz-box-shadow: 0px 3px 5px #000;
  -webkit-box-shadow: 0px 3px 5px #000;
}

#menu-primary ul {
  list-style: none;
  margin: 0;
  text-align: center;
}

#menu-primary .menu-items {
  zoom: 1;
}

#menu-primary .menu-items::before, #menu-primary .menu-items::after {
  content: "";
  display: table;
}

#menu-primary .menu-items::after {
  clear: both;
}

#menu-primary .menu-items > ul {
  width: 100%;
  margin: 60px auto;
}

#menu-primary ul ul {
  margin: 20px 0 0;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 43px;
  z-index: 1;
  text-align: left;
  -webkit-transition: all 0.1s ease-out;
  -moz-transition: all 0.1s ease-out;
  -o-transition: all 0.1s ease-out;
  transition: all 0.1s ease-in-out;
}

#menu-primary li:hover > ul {
  opacity: 1;
  visibility: visible;
  margin: 0;
  -webkit-transition: all 0.35s ease-in;
  -moz-transition: all 0.35s ease-in;
  -o-transition: all 0.35s ease-in;
  transition: all 0.35s ease-in-out;
}

#menu-primary ul ul ul {
  top: 0;
  left: 230px;
  margin: 0 0 0 20px;
}

#menu-primary li {
  display: inline-block;
  position: relative;
}

#menu-primary li a {
  display: inline-block;
  padding: 12px 25px;
  color: #d9984a;
  font-family: Muli, sans-serif;
  text-decoration: none;
}

#menu-primary li a:hover, #menu-primary li:hover > a, #menu-primary li.current-menu-item > a, .sm-page-node-ZWr8F #menu-primary li.about-me a, .sm-page-node-6f35D #menu-primary li.portfolio a {
  color: #dfd0bb;
}

#menu-primary li li.current-menu-item > a {
  color: #d9984a;
}

#menu-primary li li a {
  font-size: .6875rem;
  text-transform: uppercase;
  color: #d9984a;
  opacity: 0.98;
}

#menu-primary li li a:hover, #menu-primary li li:hover > a {
  color: #dfd0bb;
  background: #8C3926;
}

#menu-primary ul ul {
  background-color: #332223;
  background-image: -webkit-gradient(left top, left bottom, from(#482F31), to(#332223));
  background-image: -webkit-linear-gradient(top, #482F31, #332223);
  background-image: -moz-linear-gradienttop, (#482F31, #332223);
  background-image: -ms-linear-gradient(top, #482F31, #332223);
  background-image: -o-linear-gradient(top, #482F31, #332223);
  background-image: linear-gradient(top, #482F31, #332223);
  -pie-background: linear-gradient(top, #482F31, #332223);
  border: 1px solid #39321f;
  box-shadow: 0px 3px 5px #000;
  -moz-box-shadow: 0px 3px 5px #000;
  -webkit-box-shadow: 0px 3px 5px #000;
}

#menu-primary ul ul li {
  float: none;
  display: block;
}

#menu-primary ul ul li a {
  width: 180px;
  display: block;
  float: none;
}

#menu-primary-items ul li:first-child > a::after {
  content: '';
  position: absolute;
  left: 25px;
  top: -6px;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #332223;
  border-left: 6px solid transparent;
}

#menu-primary-items ul ul li:first-child a::after {
  left: -6px;
  top: 50%;
  margin-top: -6px;
  border-top: 6px solid transparent;
  border-right: 6px solid #332223;
  border-bottom: 6px solid transparent;
  border-left: 0;
}

.sf-sub-indicator {
  display: none;
}

Comments

Sign In or Register to comment.