Components system

This commit is contained in:
Mo Bitar
2017-06-15 11:44:20 -05:00
parent b759b2b770
commit de21d110d9
19 changed files with 1071 additions and 39 deletions

View File

@@ -25,14 +25,19 @@ $heading-height: 75px;
#editor-title-bar {
width: 100%;
padding: 20px;
padding-bottom: 10px;
background-color: white;
border-bottom: none;
z-index: 100;
height: $heading-height;
min-height: $heading-height;
height: auto;
// height: $heading-height;
// min-height: $heading-height;
padding-right: 10px;
overflow: visible;
&.fullscreen {
position: relative;
}
@@ -76,7 +81,19 @@ $heading-height: 75px;
.editor-tags {
clear: left;
width: 100%;
height: 25px;
// height: 25px;
overflow: visible;
position: relative;
#note-tags-component-container {
height: 50px;
#note-tags-iframe {
height: 50px;
width: 100%;
position: absolute;
}
}
.tags-input {
background-color: transparent;
@@ -125,3 +142,46 @@ $heading-height: 75px;
}
}
}
#editor-pane-component-stack {
width: 100%;
.component {
height: 50px;
width: 100%;
position: relative;
&:not(:last-child) {
border-bottom: 1px solid $bg-color;
}
&:first-child {
border-top: 1px solid $bg-color;
}
.exit-button {
width: 15px;
height: 100%;
position: absolute;
right: 0;
background-color: transparent;
cursor: pointer;
display: flex;
align-items: center;
color: rgba(black, 0.7);
text-align: center;
padding-left: 2px;
.content {
}
&:hover {
background-color: rgba(gray, 0.3);
}
}
iframe {
width: 100%;
}
}
}

View File

@@ -0,0 +1,89 @@
.permissions-modal {
position: fixed;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 10000;
width: 100vw;
height: 100vh;
background-color: rgba(gray, 0.3);
color: black;
font-size: 16px;
display: flex;
align-items: center;
.background {
position: absolute;
z-index: -1;
width: 100%;
height: 100%;
}
.content {
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-color: white;
width: 700px;
// height: 500px;
margin: auto;
padding: 10px 30px;
padding-bottom: 30px;
// position: absolute;
// top: 0; left: 0; bottom: 0; right: 0;
overflow-y: scroll;
p {
margin-bottom: 8px;
margin-top: 0;
}
h3 {
margin-bottom: 0;
}
h4 {
margin-bottom: 6px;
}
}
.learn-more {
margin-top: 20px;
line-height: 1.3;
}
.status {
color: orange;
&.trusted {
color: $blue-color;
}
}
.buttons {
margin-top: 35px;
}
button.standard {
border-radius: 1px;
font-weight: bold;
padding: 6px 20px;
display: inline-block;
&:hover {
text-decoration: underline;
}
&.blue {
background-color: $blue-color;
color: white;
}
&.white {
color: black;
background-color: white;
border: 1px solid gray;
}
}
}

View File

@@ -2,6 +2,7 @@
flex: 1 10%;
max-width: 180px;
min-width: 100px;
width: 180px;
$tags-title-bar-height: 55px;

View File

@@ -9,3 +9,4 @@ $dark-gray: #2e2e2e;
@import "app/editor";
@import "app/extensions";
@import "app/menus";
@import "app/permissions-modal";