Advertisement
Guest User

CSS

a guest
Feb 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.70 KB | None | 0 0
  1. body, input, button, span, span::before, ul {
  2.   margin: 0;
  3.   padding: 0;
  4.   box-sizing: border-box;
  5. }
  6.  
  7. .form {
  8.   font-family: Arial, sans-serif;
  9.   height: 90vh;
  10.   display: flex;
  11. }
  12.  
  13. form {
  14.   display: flex;
  15.   margin: auto;
  16.   align-items: flex-start;
  17. }
  18.  
  19. .input {
  20.   position: relative;
  21. }
  22.  
  23. ul {
  24.   height: 200px;
  25.   position: absolute;
  26.   bottom: -220px;
  27.   left: 0;
  28.   width: 50vw;
  29.   display: none;
  30. }
  31.  
  32. ul li {
  33.   list-style-type: none;
  34.   font-size: 16px;
  35.   border-radius: 5px;
  36.   padding: 10px;
  37.   box-sizing: border-box;
  38.   cursor: pointer;
  39. }
  40.  
  41. ul li:hover {
  42.   background-color: #fceba9;
  43. }
  44.  
  45. input[type="text"] {
  46.   width: 50vw;
  47.   height: 46px;
  48.   border: 2px solid #ffdb4d;
  49.   outline: none;
  50.   font-size: 20px;
  51.   padding-left: 10px;
  52. }
  53.  
  54. button {
  55.   overflow: hidden;
  56.   display: block;
  57.   text-align: center;
  58.   cursor: pointer;
  59.   border: 0;
  60.   font-size: 20px;
  61.   outline: none;
  62.   background: 0 0;
  63. }
  64.  
  65. span {
  66.   width: 95px;
  67.   height: 46px;
  68.   margin: 0 13px 0 0;
  69.   position: relative;
  70.   display: block;
  71.   border: 0 solid #ffdb4d;
  72.   background-color: #ffdb4d;
  73.   padding: 12px;
  74. }
  75.  
  76. span::before {
  77.   border-width: 31px 0 28px 14px;
  78.   right: -12px;
  79.   top: -8px;
  80.   position: absolute;
  81.   width: 0;
  82.   height: 0;
  83.   content: '';
  84.   border-style: solid;
  85.   border-color: rgba(255, 219, 76, 0);
  86.   border-left-color: inherit;
  87. }
  88.  
  89. .logo {
  90.   width: 60px;
  91.   height: 27px;
  92.   background-image: url(https://pictures.s3.yandex.net/ya_grey.svg);
  93.   background-size: contain;
  94.   background-repeat: no-repeat;
  95.   background-position: center;
  96.   position: absolute;
  97.   bottom: 20px;
  98.   left: 50%;
  99.   margin-left: -30px;
  100.   cursor: pointer;
  101.   transition: background .25s ease;
  102. }
  103.  
  104. .logo:hover {
  105.  
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement