Advertisement
Hadi1989

Untitled

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