Оригинальные горизонтальные меню на CSS3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
.breadcrumb { list-style-type: none; } .v1 .breadcrumb-level::before, .v1 .breadcrumb-level::after { content: ''; position: absolute; left: 0; height: 50%; width: 100%; background: #ff661a; z-index: -1; } .v1 .breadcrumb-level::before { top: 0; -webkit-transform: skew(20deg); transform: skew(20deg); } .v1 .breadcrumb-level::after { bottom: 0; -webkit-transform: skew(-20deg); transform: skew(-20deg); } .v2 .breadcrumb-level::before { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 100%; background: #ff661a; -webkit-transform: skew(-20deg); transform: skew(-20deg); z-index: -1; } .breadcrumb-level { display: inline-block; position: relative; } .breadcrumb-level:last-child a { cursor: default; } .breadcrumb-level:last-child::before, .breadcrumb-level:last-child::after { background: #ff884d; } .breadcrumb-level:not(:last-child):hover::before, .breadcrumb-level:not(:last-child):hover::after { background: #e64c00; } .breadcrumb-level a { display: inline-block; position: relative; line-height: 2.5; padding: 0 20px; color: #fff; text-decoration: none; } /* General page styling */ html { background: #222; position: relative; height: 100%; width: 100%; font-family: sans-serif; } .breadcrumb.v1, .breadcrumb.v2 { position: absolute; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); top: 50%; } .breadcrumb.v1 { margin-bottom: 100px; } .breadcrumb.v2 { margin-top: 100px; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!-- v1 --> <ol class="breadcrumb v1"> <li class="breadcrumb-level"><a href="">Level 1</a></li> <li class="breadcrumb-level"><a href="">Level 2</a></li> <li class="breadcrumb-level"><a>Level 3</a></li> </ol> <!-- v2 --> <ol class="breadcrumb v2"> <li class="breadcrumb-level"><a href="">Level 1</a></li> <li class="breadcrumb-level"><a href="">Level 2</a></li> <li class="breadcrumb-level"><a>Level 3</a></li> </ol> |