1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-12 08:05:18 +01:00
blog/_src/assets/less/navigation.less

211 lines
3.3 KiB
Plaintext
Raw Normal View History

/////////////////////////////////////
// NAVIGATION
/////////////////////////////////////
2013-12-01 00:47:47 +01:00
.nav-popover {
position: absolute;
top: 100%;
z-index: 5; // so it's always above page content
.border-bottom-radius;
2013-11-30 17:13:19 +01:00
background: #f1f4f7;
2013-12-01 00:47:47 +01:00
box-shadow: 0 2px 7px rgba(0,0,0,.05);
}
.menu-btn,
.search-btn {
line-height: 1em;
text-align: center;
vertical-align: middle;
display: inline-block;
margin: 0;
2013-12-01 16:00:12 +01:00
// icons
&:before { .transition; }
&:hover:before {
color: @link-color
}
2013-11-30 17:13:19 +01:00
}
2013-12-01 00:47:47 +01:00
.nav-main,
.site-search {
float: right;
}
2013-11-30 17:13:19 +01:00
//
// Main Navigation
2013-11-30 17:13:19 +01:00
//
.nav-main {
2013-12-01 16:00:12 +01:00
.menu-btn {
margin-right: -.5em;
padding: .5em .7em;
&:before { font-size: 26px; }
}
li { display: inline-block; }
2013-11-30 17:13:19 +01:00
.nav-popover {
2013-12-01 16:00:12 +01:00
top: 130%;
2013-11-30 17:13:19 +01:00
right: 0;
2013-12-01 16:00:12 +01:00
width: 100%;
.clearfix;
.nav-link {
width: 50%;
@media @breakpoint2 {
width: 33%
}
float: left;
text-align: center;
padding: 1em;
color: @text-color-light;
text-transform: uppercase;
font-size: .8em;
// the icon
&:before {
display: block;
width: 100%;
text-align: center;
font-size: 32px;
height: 32px;
color: lighten(@text-color-dimmed, 10%);
.transition;
}
&:hover,
&:hover:before {
color: @link-color
}
}
2013-11-30 17:13:19 +01:00
}
}
.nav-link {
display: block;
padding: .5em 1em;
&:hover {
background: rgba(255,255,255,.5);
}
}
2013-11-30 17:13:19 +01:00
//
// Site Search
//
2013-11-30 17:13:19 +01:00
.site-search {
2013-12-01 00:47:47 +01:00
margin-right: 4%;
2013-11-30 17:13:19 +01:00
2013-12-01 00:47:47 +01:00
.nav-popover {
2013-11-30 17:13:19 +01:00
left: 0;
2013-12-01 00:47:47 +01:00
width: 100%;
}
}
.search-btn {
2013-12-01 16:00:12 +01:00
padding: .65em .85em;
2013-12-01 00:47:47 +01:00
}
.search-close {
position: absolute;
right: 1em;
top: 1em;
}
.search-area {
position: absolute;
width: 100%;
left: 0;
top: -3px;
z-index: 3;
background: #f1f4f7;
// hidden by default
.translate(0, -60px);
.transition;
&.ready {
.translate(0, 0);
2013-11-30 17:13:19 +01:00
}
}
.search-field {
2013-12-01 00:47:47 +01:00
width: 97%;
2013-11-30 17:13:19 +01:00
border: none;
.box-shadow(none);
background: transparent;
2013-11-30 17:32:17 +01:00
.placeholder(rgba(46, 79, 92, .2));
2013-11-30 17:13:19 +01:00
&:hover,
&:focus {
background: rgba(255,255,255,.7) !important;
}
}
.search-results {
}
//
// Paginator
2013-11-30 17:13:19 +01:00
//
.paginator {
.clearfix;
2013-11-20 23:33:58 +01:00
p { position: relative; }
a { display: block; }
2013-11-20 23:33:58 +01:00
i {
position: absolute;
left: 0;
top: 0;
}
2013-11-20 23:33:58 +01:00
.next {
text-align: right;
float: right;
a { margin-right: 1.5em; }
i {
margin-left: .5em;
left: auto;
right: 0;
}
}
.previous {
float: left;
a { margin-left: 1.5em; }
i { margin-right: .5em; }
2013-11-20 23:33:58 +01:00
}
}
// Infinite Loader
/////////////////////////////////////
2013-11-23 21:53:52 +01:00
.infiniteLoader .next {
width: 100%;
float: none;
2013-11-24 19:15:34 +01:00
margin-left: 0;
a {
.btn;
.aligncenter;
padding-top: @line-height-computed/1.5;
padding-bottom: @line-height-computed/1.5;
}
}
2013-11-23 21:53:52 +01:00
.infiniteLoader .previous,
.infiniteLoader .pagenumber,
.infiniteLoader i {
.hide;
}