0
1
Fork 0
hedera-web-mindshore/js/hedera/gui.scss

358 lines
5.6 KiB
SCSS
Raw Normal View History

2022-05-26 06:08:31 +00:00
@import "../htk/style/classes";
2022-05-26 08:00:19 +00:00
$side-panel-width: 250px;
$navbar-height: 64px;
2022-05-21 21:31:56 +00:00
.vn-gui {
height: inherit;
/* Font */
.user-name,
.menu-title {
font-size: 1.1em;
}
/* Navigation bar */
.navbar {
position: fixed;
background-color: #1A1A1A;
2022-05-26 08:00:19 +00:00
left: $side-panel-width;
2022-05-21 21:31:56 +00:00
top: 0;
right: 0;
z-index: 1;
overflow: hidden;
2022-05-26 08:00:19 +00:00
height: $navbar-height;
2022-05-21 21:31:56 +00:00
color: white;
2022-05-26 06:08:31 +00:00
display: flex;
align-items: center;
2022-05-21 21:31:56 +00:00
transition-property: left, background-color, transform;
transition-duration: 200ms;
transition-timing-function: ease-in-out;
2022-05-26 06:08:31 +00:00
& > .menu-button {
flex: none;
display: none;
border: none;
2022-05-24 10:18:44 +00:00
2022-05-26 06:08:31 +00:00
&:hover {
background-color: rgba(255, 255, 255, .1);
}
& > .htk-icon {
display: block;
}
}
& > .title-wraper {
flex: auto;
2022-05-24 10:18:44 +00:00
display: flex;
align-items: center;
2022-05-26 06:08:31 +00:00
gap: 15px;
overflow: hidden;
2022-05-26 08:00:19 +00:00
padding-left: 15px;
2022-05-24 10:18:44 +00:00
2022-05-26 06:08:31 +00:00
& > .title {
overflow: hidden;
h1 {
font-weight: normal;
font-size: 1.4em;
margin: 0;
2022-05-26 08:00:19 +00:00
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
2022-05-26 06:08:31 +00:00
}
2022-05-24 10:18:44 +00:00
}
}
2022-05-26 06:08:31 +00:00
& > .action-bar {
flex: none;
height: 100%;
2022-05-24 10:18:44 +00:00
2022-05-26 06:08:31 +00:00
& > div {
height: 100%;
display: flex;
align-items: center;
2022-05-28 00:37:24 +00:00
padding-right: $spacing-md;
padding-left: $spacing-sm;
2022-05-26 06:08:31 +00:00
gap: .5em;
& > * {
float: right;
}
}
button {
margin: 0;
padding: 10px 15px;
&:hover {
background-color: rgba(2550, 255, 255, .2);
}
2022-05-24 10:18:44 +00:00
}
}
2022-05-21 21:31:56 +00:00
}
/* Background */
& > .background {
z-index: 10;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
visibility: hidden;
background-color: rgba(1, 1, 1, .7);
opacity: 0;
2022-05-25 18:04:16 +00:00
&.show {
visibility: visible;
transition: opacity 200ms ease-out;
opacity: 1;
}
2022-05-21 21:31:56 +00:00
}
/* Left panel */
.left-panel {
z-index: 20;
position: fixed;
left: 0;
bottom: 0;
top: 0;
background-color: white;
z-index: 20;
2022-05-26 08:00:19 +00:00
width: $side-panel-width;
2022-05-21 21:31:56 +00:00
}
.menu-overflow {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 4em;
overflow: auto;
}
.menu-header {
background-color: #1A1A1A;
color: white;
2022-05-26 08:00:19 +00:00
height: $navbar-height;
2022-05-21 21:31:56 +00:00
display: flex;
}
.logo {
display: block;
width: 160px;
margin-left: 37px;
}
2022-05-26 06:08:31 +00:00
.user-info {
2022-05-21 21:31:56 +00:00
margin: 25px;
2022-05-26 06:08:31 +00:00
& > div {
display: flex;
justify-content: space-between;
align-items: center;
2022-05-21 21:31:56 +00:00
overflow: hidden;
2022-05-26 06:08:31 +00:00
font-weight: bold;
border: 1px solid #eaeaea;
2022-05-21 21:31:56 +00:00
2022-05-26 06:08:31 +00:00
& > span {
padding: 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2022-05-21 21:31:56 +00:00
}
2022-05-26 06:08:31 +00:00
.logout {
2022-05-25 18:04:16 +00:00
display: block;
2022-05-26 06:08:31 +00:00
margin: 0;
text-align: left;
border-radius: 0;
&:hover {
background-color: #1a1a1a;
color: white;
}
& > .htk-icon {
display: block;
}
2022-05-25 18:04:16 +00:00
}
2022-05-26 06:08:31 +00:00
&.supplant {
display: none;
border-top: none;
2022-05-25 18:04:16 +00:00
2022-05-26 06:08:31 +00:00
&.show {
display: flex;
}
2022-05-25 18:04:16 +00:00
}
2022-05-21 21:31:56 +00:00
}
}
/* Test link */
.test-link {
display: none;
margin: .5em;
background-color: #3f51b5;
color: white;
padding: 0 1em;
line-height: 2em;
border-radius: .1em;
text-align: center;
2022-05-25 18:04:16 +00:00
&:hover {
background-color: #4f61c5;
}
2022-05-21 21:31:56 +00:00
}
.dev-info {
display: none;
padding: .3em .5em;
color: white;
background-color: #3f51b5;
font-size: .9em;
margin: .5em;
border-radius: .1em;
2022-05-25 18:04:16 +00:00
& > p {
margin: .2em 0;
}
& > .mode {
color: #BBF;
}
2022-05-21 21:31:56 +00:00
}
/* Menu */
.main-menu,
ul.submenu {
list-style-type: none;
padding: 0;
margin: 0;
}
.main-menu > li {
display: block;
padding: 0;
margin: 0;
width: 100%;
}
.main-menu a {
width: 70%;
padding: 0 15%;
display: block;
line-height: 2.8em;
}
.main-menu a:hover,
.main-menu a.selected {
background-color: rgba(1, 1, 1, .1);
}
ul.submenu {
display: none;
}
ul.submenu.popup {
display: inline;
position: fixed;
border: none;
border-radius: 1px;
background-color: white;
box-shadow: 0 0 .3em rgba(1, 1, 1, .3);
z-index: 50;
width: 13em;
max-height: 30em;
}
/* Social */
.menu-footer {
position: absolute;
bottom: 0;
right: 0;
left: 0;
}
/* Body */
& > .body {
2022-05-26 08:00:19 +00:00
margin-left: $side-panel-width;
padding-top: $navbar-height;
2022-05-21 21:31:56 +00:00
height: inherit;
box-sizing: border-box;
height: inherit;
transition-property: margin-left, margin-right;
transition-duration: 200ms;
}
.form-holder {
position: relative;
height: inherit;
opacity: 0;
transform: translateZ(0) translateX(-2em);
-webkit-transform: translateZ(0) translateX(-2em);
transition-property: opacity, transform;
transition-duration: 200ms;
transition-timing-function: ease-out;
2022-05-26 06:08:31 +00:00
&.show {
opacity: 1;
transform: translateZ(0) translateX(0em);
-webkit-transform: translateZ(0) translateX(0em);
}
& > * {
padding: $spacing-md;
}
2022-05-21 21:31:56 +00:00
}
/* Mobile */
@media (max-width: 960px) {
& > .navbar {
2022-05-26 06:08:31 +00:00
padding-left: 16px;
2022-05-21 21:31:56 +00:00
left: 0;
2022-05-26 06:08:31 +00:00
& > .menu-button {
display: block;
}
& > .action-bar {
button {
padding: 10px;
}
span.label,
button > .text {
display: none;
}
}
2022-05-21 21:31:56 +00:00
}
& > .body {
margin-left: 0;
}
.left-panel {
top: 0;
left: -250px;
box-shadow: 0 0 .2em rgba(1, 1, 1, .3);
transition: transform 200ms ease-out;
-webkit-transition: transform 200ms ease-out;
}
.left-panel.show {
transform: translateZ(0) translateX(250px);
-webkit-transform: translateZ(0) translateX(250px);
}
.form-holder {
left: 0;
}
ul.submenu {
display: block;
background-color: #888;
color: white;
box-shadow: inset 0 0 .2em rgba(1, 1, 1, .2);
overflow: hidden;
max-height: 0;
transition: max-height 300ms ease-out;
webkit-transition: max-height 300ms ease-out;
}
.main-menu li:hover > ul.submenu {
max-height: 20em;
}
}
}