@import '../../global/globalCssVariables.scss'; .collectionSchemaView { cursor: default; height: 100%; display: flex; flex-direction: row; .schema-table { background-color: $white; .schema-header-row { justify-content: flex-end; .schema-column-header { font-weight: bold; display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 0; .schema-column-title { flex-grow: 2; margin: 5px; } .schema-header-menu { margin: 5px; } .schema-column-resizer { height: 100%; width: 3px; cursor: ew-resize; &:hover { background-color: $light-blue; } } .schema-column-resizer.right { align-self: flex-end; } .schema-column-resizer.left { align-self: flex-start; } .schema-column-menu { background: $light-gray; width: inherit; position: absolute; top: 35px; min-width: 200px; display: flex; flex-direction: column; align-items: flex-start; .schema-key-search-input { width: calc(100% - 20px); margin: 10px; } .schema-key-search-result { cursor: pointer; padding: 2px 10px; width: 100%; &:hover { background-color: $medium-gray; } } .schema-key-search, .schema-new-key-options { width: 100%; display: flex; flex-direction: column; align-items: flex-start; } .schema-new-key-options { margin: 10px; .schema-key-warning { color: red; font-weight: normal; align-self: center; } } .schema-key-list { width: 100%; max-height: 300px; overflow-y: auto; } .schema-key-type-option { margin: 2px 0px; input { margin-right: 5px; } } .schema-key-default-val { margin: 5px 0; } .schema-column-menu-button { cursor: pointer; padding: 2px 5px; background: $medium-blue; border-radius: 9999px; color: $white; width: fit-content; margin: 5px; align-self: center; } } } } .schema-header-menu { display: flex; flex-direction: row; } } .schema-preview-divider { height: 100%; background: black; cursor: ew-resize; } } .schema-header-row, .schema-row { display: flex; flex-direction: row; max-height: 70px; overflow: auto; .schema-column-header, .schema-table-cell, .row-menu { border: 1px solid $medium-gray; padding: 5px; overflow: hidden; } } .schema-row { justify-content: flex-end; background: white; .row-menu { display: flex; flex-direction: row; justify-content: center; min-width: 50px; } .row-cells { display: flex; flex-direction: row; justify-content: flex-end; } } .schema-row-button, .schema-header-button { width: 20px; height: 20px; border-radius: 100%; background-color: $dark-gray; color: white; margin: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; svg { width: 12px; } }