LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
  • my lists
  • statics
  • account setting
  • sign out
CSS
@charset "UTF-8";
@import "http://webfonts.ru/import/ptsans.css";
body {
  background-color: #e1dddc;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.search-select {
  margin: 30px auto;
  width: 200px;
}
.search-select .field {
  border: 1px solid #cbbeb9;
  box-shadow: 0 1px 0px #f1efee;
  height: 20px;
  width: 300px;
  line-height: 20px;
  padding: 15px 10px;
  display: inline-block;
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZhZmFmYSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZkZmJmYSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
  background-size: 100%;
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #fafafa), color-stop(100%, #fdfbfa));
  background-image: -moz-linear-gradient(#fafafa, #fdfbfa);
  background-image: -webkit-linear-gradient(#fafafa, #fdfbfa);
  background-image: linear-gradient(#fafafa, #fdfbfa);
  border-radius: 4px;
  cursor: pointer;
}
.search-select .icon:after {
  font-style: normal;
  font-family: FontA;
  color: #a79b97;
  font-size: 20px;
  position: relative;
  right: 10px;
  opacity: 0.8;
  float: right;
}
.search-select .icon.user:after {
  content: "";
}
.search-select .icon.list:after {
  content: "";
}
.search-select .icon.stat:after {
  content: "";
}
.search-select .icon.accs:after {
  content: "";
}
.search-select .icon.sign:after {
  content: "";
}
.search-select .icon.arrow:after {
  content: "";
}
.search-select input {
  display: none;
}
.search-select input:checked + .select {
  opacity: 1;
  top: 15px;
}
.search-select ul.select {
  -moz-transition-property: opacity, top;
  -o-transition-property: opacity, top;
  -webkit-transition-property: opacity, top;
  transition-property: opacity, top;
  -moz-transition-duration: 0.1s;
  -o-transition-duration: 0.1s;
  -webkit-transition-duration: 0.1s;
  transition-duration: 0.1s;
  -moz-transition-timing-function: ease-in;
  -o-transition-timing-function: ease-in;
  -webkit-transition-timing-function: ease-in;
  transition-timing-function: ease-in;
  opacity: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: white;
  border-radius: 4px;
  width: 319px;
  position: relative;
  top: 10px;
  left: 1px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.search-select ul.select li {
  z-index: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 20px;
  width: 300px;
  line-height: 20px;
  padding: 15px 10px;
  text-transform: uppercase;
  color: #a79b97;
  font-family: "PT Sans Caption";
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  padding-left: 20px;
  width: 290px;
  color: #c0b7b4;
  border-bottom: 1px solid #ddd8d7;
}
.search-select ul.select li.arrow {
  display: inline;
  position: absolute;
  top: -20px;
  left: 270px;
  width: 20px;
  height: 20px;
  z-index: 0;
  border: none;
}
.search-select ul.select li.arrow:after {
  font-size: 40px;
  color: white;
  opacity: 1;
}
.search-select ul.select li:nth-child(2) {
  border-radius: 4px 4px 0 0;
}
.search-select ul.select li:last-child {
  border-radius: 0 0 4px 4px;
}
.search-select ul.select li:not(.icon):hover {
  margin-top: -1px;
  background-color: #e38461;
  color: white;
  border-top: 1px solid #df6e52;
  border-bottom: 1px solid #df6e52;
}
.search-select ul.select li:not(.icon):hover i:after {
  color: white;
}
.search-select ul.select li:last-child {
  border: none;
}
.search-select ul.select li i:after {
  color: #c0b7b4;
}
.search-select label {
  cursor: pointer;
  height: 20px;
  width: 300px;
  line-height: 20px;
  padding: 15px 10px;
  text-transform: uppercase;
  color: #a79b97;
  font-family: "PT Sans Caption";
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
}

@font-face {
  font-family: "FontA";
  src: url(https://s.cdpn.io/999/fontawesome-webfont.ttf) format('truetype'), url(https://s.cdpn.io/999/FontAwesome.otf) format('opentype');
}
JS
$('.select').on('click','li',function(){
  $('#opened').click();
  var $t = $(this),
      $f = $('.field')
      text = $t.text(),
      icon = $t.find('i').attr('class');
  $f.find('label').text(text);
  $f.find('i').attr('class',icon)
});
$('.field').click(function(e){
  e.preventDefault();
  $('#opened').click();
})
Host Instantly Drag and Drop Website Builder

 

Description

Inspired by http://dribbble.com/shots/1027783-Dropdown-Menu
Term
Mon, 11/27/2017 - 21:36

Related Codes

Pen ID
Pen ID
Pen ID