aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaView.scss
diff options
context:
space:
mode:
authorMohammad Amoush <mohammad_amoush@brown.edu>2019-07-29 19:45:25 -0400
committerMohammad Amoush <mohammad_amoush@brown.edu>2019-07-29 19:45:25 -0400
commit41583609724911182f2c16b06e61bee6a779bb34 (patch)
treeff32273d40d832edd24385b4ea7a7b95ef311f21 /src/client/views/collections/CollectionSchemaView.scss
parent215b73fbcfe0d6f205668e1bb7c755228e858ac9 (diff)
parentd7af2cae3ec66ca9a8c9abbc0a221ee1dbb6d101 (diff)
Merge master, quick opacity changes
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.scss')
-rw-r--r--src/client/views/collections/CollectionSchemaView.scss622
1 files changed, 376 insertions, 246 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.scss b/src/client/views/collections/CollectionSchemaView.scss
index 186e006f3..b1e98b162 100644
--- a/src/client/views/collections/CollectionSchemaView.scss
+++ b/src/client/views/collections/CollectionSchemaView.scss
@@ -1,7 +1,5 @@
@import "../globalCssVariables";
-
-
.collectionSchemaView-container {
border-width: $COLLECTION_BORDER_WIDTH;
border-color: $intermediate-color;
@@ -9,18 +7,23 @@
border-radius: $border-radius;
box-sizing: border-box;
position: absolute;
+ top: 0;
width: 100%;
+ transition: height .5s;
height: 100%;
+ // overflow: hidden;
+ // overflow-x: scroll;
+ // border: none;
overflow: hidden;
- .collectionSchemaView-cellContents {
- height: $MAX_ROW_HEIGHT;
+ // .collectionSchemaView-cellContents {
+ // height: $MAX_ROW_HEIGHT;
- img {
- width: auto;
- max-height: $MAX_ROW_HEIGHT;
- }
- }
+ // img {
+ // width: auto;
+ // max-height: $MAX_ROW_HEIGHT;
+ // }
+ // }
.collectionSchemaView-previewRegion {
position: relative;
@@ -47,329 +50,456 @@
}
}
- .collectionSchemaView-previewHandle {
- position: absolute;
- height: 15px;
- width: 15px;
- z-index: 20;
- right: 0;
- top: 20px;
- background: Black;
- }
-
.collectionSchemaView-dividerDragger {
position: relative;
- background: black;
float: left;
- height: 37px;
+ height: 100%;
width: 20px;
z-index: 20;
right: 0;
top: 0;
- background: $main-accent;
- }
-
- .collectionSchemaView-columnsHandle {
- position: absolute;
- height: 37px;
- width: 20px;
- z-index: 20;
- left: 0;
- bottom: 0;
- background: $main-accent;
+ background: gray;
+ cursor: col-resize;
+ // background: $main-accent;
+ // box-sizing: border-box;
+ // border-left: 1px solid $intermediate-color;
+ // border-right: 1px solid $intermediate-color;
}
+}
- .collectionSchemaView-colDividerDragger {
- position: relative;
- box-sizing: border-box;
- border-top: 1px solid $intermediate-color;
- border-bottom: 1px solid $intermediate-color;
- float: top;
- width: 100%;
- }
+.ReactTable {
+ width: 100%;
+ height: 100%;
+ background: white;
+ box-sizing: border-box;
+ border: none !important;
- .collectionSchemaView-dividerDragger {
- position: relative;
- box-sizing: border-box;
- border-left: 1px solid $intermediate-color;
- border-right: 1px solid $intermediate-color;
- float: left;
+ .rt-table {
+ overflow-y: auto;
+ overflow-x: auto;
height: 100%;
+ display: -webkit-inline-box;
+ direction: ltr;
}
- .collectionSchemaView-tableContainer {
- position: relative;
- float: left;
- height: 100%;
- }
+ .rt-thead {
+ width: calc(100% - 50px);
+ margin-left: 50px;
+
+ &.-header {
+ // background: $intermediate-color;
+ // color: $light-color;
+ font-size: 12px;
+ height: 30px;
+ // border: 1px solid $intermediate-color;
+ box-shadow: none;
+ // width: calc(100% - 30px);
+ // margin-right: -30px;
+ }
- .ReactTable {
- // position: absolute; // display: inline-block;
- // overflow: auto;
- width: 100%;
- height: 100%;
- background: $light-color;
- box-sizing: border-box;
- border: none !important;
+ .rt-resizable-header {
+ padding: 0;
+ height: 30px;
- .rt-table {
- overflow-y: auto;
- overflow-x: auto;
- height: 100%;
- display: -webkit-inline-box;
- direction: ltr; // direction:rtl;
- // display:block;
+ &:last-child {
+ overflow: visible;
+ }
}
- .rt-tbody {
- //direction: ltr;
- direction: rtl;
+ .rt-resizable-header-content {
+ height: 100%;
+ overflow: visible;
}
- .rt-tr-group {
- direction: ltr;
- max-height: $MAX_ROW_HEIGHT;
+ .rt-th {
+ padding: 0;
+ border: solid lightgray;
+ border-width: 0 1px;
}
+ }
- .rt-td {
- border-width: 1px;
- border-right-color: $intermediate-color;
+ .rt-th {
+ // max-height: $MAX_ROW_HEIGHT;
+ font-size: 13px;
+ text-align: center;
+ background-color: $light-color-secondary;
- .imageBox-cont {
- position: relative;
- max-height: 100%;
- }
+ &:last-child {
+ overflow: visible;
+ }
+ }
- .imageBox-cont img {
- object-fit: contain;
- max-width: 100%;
- height: 100%;
- }
+ .rt-tbody {
+ direction: rtl;
+ overflow: visible;
+ }
- .videoBox-cont {
- object-fit: contain;
- width: auto;
- height: 100%;
- }
- }
+ .rt-tr-group {
+ direction: ltr;
+ flex: 0 1 auto;
+ min-height: 30px;
+ border: 0 !important;
+ // border: solid lightgray;
+ // border-width: 1px 0;
+ // border-left: 1px solid lightgray;
+ // max-height: $MAX_ROW_HEIGHT;
+ // for sub comp
+
+ // &:nth-child(even) {
+ // background-color: $light-color;
+ // }
+
+ // &:nth-child(odd) {
+ // background-color: $light-color-secondary;
+ // }
+
+ // &:first-child {
+ // border-top: 1px solid $light-color-secondary !important;
+ // }
+ // &:last-child {
+ // border-bottom: 1px solid $light-color-secondary !important;
+ // }
}
- .ReactTable .rt-thead.-header {
- background: $intermediate-color;
- color: $light-color;
- // text-transform: uppercase;
- letter-spacing: 2px;
- font-size: 12px;
- height: 30px;
- padding-top: 4px;
+ .rt-tr {
+ width: 100%;
+ min-height: 30px;
+ // height: $MAX_ROW_HEIGHT;
}
- .ReactTable .rt-th,
- .ReactTable .rt-td {
- max-height: $MAX_ROW_HEIGHT;
- padding: 3px 7px;
+ .rt-td {
+ // border: 1px solid $light-color-secondary !important;
+ // border-width: 0 1px;
+ // border-width: 1px;
+ // border-right-color: $intermediate-color;
+ // max-height: $MAX_ROW_HEIGHT;
+ padding: 0;
font-size: 13px;
text-align: center;
- }
- .ReactTable .rt-tbody .rt-tr-group:last-child {
- border-bottom: $intermediate-color;
- border-bottom-style: solid;
- border-bottom-width: 1;
- }
+ // white-space: normal;
- .documentView-node-topmost {
- text-align: left;
- transform-origin: center top;
- display: inline-block;
+ .imageBox-cont {
+ position: relative;
+ max-height: 100%;
+ }
+
+ .imageBox-cont img {
+ object-fit: contain;
+ max-width: 100%;
+ height: 100%;
+ }
+
+ .videoBox-cont {
+ object-fit: contain;
+ width: auto;
+ height: 100%;
+ }
}
- .documentView-node:first-child {
- background: $light-color;
+ .rt-resizer {
+ width: 20px;
+ right: -10px;
}
}
-//options menu styling
-#schemaOptionsMenuBtn {
- position: absolute;
- height: 20px;
- width: 20px;
- border-radius: 50%;
- z-index: 21;
- right: 4px;
- top: 4px;
- pointer-events: auto;
- background-color: black;
+.documentView-node-topmost {
+ text-align: left;
+ transform-origin: center top;
display: inline-block;
- padding: 0px;
- font-size: 100%;
}
-ul {
- list-style-type: disc;
+.documentView-node:first-child {
+ background: $light-color;
}
-#schema-options-header {
- text-align: center;
- padding: 0px;
- margin: 0px;
-}
+.collectionSchema-col {
+ height: 100%;
-.schema-options-subHeader {
- color: $intermediate-color;
- margin-bottom: 5px;
-}
+ .collectionSchema-col-wrapper {
+ &.col-before {
+ border-left: 2px solid red;
+ }
-#schemaOptionsMenuBtn:hover {
- transform: scale(1.15);
+ &.col-after {
+ border-right: 2px solid red;
+ }
+ }
}
-#preview-schema-checkbox-div {
- margin-left: 20px;
- font-size: 12px;
+
+.collectionSchemaView-header {
+ height: 100%;
+ color: gray;
+
+ .collectionSchema-header-menu {
+ height: 100%;
+
+ .collectionSchema-header-toggler {
+ width: 100%;
+ height: 100%;
+ padding: 4px;
+ letter-spacing: 2px;
+ text-transform: uppercase;
+
+ svg {
+ margin-right: 4px;
+ }
+ }
+
+ // div[class*="css"] {
+ // width: 100%;
+ // height: 100%;
+ // }
+ }
}
-#options-flyout-div {
- text-align: left;
- padding: 0px;
- z-index: 100;
- font-family: $sans-serif;
- padding-left: 5px;
+button.add-column {
+ width: 28px;
}
-#schema-col-checklist {
- overflow: scroll;
+.collectionSchema-header-menuOptions {
+ color: black;
+ width: 175px;
text-align: left;
- //background-color: $light-color-secondary;
- line-height: 25px;
- max-height: 175px;
- font-family: $sans-serif;
- font-size: 12px;
-}
+ .collectionSchema-headerMenu-group {
+ margin-bottom: 10px;
+ }
-.Resizer {
- box-sizing: border-box;
- background: #000;
- opacity: 0.5;
- z-index: 1;
- background-clip: padding-box;
-
- &.horizontal {
- height: 11px;
- margin: -5px 0;
- border-top: 5px solid rgba(255, 255, 255, 0);
- border-bottom: 5px solid rgba(255, 255, 255, 0);
- cursor: row-resize;
+ label {
+ color: $main-accent;
+ font-weight: normal;
+ }
+
+ input {
+ color: black;
width: 100%;
+ }
- &:hover {
- border-top: 5px solid rgba(0, 0, 0, 0.5);
- border-bottom: 5px solid rgba(0, 0, 0, 0.5);
+ .keys-dropdown {
+ position: relative;
+ max-width: 175px;
+
+ .keys-options-wrapper {
+ width: 100%;
+ max-height: 150px;
+ overflow-y: scroll;
+ position: absolute;
+ top: 20px;
+
+ .key-option {
+ background-color: $light-color;
+ border: 1px solid $light-color-secondary;
+ padding: 2px 3px;
+
+ &:not(:last-child) {
+ border-top: 0;
+ }
+
+ &:hover {
+ background-color: $light-color-secondary;
+ }
+ }
}
}
- &.vertical {
- width: 11px;
- margin: 0 -5px;
- border-left: 5px solid rgba(255, 255, 255, 0);
- border-right: 5px solid rgba(255, 255, 255, 0);
- cursor: col-resize;
+ .columnMenu-types {
+ display: flex;
+ justify-content: space-between;
- &:hover {
- border-left: 5px solid rgba(0, 0, 0, 0.5);
- border-right: 5px solid rgba(0, 0, 0, 0.5);
+ button {
+ border-radius: 20px;
}
}
- &:hover {
- -webkit-transition: all 2s ease;
- transition: all 2s ease;
+ .columnMenu-colors {
+
+
+ input[type="radio"] {
+ display: none;
+ }
+
+ .columnMenu-colorPicker {
+ width: 20px;
+ height: 20px;
+ }
}
}
-.vertical {
- section {
- width: 100vh;
- height: 100vh;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- }
+.collectionSchema-row {
+ // height: $MAX_ROW_HEIGHT;
+ height: 100%;
+ background-color: white;
- header {
- padding: 1rem;
- background: #eee;
+ &.row-focused .rt-tr {
+ background-color: rgb(255, 246, 246); //$light-color-secondary;
}
- footer {
- padding: 1rem;
- background: #eee;
+ &.row-wrapped {
+ white-space: normal;
}
-}
-.horizontal {
- section {
- width: 100vh;
- height: 100vh;
+ .row-dragger {
display: flex;
- flex-direction: column;
+ justify-content: space-around;
+ // height: $MAX_ROW_HEIGHT;
+ flex: 50 0 auto;
+ width: 50px;
+ max-width: 50px;
+ height: 100%;
+ min-height: 30px;
+ // padding: 5px 5px 5px 0;
+ color: lightgray;
+ background-color: white;
+ transition: color 0.1s ease;
+
+ // &:hover {
+ // color: lightgray;
+ // }
+
+ .row-option {
+ // padding: 5px;
+ cursor: pointer;
+ transition: color 0.1s ease;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+
+ &:hover {
+ color: gray;
+ }
+ }
}
- header {
- padding: 1rem;
- background: #eee;
- }
+ .collectionSchema-row-wrapper {
+ // max-height: $MAX_ROW_HEIGHT;
+
+ &.row-above {
+ border-top: 1px solid red;
+ }
+
+ &.row-below {
+ border-bottom: 1px solid red;
+ }
- footer {
- padding: 1rem;
- background: #eee;
+ &.row-inside {
+ border: 1px solid red;
+ }
+
+ .row-dragging {
+ background-color: blue;
+ }
}
}
-.parent {
+.collectionSchemaView-cellContainer {
width: 100%;
height: 100%;
- -webkit-box-flex: 1;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
+}
+
+.collectionSchemaView-cellWrapper {
+ height: 100%;
+ padding: 4px;
+ position: relative;
+
+ &:focus {
+ outline: none;
+ }
+
+ &.focused {
+ // background-color: yellowgreen;
+ // border: 2px solid yellowgreen;
+
+ input {
+ outline: 0;
+ border: none;
+ background-color: yellow;
+ }
+
+ &.inactive {
+ // border: 2px solid rgba(255, 255, 0, 0.4);
+ border: none;
+ }
+ }
+
+ p {
+ width: 100%;
+ height: 100%;
+ // word-wrap: break-word;
+ }
+
+ &:hover .collectionSchemaView-cellContents-docExpander {
+ display: block;
+ }
+}
+
+.collectionSchemaView-cellContents-docExpander {
+ height: 30px;
+ width: 30px;
+ display: none;
+ position: absolute;
+ top: 0;
+ right: 0;
+ background-color: lightgray;
+}
+
+.doc-drag-over {
+ background-color: red;
+}
+
+.collectionSchemaView-toolbar {
+ height: 30px;
display: flex;
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
+ justify-content: flex-end;
+ padding: 0 10px;
+
+ border-bottom: 2px solid gray;
+ // margin-bottom: 10px;
+
+ .collectionSchemaView-toolbar-item {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ }
}
-.header {
- background: #aaa;
- height: 3rem;
- line-height: 3rem;
+#preview-schema-checkbox-div {
+ margin-left: 20px;
+ font-size: 12px;
}
-.wrapper {
- background: #ffa;
- margin: 5rem;
- -webkit-box-flex: 1;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
+.collectionSchemaView-table {
+ width: calc(100% - 7px);
}
-.-even {
- background: $light-color !important;
+.sub {
+ padding: 10px 30px;
+ // padding-left: 80px;
+ background-color: rgb(252, 252, 252);
+ width: calc(100% - 50px);
+ margin-left: 50px;
+
+ .rt-table {
+ overflow-x: hidden; // todo; this shouldnt be like this :((
+ overflow-y: visible;
+ }
+
+ // TODO fix
+
+ .row-dragger {
+ background-color: rgb(252, 252, 252);
+ }
+
+ .rt-table {
+ background-color: rgb(252, 252, 252);
+ }
+
+ .collectionSchemaView-table {
+ width: 100%;
+ }
}
-.-odd {
- background: $light-color-secondary !important;
+.collectionSchemaView-expander {
+ height: 100%;
} \ No newline at end of file