استایل زیبا برای منوی خطی - Line Menu ( نمونه 17)

خرید بک لینک

*,

*:after,

*:before {

-webkit-box-sizing: border-box;

box-sizing: border-box;

}

body {

font-family: 'Avenir Next', Avenir, 'Helvetica Neue', 'Lato', 'Segoe UI', Helvetica, Arial, sans-serif;

color: #444;

background: #fff;

-webkit-font-smoothing: antialiased;

-moz-osx-font-smoothing: grayscale;

}

a {

text-decoration: none;

color: #4e3c3e;

outline: none;

}

a:hover,

a:focus {

color: #f48b95;

}

#container {

width: 700px;

margin: 100px auto;

}

/* Common styles for all menus */

.menu {

line-height: 1;

margin: 0 auto 3em;

}

.menu__list {

position: relative;

display: -webkit-flex;

display: flex;

-webkit-flex-wrap: wrap;

flex-wrap: wrap;

margin: 0;

padding: 0;

list-style: none;

}

.menu__item {

display: block;

margin: 1em 0;

}

.menu__link {

font-size: 1.05em;

font-weight: bold;

display: block;

padding: 1em;

cursor: pointer;

-webkit-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

user-select: none;

-webkit-touch-callout: none;

-khtml-user-select: none;

-webkit-tap-highlight-color: rgba(0, 0, 0, 0);

}

.menu__link:hover,

.menu__link:focus {

outline: none;

}

/* Individual styles */

/* Maria */

.menu--maria .menu__item {

position: relative;

display: -webkit-flex;

display: flex;

-webkit-flex-direction: column;

flex-direction: column;

-webkit-justify-content: center;

justify-content: center;

-webkit-align-items: center;

align-items: center;

width: 60px;

height: 60px;

margin: 0 1.25em;

text-align: center;

}

.menu--maria .menu__item::before {

content: '';

position: absolute;

top: 100%;

left: 0;

width: 140%;

height: 4px;

background: #d94f5c;

-webkit-transform: rotate3d(0, 0, 1, -45deg) scale3d(0, 1, 1);

transform: rotate3d(0, 0, 1, -45deg) scale3d(0, 1, 1);

-webkit-transform-origin: 0 50%;

transform-origin: 0 50%;

-webkit-transition: -webkit-transform 0.4s;

transition: transform 0.4s;

}

.menu--maria .menu__item.menu__item--current::before {

-webkit-transform: rotate3d(0, 0, 1, -45deg) scale3d(1, 1, 1);

transform: rotate3d(0, 0, 1, -45deg) scale3d(1, 1, 1);

}

.menu--maria .menu__link {

position: relative;

color: #929292;

-webkit-transition: color 0.4s;

transition: color 0.4s;

}

.menu--maria .menu__link:hover,

.menu--maria .menu__link:focus {

color: #d94f5c;

}

.menu--maria .menu__item.menu__item--current .menu__link {

color: #333;

}

سون لرن • آموزش...

ما را در سایت سون لرن • آموزش دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 233 تاريخ: چهارشنبه 4 فروردين 1395 ساعت: 23:22

صفحه بندی

خبرنامه