docs-v2/assets/styles/layouts/_top-nav.scss

146 lines
3.0 KiB
SCSS
Raw Normal View History

.topnav {
display: flex;
padding: .75rem .75rem .65rem;
justify-content: space-between;
.influx-home {
font-family: 'icomoon';
font-size: 1.9rem;
color: $topnav-link;
text-decoration: none;
vertical-align: middle;
&:hover {
color: $topnav-link-hover;
}
.icon-influx-logotype {
margin-left: .15rem;
}
}
.divider {
height: 100%; border-left: 1px solid rgba($topnav-link, .5);
2019-05-07 02:29:04 +00:00
margin: 0 1rem 0 .65rem;
}
.docs-home {
display: inline-block;
vertical-align: text-top;
2018-12-21 23:59:12 +00:00
font-style: italic;
2019-05-07 02:29:04 +00:00
font-weight: $medium;
font-size: 1.1rem;
color: $topnav-link;
text-decoration: none;
&:hover {
color: $topnav-link-hover;
}
}
.version-selector {
2020-04-17 06:57:07 +00:00
display: inline-block;
position: absolute;
z-index: 100;
right: 5.5rem;
color: $g20-white;
height: 2rem;
@include gradient($version-selector-gradient);
font-weight: $medium;
border-radius: $radius;
overflow: hidden;
cursor: pointer;
transition: right .2s;
.selected {
2019-02-27 21:17:22 +00:00
padding: 0 1.75rem 0 .75rem;
line-height: 0;
}
&:after {
2019-02-27 21:17:22 +00:00
content: '\e917';
font-family: 'icomoon';
position: absolute;
2019-02-27 21:17:22 +00:00
top: .45rem;
right: .4rem;
transition: all .3s;
}
&.open {
height: auto;
&:after {
transform: rotate(180deg);
}
}
ul.version-list {
padding: 0;
margin: 0;
list-style: none;
}
a {
display: block;
text-decoration: none;
color: $g20-white;
padding: .5rem 1.5rem .5rem .75rem;
background: rgba($g20-white, 0);
&:hover {
background: rgba($g20-white, .2)
}
&:last-child {
border-radius: 0 0 $radius $radius;
position: relative;
}
&.legacy {
position: relative;
&:after {
content: "\e911";
font-family: "icomoon";
position: absolute;
opacity: .4;
margin-left: .25rem;
}
}
}
}
2020-04-17 06:57:07 +00:00
.theme-switcher, #search-btn, .url-trigger {
display: inline-block;
padding: 0;
font-size: 1.8rem;
line-height: 0;
color: rgba($topnav-link, .5);
background: none;
height: 30px;
width: 30px;
border: none;
transition: color .2s, opacity .2s;
appearance: none;
overflow: visible;
&:focus {
outline: none;
}
&:hover {
color: rgba($topnav-link, 1);
cursor: pointer;
}
&#theme-switch-dark { display: $theme-switch-dark; }
&#theme-switch-light { display: $theme-switch-light; }
}
2019-01-23 06:36:55 +00:00
2020-04-17 06:57:07 +00:00
.url-trigger {
font-size: 1.1rem;
vertical-align: top;
margin: .1rem 0 0 0;
}
2019-01-23 06:36:55 +00:00
#search-btn {
opacity: 0;
}
}
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
@include media(small) {
.icon-influx-logotype { display: none; }
}