cncjs
64 строки · 1.2 Кб
1.navbar {2position: relative;3}
4
5.icon {6display: inline-block;7vertical-align: middle;8width: 32px;9height: 32px;10
11&.icon-xyz {12background: url("./images/xyz.svg") no-repeat 0 0;13}14&.icon-gear {15background: url("./images/gear.svg") no-repeat 0 0;16}17}
18
19.nav {20padding-left: 0;21margin-bottom: 0;22list-style: none;23
24> li {25position: relative;26display: block;27
28> a {29position: relative;30display: block;31background-color: #222;32border-bottom: 1px solid #333;33color: #9d9d9d;34text-decoration: none;35white-space: nowrap;36padding: 10px 0;37
38> .icon.icon-invert {39filter: invert(60%);40}41}42> a:focus,43> a:hover {44color: #fff;45background-color: #222;46
47> .icon.icon-invert {48filter: invert(100%);49}50}51}52> li.active {53> a,54> a:focus,55> a:hover {56color: #fff;57background-color: #080808;58
59> .icon.icon-invert {60filter: invert(100%);61}62}63}64}
65