Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.47 KB | None | 0 0
  1. /* * Copyright (c) 2012 Thibaut Courouble
  2.  * Licensed under the MIT License
  3.    ================================================== */
  4.  
  5. body {
  6.     background: #f7f7f7;
  7.     color: #404040;
  8.     font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  9.     font-size: 13px;
  10.     font-weight: normal;
  11.     line-height: 20px;
  12. }
  13.  
  14. a {
  15.     color: #1e7ad3;
  16.     text-decoration: none;
  17. }
  18.  
  19. a:hover { text-decoration: underline }
  20.  
  21. .container, .main {
  22.     width: 640px;
  23.     margin-left: auto;
  24.     margin-right: auto;
  25.     height: 300px;
  26. }
  27.  
  28. .main { margin-top: 50px }
  29.  
  30. input {
  31.     font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  32.     font-size: 13px;
  33.     color: #555860;
  34. }
  35.  
  36. .search {
  37.     position: relative;
  38.     margin: 0 auto;
  39.     width: 300px;
  40. }
  41.  
  42. .search input {
  43.     height: 26px;
  44.     width: 100%;
  45.     padding: 0 12px 0 25px;
  46.     background: white url("http://cssdeck.com/uploads/media/items/5/5JuDgOa.png") 8px 6px no-repeat;
  47.     border-width: 1px;
  48.     border-style: solid;
  49.     border-color: #a8acbc #babdcc #c0c3d2;
  50.     border-radius: 13px;
  51.     -webkit-box-sizing: border-box;
  52.     -moz-box-sizing: border-box;
  53.     -ms-box-sizing: border-box;
  54.     -o-box-sizing: border-box;
  55.     box-sizing: border-box;
  56.     -webkit-box-shadow: inset 0 1px #e5e7ed, 0 1px 0 #fcfcfc;
  57.     -moz-box-shadow: inset 0 1px #e5e7ed, 0 1px 0 #fcfcfc;
  58.     -ms-box-shadow: inset 0 1px #e5e7ed, 0 1px 0 #fcfcfc;
  59.     -o-box-shadow: inset 0 1px #e5e7ed, 0 1px 0 #fcfcfc;
  60.     box-shadow: inset 0 1px #e5e7ed, 0 1px 0 #fcfcfc;
  61. }
  62.  
  63. .search input:focus {
  64.     outline: none;
  65.     border-color: #66b1ee;
  66.     -webkit-box-shadow: 0 0 2px rgba(85, 168, 236, 0.9);
  67.     -moz-box-shadow: 0 0 2px rgba(85, 168, 236, 0.9);
  68.     -ms-box-shadow: 0 0 2px rgba(85, 168, 236, 0.9);
  69.     -o-box-shadow: 0 0 2px rgba(85, 168, 236, 0.9);
  70.     box-shadow: 0 0 2px rgba(85, 168, 236, 0.9);
  71. }
  72.  
  73. .search input:focus + .results { display: block }
  74.  
  75. .search .results {
  76.     display: none;
  77.     position: absolute;
  78.     top: 35px;
  79.     left: 0;
  80.     right: 0;
  81.     z-index: 10;
  82.     padding: 0;
  83.     margin: 0;
  84.     border-width: 1px;
  85.     border-style: solid;
  86.     border-color: #cbcfe2 #c8cee7 #c4c7d7;
  87.     border-radius: 3px;
  88.     background-color: #fdfdfd;
  89.     background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fdfdfd), color-stop(100%, #eceef4));
  90.     background-image: -webkit-linear-gradient(top, #fdfdfd, #eceef4);
  91.     background-image: -moz-linear-gradient(top, #fdfdfd, #eceef4);
  92.     background-image: -ms-linear-gradient(top, #fdfdfd, #eceef4);
  93.     background-image: -o-linear-gradient(top, #fdfdfd, #eceef4);
  94.     background-image: linear-gradient(top, #fdfdfd, #eceef4);
  95.     -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  96.     -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  97.     -ms-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  98.     -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  99.     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  100. }
  101.  
  102. .search .results li { display: block }
  103.  
  104. .search .results li:first-child { margin-top: -1px }
  105.  
  106. .search .results li:first-child:before, .search .results li:first-child:after {
  107.     display: block;
  108.     content: '';
  109.     width: 0;
  110.     height: 0;
  111.     position: absolute;
  112.     left: 50%;
  113.     margin-left: -5px;
  114.     border: 5px outset transparent;
  115. }
  116.  
  117. .search .results li:first-child:before {
  118.     border-bottom: 5px solid #c4c7d7;
  119.     top: -11px;
  120. }
  121.  
  122. .search .results li:first-child:after {
  123.     border-bottom: 5px solid #fdfdfd;
  124.     top: -10px;
  125. }
  126.  
  127. .search .results li:first-child:hover:before, .search .results li:first-child:hover:after { display: none }
  128.  
  129. .search .results li:last-child { margin-bottom: -1px }
  130.  
  131. .search .results a {
  132.     display: block;
  133.     position: relative;
  134.     margin: 0 -1px;
  135.     padding: 6px 40px 6px 10px;
  136.     color: #808394;
  137.     font-weight: 500;
  138.     text-shadow: 0 1px #fff;
  139.     border: 1px solid transparent;
  140.     border-radius: 3px;
  141. }
  142.  
  143. .search .results a span { font-weight: 200 }
  144.  
  145. .search .results a:before {
  146.     content: '';
  147.     width: 18px;
  148.     height: 18px;
  149.     position: absolute;
  150.     top: 50%;
  151.     right: 10px;
  152.     margin-top: -9px;
  153.     background: url("http://cssdeck.com/uploads/media/items/7/7BNkBjd.png") 0 0 no-repeat;
  154. }
  155.  
  156. .search .results a:hover {
  157.     text-decoration: none;
  158.     color: #fff;
  159.     text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
  160.     border-color: #2380dd #2179d5 #1a60aa;
  161.     background-color: #338cdf;
  162.     background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #59aaf4), color-stop(100%, #338cdf));
  163.     background-image: -webkit-linear-gradient(top, #59aaf4, #338cdf);
  164.     background-image: -moz-linear-gradient(top, #59aaf4, #338cdf);
  165.     background-image: -ms-linear-gradient(top, #59aaf4, #338cdf);
  166.     background-image: -o-linear-gradient(top, #59aaf4, #338cdf);
  167.     background-image: linear-gradient(top, #59aaf4, #338cdf);
  168.     -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.08);
  169.     -moz-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.08);
  170.     -ms-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.08);
  171.     -o-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.08);
  172.     box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.08);
  173. }
  174.  
  175. :-moz-placeholder {
  176.     color: #a7aabc;
  177.     font-weight: 200;
  178. }
  179.  
  180. ::-webkit-input-placeholder {
  181.     color: #a7aabc;
  182.     font-weight: 200;
  183. }
  184.  
  185. .lt-ie9 .search input { line-height: 26px }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement