Hadi1989

Untitled

Sep 20th, 2018
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.07 KB | None | 0 0
  1. *{
  2.     margin: 0;
  3.     padding: 0;
  4.     font-family: sans-serif;
  5.     list-style: none;
  6.     text-decoration: none;
  7.  
  8. }
  9. .middle{
  10.     position: absolute;
  11.     top: 50%;
  12.     left: 50%;
  13.     transform: translate(-50%, -50%);
  14. }
  15. .menu{
  16.     width: 300px;
  17.     border-radius: 8px;
  18.     overflow: hidden;
  19. }
  20. .item{
  21.     border-top: 1px solid #2980b9;
  22.     overflow: hidden;
  23. }
  24. .btn{
  25.     display: block;
  26.     padding: 16px 20px;
  27.     background: #3498db;
  28.     color: white;
  29. }
  30. .btn:before{
  31.     content: '';
  32.     position: absolute;
  33.     width: 14px;
  34.     height: 14px;
  35.     background: #3498db;
  36.     left: 20px;
  37.     bottom: -7px;
  38.     transform: rotate(45deg);
  39. }
  40. .btn i{
  41.     margin-right: 10px;
  42. }
  43. .smenu{
  44.     background: #34495e;
  45.     overflow: hidden;
  46.     transition: max-height 0.3s;
  47.     max-height: 0;
  48. }
  49. .smenu a{
  50.     display: block;
  51.     padding: 16px 26px;
  52.     color: white;
  53.     font-size: 4px 0;
  54.     position: relative;
  55. }
  56. .smenu a:before{
  57.     content: '';
  58.     position: absolute;
  59.     width: 6px;
  60.     height: 100%;
  61.     background: #3498db;
  62.     left: 0;
  63.     top: 0;
  64.     transition: 0.3s;
  65.     opacity: 0;
  66. }
  67. .smenu a:hover:before{
  68.     opacity: 1;
  69. }
  70. .item:target .smenu{
  71.     max-height: 10em;
  72. }
Advertisement
Add Comment
Please, Sign In to add comment