@import "../globalCssVariables"; .collectionSchemaView-container { border-width: $COLLECTION_BORDER_WIDTH; border-color: $intermediate-color; border-style: solid; border-radius: $border-radius; box-sizing: border-box; // position: absolute; width: 100%; height: calc(100% - 50px); // overflow: hidden; // overflow-x: scroll; // border: none; overflow: hidden; transition: top 0.5s; // .collectionSchemaView-cellContents { // height: $MAX_ROW_HEIGHT; // img { // width: auto; // max-height: $MAX_ROW_HEIGHT; // } // } .collectionSchemaView-previewRegion { position: relative; background: $light-color; float: left; height: 100%; .collectionSchemaView-previewDoc { height: 100%; width: 100%; position: absolute; } .collectionSchemaView-input { position: absolute; max-width: 150px; width: 100%; bottom: 0px; } .documentView-node:first-child { position: relative; background: $light-color; } } .collectionSchemaView-dividerDragger { position: relative; float: left; height: 100%; width: 20px; z-index: 20; right: 0; top: 0; background: gray; cursor: col-resize; // background: $main-accent; // box-sizing: border-box; // border-left: 1px solid $intermediate-color; // border-right: 1px solid $intermediate-color; } } .ReactTable { width: 100%; height: 100%; background: white; box-sizing: border-box; border: none !important; .rt-table { overflow-y: auto; overflow-x: auto; height: 100%; display: -webkit-inline-box; direction: ltr; } .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; } .rt-resizable-header { padding: 0; height: 30px; &:last-child { overflow: visible; } } .rt-resizable-header-content { height: 100%; overflow: visible; } .rt-th { padding: 0; border: solid lightgray; border-width: 0 1px; } } .rt-th { // max-height: $MAX_ROW_HEIGHT; font-size: 13px; text-align: center; background-color: $light-color-secondary; &:last-child { overflow: visible; } } .rt-tbody { direction: rtl; overflow: visible; } .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; // } } .rt-tr { width: 100%; min-height: 30px; // height: $MAX_ROW_HEIGHT; } .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; // white-space: normal; .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-topmost { text-align: left; transform-origin: center top; display: inline-block; } .documentView-node:first-child { background: $light-color; } .collectionSchema-col{ height: 100%; .collectionSchema-col-wrapper { &.col-before { border-left: 2px solid red; } &.col-after { border-right: 2px solid red; } } } .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%; // } } } button.add-column { width: 28px; } .collectionSchema-header-menuOptions { color: black; width: 175px; text-align: left; .collectionSchema-headerMenu-group { margin-bottom: 10px; } label { color: $main-accent; font-weight: normal; } input { color: black; width: 100%; } .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; } } } } .columnMenu-types { display: flex; justify-content: space-between; button { border-radius: 20px; } } } .collectionSchema-row { // height: $MAX_ROW_HEIGHT; height: 100%; background-color: white; &.row-focused { background-color: rgb(255, 246, 246);//$light-color-secondary; } &.row-wrapped { white-space: normal; } .row-dragger { display: flex; 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; } } } .collectionSchema-row-wrapper { // max-height: $MAX_ROW_HEIGHT; &.row-above { border-top: 1px solid red; } &.row-below { border-bottom: 1px solid red; } &.row-inside { border: 1px solid red; } .row-dragging { background-color: blue; } } } .collectionSchemaView-cellContainer { width: 100%; height: 100%; } .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; 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; } } #preview-schema-checkbox-div { margin-left: 20px; font-size: 12px; } .collectionSchemaView-table { width: calc(100% - 7px); } .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%; } } .collectionSchemaView-expander { height: 100%; }