Guest User

Untitled

a guest
Dec 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. /* Nav */
  2. nav {
  3. width: 960px;
  4. height: 100px;
  5. margin: 120px auto;
  6. text-align: center;
  7. }
  8. .top-menu li {
  9. display: inline-block;
  10. text-align: center;
  11. margin: 30px 5px;
  12. position: relative;
  13. -webkit-transition: all 0.3s ease;
  14. -moz-transition: all 0.3s ease;
  15. -o-transition: all 0.3s ease;
  16. }
  17. .top-menu li:hover {
  18. margin: 30px 20px;
  19. }
  20. .top-menu li:active {
  21. margin: 30px 33px;
  22. }
  23. .top-menu li a {
  24. width: 100px;
  25. height: 100px;
  26. z-index: 9999;
  27. position: absolute;
  28. top: 35px;
  29. font-weight: bold;
  30. display: block;
  31. text-decoration: none;
  32. font-size: 20px;
  33. color: #fff;
  34. text-shadow: 0px 1px 1px rgba(0,0,0,0.4), 0px 4px 6px rgba(0,0,0,0.1), 0px 9px 11px rgba(0,0,0,0.1);
  35. -webkit-transition: all 0.1s linear;
  36. -moz-transition: all 0.1s linear;
  37. -o-transition: all 0.1s linear;
  38. }
  39. .top-menu li:active a {
  40. font-size: 26px;
  41. top: 30px;
  42. text-shadow: none;
  43. }
  44. .top-menu li div.menu-item {
  45. width: 100px;
  46. height: 100px;
  47. display: block;
  48. -webkit-transition: all 0.2s ease;
  49. -moz-transition: all 0.2s ease;
  50. -o-transition: all 0.2s ease;
  51. -webkit-border-top-left-radius: 100px;
  52. -webkit-border-bottom-right-radius: 100px;
  53. -moz-border-radius-topleft: 100px;
  54. -moz-border-radius-bottomright: 100px;
  55. border-top-left-radius: 100px;
  56. border-bottom-right-radius: 100px;
  57. -webkit-transform: rotate(45deg);
  58. -moz-transform: rotate(45deg);
  59. -o-transform: rotate(45deg);
  60. }
  61. .top-menu li:hover div.menu-item{
  62. -webkit-border-top-left-radius: 80px;
  63. -webkit-border-bottom-right-radius: 80px;
  64. -moz-border-radius-topleft: 80px;
  65. -moz-border-radius-bottomright: 80px;
  66. border-top-left-radius: 80px;
  67. border-bottom-right-radius: 80px;
  68. -webkit-transform: rotate(225deg);
  69. -moz-transform: rotate(225deg);
  70. -o-transform: rotate(225deg);
  71. }
  72. .top-menu li:active div.menu-item{
  73. -webkit-border-top-left-radius: 50px;
  74. -webkit-border-bottom-right-radius: 50px;
  75. -moz-border-radius-topleft: 50px;
  76. -moz-border-radius-bottomright: 50px;
  77. border-top-left-radius: 50px;
  78. border-bottom-right-radius: 50px;
  79.  
  80. }
  81. #home { background: #41D05F; }
  82. #cataloge { background: #E42B2B; }
  83. #price { background: #ff8400; }
  84. #about { background: #a800ff; }
  85. #contact { background: #49a7f3; }
Add Comment
Please, Sign In to add comment