chore: header bar component

This commit is contained in:
Ramires Viana
2021-02-25 18:37:07 +00:00
parent 62fff5ca60
commit 95811e99bc
17 changed files with 415 additions and 448 deletions

View File

@@ -6,9 +6,25 @@ header {
position: fixed;
top: 0;
left: 0;
height: 4em;
width: 100%;
padding: 0;
display: flex;
padding: 0.5em 0.5em 0.5em 1em;
align-items: center;
}
header > * {
flex: 0 0 auto;
}
header title {
display: block;
flex: 1 1 auto;
padding: 0 1em;
overflow: hidden;
text-overflow: ellipsis;
font-size: 1.2em;
}
header .overlay {
@@ -30,17 +46,6 @@ header img {
height: 2.5em;
}
header>div:first-child>.action {
display: none;
}
header>div {
display: flex;
width: 100%;
padding: 0.5em 0.5em 0.5em 1em;
align-items: center;
}
header .action span {
display: none;
}
@@ -50,19 +55,8 @@ header>div div {
position: relative;
}
header>div:last-child div {
display: flex;
}
header>div:first-child {
height: 4em;
}
header>div:last-child {
justify-content: flex-end;
}
header .search-button {
header .search-button,
header .menu-button {
display: none;
}

View File

@@ -70,6 +70,7 @@
box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 3px, rgba(0, 0, 0, 0.12) 0px 1px 2px;
width: 95%;
max-width: 20em;
z-index: 1;
}
#file-selection .action {
border-radius: 50%;
@@ -81,6 +82,9 @@
color: #6f6f6f;
margin-right: auto;
}
#file-selection .action span {
display: none;
}
nav {
top: 0;
z-index: 99999;
@@ -95,7 +99,7 @@
left: 0;
}
header .search-button,
header>div:first-child>.action {
header .menu-button {
display: inherit;
}
header img {

View File

@@ -117,25 +117,8 @@
overflow: hidden;
}
#previewer .bar {
width: 100%;
display: flex;
padding: 0.5em;
height: 3.7em;
}
#previewer .bar > * {
flex: 0 0 auto;
}
#previewer .bar .title {
display: block;
flex: 1 1 auto;
padding: 0 1em;
line-height: 2.3em;
overflow: hidden;
text-overflow: ellipsis;
font-size: 1.2em;
#previewer header {
background: none;
color: #fff;
}
@@ -152,8 +135,9 @@
}
#previewer .preview {
margin-top: 4em;
text-align: center;
height: calc(100vh - 3.7em);
height: calc(100vh - 4em);
}
#previewer .preview pre {
@@ -218,6 +202,7 @@
#editor-container {
background-color: #fafafa;
position: fixed;
margin-top: 4em;
top: 0;
left: 0;
width: 100%;
@@ -225,32 +210,13 @@
overflow: hidden;
}
#editor-container .bar {
width: 100%;
text-align: right;
display: flex;
padding: 0.5em;
height: 3.7em;
background-color: #fff;
border-bottom: 1px solid rgba(0, 0, 0, 0.075);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
#editor-container .title {
margin-right: auto;
padding: 0 1em;
line-height: 2.7em;
overflow: hidden;
word-break: break-word;
}
#previewer .loading {
height: 100%;
width: 100%;
}
#editor-container #editor {
height: calc(100vh - 8.2em);
height: calc(100vh - 8.4em);
}
#editor-container #breadcrumbs {