blob: ccd13bda4a730bce4b39e5955167881831680aa2 [file] [log] [blame]
@charset "utf-8";
@use 'sass:math';
@import "../util";
@import "hint"; // Hint specific menu list
@import "containermenu"; // Container menu specific
@import "searchbar"; // The search bar
@import "vc"; // Virtual corpus builder
@import "statistics"; // Statistics for VCs
@import "datepicker"; // Datepicker
@import "querylanguage"; // Query language
@import "pipe"; // Pipe
@import "state"; // State
@import "panel"; // Panel
.navbar {
width: 100%;
height: $standard-size-and-spacing;
background-color: $dark-green;
display: flex;
flex-direction: column;
justify-content: center;
align-items: end;
// overflow: hidden;
// position: fixed;
position: absolute;
top: 0;
z-index: 999;
transition: top .3s ease-in-out;
-o-transition: top .3s ease-in-out;
-moz-transition: top .3s ease-in-out;
-webkit-transition: top .3s ease-in-out;
&-group {
display: flex;
align-items: center;
h3.nav-link {
height: $standard-size-and-spacing;
font-size: 1rem;
transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
&:hover {
background-color: $middle-green;
}
a {
display: block;
padding: 1.5rem 1rem;
color: $nearly-white;
}
}
// fieldset.fieldset-login {
// display: flex;
// flex-direction: column;
// margin-right: 4rem;
// padding: 0;
// min-inline-size: unset;
// border: unset;
// form.login {
// display: flex;
// align-items: center;
// input[type=text],
// input[type=password] {
// @include input-field;
// margin-right: 8px;
// height: 1.5rem;
// }
// button.btn-login {
// // width: 3rem;
// // height: 3rem;
// // background-color: $dark-green;
// background-color: unset;
// color: $nearly-white;
// // padding: .75rem 1rem;
// font-size: 180%;
// border: none;
// border-color: unset;
// border-radius: 0;
// text-shadow: none;
// font-weight: normal;
// top: unset;
// transition: all .2s ease-in-out;
// -o-transition: all .2s ease-in-out;
// -moz-transition: all .2s ease-in-out;
// -webkit-transition: all .2s ease-in-out;
// &::after {
// content: $fa-login;
// }
// &:hover {
// // background-color: $middle-green;
// color: $dark-orange;
// }
// }
// }
// p {
// margin: 0;
// font-size: .7rem;
// color: $nearly-white;
// a {
// color: $dark-orange;
// &:hover {
// color: $middle-orange;
// }
// }
// }
// }
}
.dropdown {
display: flex;
align-items: center;
margin-right: $standard-size-and-spacing;
position: relative;
&:hover .dropdown-content,
&:focus-within .dropdown-content {
display: block;
}
&:hover .dropdown-btn,
&:focus-within .dropdown-btn {
color: $nearly-white;
background-color: $middle-green;
}
&-btn {
height: $standard-size-and-spacing;
padding: 1.25rem 1rem;
color: $nearly-white;
transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
cursor: pointer;
&.login::before {
@include icon-font;
content: $fa-login;
font-size: 150%;
}
&.profile::before {
@include icon-font;
content: $fa-user;
font-size: 150%;
}
h3.user-name {
padding-right: 2px;
// font-size: 85%;
font-size: 120%;
display: inline;
}
}
&-content {
display: none;
width: fit-content;
margin-top: $standard-size-and-spacing;
padding: 0;
background-color: $middle-green;
position: absolute;
top: 0;
z-index: 999;
&--left {
left: 0;
}
&--right {
right: 0;
padding: 1rem;
}
form.login {
display: flex;
flex-direction: column;
align-items: center;
legend {
padding-bottom: $base-padding;
color: $nearly-white;
}
input[type=text],
input[type=password] {
@include input-field;
margin-bottom: 8px;
height: 2rem;
}
button.btn-login {
width: 100%;
height: 2rem;
margin-bottom: 1rem;
background-color: $dark-green;
color: $nearly-white;
font-size: 120%;
border: none;
border-color: unset;
border-radius: 0;
text-shadow: none;
font-weight: normal;
top: unset;
transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
&::after {
content: $fa-login;
}
&:hover {
// color: $dark-orange;
background-color: $dark-orange;
}
}
}
p {
margin: 0;
font-size: .7rem;
color: $nearly-white;
a {
color: $dark-orange;
&:hover {
color: $middle-orange;
}
}
}
}
&-item {
display: block;
padding: .75rem;
font-size: 1rem;
color: $nearly-white;
transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
&:hover {
color: $nearly-white;
background-color: $light-green;
}
&.logout::before {
@include icon-font;
content: $fa-logout;
font-size: 1rem;
}
span {
display: inline;
}
}
}
.burger-icon {
display: none;
&::after {
@include icon-font;
content: $fa-bars;
}
}
}
header {
@include box-sizing-box();
position: relative;
background-color: $light-green;
// padding: $base-padding 0 0 $base-padding;
padding-top: $standard-size-and-spacing;
font-size: 10pt;
color: $nearly-white;
&.shifted {
padding-left: $logo-left-distance;
}
span.select {
display: inline-block;
cursor: pointer;
line-height: 1.8em;
> span {
font-weight: bold;
}
border: {
width: 0;
bottom-width: 3px;
style: solid;
color: transparent;
}
&:hover {
color: $dark-green;
border-color: $dark-green;
}
&::after {
@include icon-font;
pointer-events: none;
text-align: center;
content: $fa-down;
padding: {
left: 4pt;
right: 4pt;
}
}
&.active {
border-color: $dark-orange;
&::after {
content: $fa-up;
}
}
}
form {
position: relative;
display: block;
// padding-left: $logo-left-distance;
min-height: 2.7em;
&#searchform {
margin: 0 $standard-size-and-spacing;
}
}
input {
@include input-field;
}
.button {
color: $nearly-white;
line-height: 2em;
margin-right: $right-distance;
&.right {
float: right;
display: inline-block;
>.tutorial{
margin-left: 10px;
}
}
&.top {
position: absolute;
display: block;
top: 0;
right: 0;
margin-right: 0;
width: 20px;
// width: math.div($standard-margin,2);
background-color: $dark-green;
text-align: center;
height: 100%;
z-index: 20;
> a:hover {
color: $nearly-white
}
}
> a {
color: $nearly-white;
cursor: pointer;
position: relative;
font-size: 120%;
> span {
@include blind;
}
}
> a::after {
@include icon-font;
}
> a.tutorial::after {
content: $fa-tutorial;
}
> a.question::after {
content: $fa-question;
}
> a.login::after {
content: $fa-login;
}
> a.logout::after {
content: $fa-logout;
}
}
}
.query.button-group > span {
border-top-width: 0;
border-color: white;
&:first-child {
border-top-left-radius: 0;
}
&:last-child {
border-top-right-radius: 0;
}
}