new header menu: desktop + mobile;
This commit is contained in:
1 parent
a0255d9758
commit
f7b3cf0576
3 files changed
+84
-87
No files matched your search
+64
-72
@@ -1,84 +1,76 @@
|
|||||||
.menu {
|
header {
|
||||||
$text_color: #666;
|
nav {
|
||||||
|
overflow-x: scroll;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
width: 100%;
|
||||||
|
max-height: 15em;
|
||||||
|
|
||||||
position:relative;
|
background-color: black;
|
||||||
width: 100%;
|
font-size: 1.1em;
|
||||||
background-color: black;
|
color: #666;
|
||||||
color: $text_color;
|
|
||||||
font-size: 13pt;
|
|
||||||
|
|
||||||
ul {
|
& :link, & :visited {
|
||||||
margin: 0 0 0 10px;
|
|
||||||
|
|
||||||
li {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 5px 3px 13px 3px;
|
|
||||||
margin-right: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:link, :visited {
|
|
||||||
text-decoration: none;
|
|
||||||
border-bottom: 1px solid #333;
|
|
||||||
color: #ccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
color: white;
|
|
||||||
border-bottom: 1px solid #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vk {
|
|
||||||
float: right;
|
|
||||||
margin: 13px 15px 0 0;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.selected {
|
|
||||||
border-top: 4px solid white;
|
|
||||||
font-weight: bold;
|
|
||||||
|
|
||||||
a:link, a:visited{
|
|
||||||
color: white;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: none;
|
border-bottom: 1px solid #333;
|
||||||
|
color: #a2a2a2;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.blue{
|
|
||||||
border-top: 4px solid #3f9cea;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.green{
|
|
||||||
border-top: 4px solid #5cbe40;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.yellow{
|
|
||||||
border-top: 4px solid #ffee00;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.pink {
|
|
||||||
border-top: 4px solid #f655a0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.red {
|
|
||||||
border-top: 4px solid #f61b14;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-device-width: 500px){
|
|
||||||
.menu {
|
|
||||||
font-size: 10pt;
|
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
margin: 0 0 0 5px;
|
list-style: none;
|
||||||
padding: 0 0 0 0;
|
white-space: nowrap;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
display: inline-block;
|
display: inline-block; /* 6 */
|
||||||
padding: 3px 3px 10px 3px;
|
padding: 0.3em 0.2em 0.5em;
|
||||||
margin: 0 4px 5px 0;
|
margin: 0 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: white;
|
||||||
|
border-bottom: 1px solid #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected {
|
||||||
|
border-top: 4px solid white;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
a:link, a:visited {
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.blue {
|
||||||
|
border-top: 4px solid #3f9cea;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.green {
|
||||||
|
border-top: 4px solid #5cbe40;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.yellow {
|
||||||
|
border-top: 4px solid #ffee00;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.pink {
|
||||||
|
border-top: 4px solid #f655a0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.red {
|
||||||
|
border-top: 4px solid #f61b14;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 31.25em) {
|
||||||
|
header nav {
|
||||||
|
max-height: none;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
+10
-6
@@ -29,12 +29,16 @@
|
|||||||
<script src="/app.js"></script>
|
<script src="/app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<menu ng-controller="MenuController">
|
<header>
|
||||||
<li ng-repeat="item in menu" class="{{item.color}}" ng-class="{selected:isCurrent(item)}">
|
<nav role="navigation" ng-controller="MenuController">
|
||||||
<span ng-hide="isValid(item)">{{item.text}}</span>
|
<ul>
|
||||||
<a href="{{item.url}}" ng-show="isValid(item)">{{item.text}}</a>
|
<li ng-repeat="item in menu" class="{{item.color}}" ng-class="{selected:isCurrent(item)}">
|
||||||
</li>
|
<span ng-hide="isValid(item)">{{item.text}}</span>
|
||||||
</menu>
|
<a href="{{item.url}}" ng-show="isValid(item)">{{item.text}}</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
<div class="page {{pageClass}}" ng-view></div>
|
<div class="page {{pageClass}}" ng-view></div>
|
||||||
|
|
||||||
|
|||||||
+10
-9
@@ -46,15 +46,16 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="menu" ng-controller="MenuController">
|
<header>
|
||||||
<ul>
|
<nav role="navigation" ng-controller="MenuController">
|
||||||
<li ng-repeat="item in menu" class="{{item.color}}" ng-class="{selected:isCurrent(item)}">
|
<ul>
|
||||||
<span ng-hide="isValid(item)">{{item.text}}</span>
|
<li ng-repeat="item in menu" class="{{item.color}}" ng-class="{selected:isCurrent(item)}">
|
||||||
<a href="{{item.url}}" ng-show="isValid(item)">{{item.text}}</a>
|
<span ng-hide="isValid(item)">{{item.text}}</span>
|
||||||
</li>
|
<a href="{{item.url}}" ng-show="isValid(item)">{{item.text}}</a>
|
||||||
<!--<a href="{{vkgroup}}" class="vk"><img src="/graphics/icon.vk.png"></a>-->
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
<div class="page {{pageClass}}" ng-view></div>
|
<div class="page {{pageClass}}" ng-view></div>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user