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

157 lines
2.3 KiB
Plaintext

/////////////////////////////////////
// NAVIGATION
/////////////////////////////////////
//
// Topbar
//
.topbar {
.clearfix;
background: #f1f4f7;
padding: @line-height-computed/3 @line-height-computed;
}
//
// Main Navigation
//
.nav-main {
position: relative;
float: right;
width: 5%;
li { display: inline-block; }
.nav-popover {
right: 0;
top: 100%;
}
}
.nav-link {
display: block;
padding: .5em 1em;
&:hover {
background: rgba(255,255,255,.5);
}
}
.nav-popover {
position: absolute;
z-index: 5; // so it's always above page content
.border-bottom-radius;
background: rgba(255,255,255,.85);
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;
padding: .6em .7em .5em .7em;
margin: 0;
}
//
// Site Search
//
.site-search {
position: relative;
clear: both;
width: 80%;
float: left;
@media @breakpoint2 {
clear: none;
margin-right: 1%;
width: 60%;
}
// loupe icon
.search-btn {
position: absolute;
left: 0;
z-index: 2;
}
}
.search-field {
padding-left: 40px;
position: relative;
width: 90%;
border: none;
.box-shadow(none);
background: transparent;
.placeholder(rgba(46, 79, 92, .2));
&:hover,
&:focus {
background: rgba(255,255,255,.7) !important;
}
}
.search-results {
left: 0;
width: 100%;
}
//
// Pager
//
.pager {
.clearfix;
p { position: relative; }
a { display: block; }
i {
position: absolute;
left: 0;
top: 0;
}
.alignright { text-align: right; }
.alignleft i { margin-right: .5em; }
.alignright i {
margin-left: .5em;
left: auto;
right: 0;
}
.alignleft a { margin-left: 1.5em; }
.alignright a { margin-right: 1.5em; }
}
// Infinite Loader
/////////////////////////////////////
.infiniteLoader .next {
width: 100%;
float: none;
margin-left: 0;
}
.infiniteLoader .previous,
.infiniteLoader .pagenumber,
.infiniteLoader i {
.hide;
}
.infiniteLoader .next a {
.btn;
.aligncenter;
padding-top: @line-height-computed/1.5;
padding-bottom: @line-height-computed/1.5;
}