UNPKG

@zohodesk/docs-builder

Version:

docs-builder is used to build your own docs

165 lines (136 loc) 2.66 kB
.propsTableContainer { border: 1px solid #dfdde7; padding: 10px; border-radius: 5px; margin-bottom: 2rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } .compName { font-size: 1rem; margin-bottom: 1rem; color: #2d3748; padding: 0.75rem 1rem; border-radius: 4px; background: #f6f8fb; color: #000000; letter-spacing: 0.5px; display: block; min-width: 200px; position: relative; border: 1px solid #dfdde7; font-weight: 700; } .propsTable { width: 100%; border-collapse: collapse; border-radius: 4px; overflow: hidden; padding-left: 15px; } .tableHeader { display: flex; width: 100%; background-color: #f8f9fa; border-bottom: 1px solid #eaeaea; } .tableHeader:first-child { background-color: #edf2f7; font-weight: 600; } .tableHeader>span { padding: 0.75rem 1rem; flex: 1; display: flex; align-items: center; overflow: auto; } .tableHeader .requiredColumn{ flex-grow: initial; flex-shrink: 0; overflow: hidden; flex-basis: 110px; justify-content: center; } .brR { border-right: 1px solid #eaeaea; } /* Type tags styling */ .typeTag { padding: 0.25rem 0.5rem; border-radius: 3px; font-size: 0.8rem; color: white; display: inline-block; font-weight: 500; } .stringType { background-color: #48bb78; } .boolType { background-color: #4299e1; } .funcType { background-color: #805ad5; } .oneOfType { background-color: #d69e2e; } .objectType { background-color: #f56565; } .elementType { background-color: #ed8936; } .arrayType { background-color: #667eea; } .shapeType { background-color: #9f7aea; } .numberType { background-color: #38b2ac; } .exactType { background-color: #b794f4; } .instanceOfType { background-color: #4fd1c5; } .anyType { background-color: #a0aec0; } .nodeType { background-color: #fc8181; } .symbolType { background-color: #f687b3; } .customPropType { background-color: #6b46c1; } /* Checkbox styling */ .checkbox { width: 16px; height: 16px; cursor: not-allowed; } .checkbox:checked { accent-color: #3182ce; } /* Responsive adjustments */ @media (max-width: 768px) { .tableHeader { flex-direction: column; } .tableHeader>span { border-right: none; border-bottom: 1px solid #eaeaea; padding: 0.5rem; } .tableHeader>span:last-child { border-bottom: none; } .brR { border-right: none; } }