How to use the reakit.styled.div function in reakit

To help you get started, we’ve selected a few reakit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github walmartlabs / concord / console2 / src / components / organisms / CheckpointView / shared / Layout.tsx View on Github external
* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * =====
 */
import { styled } from 'reakit';

export const Row = styled.div`
    /* display: grid;
    grid-template-columns: fit-content(300px) 1fr; */

    /* // TODO: Determine a better way to handle long repoMetadata */

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    width: 100%;
    margin: 24px 0px;
    border-radius: 5px;
    box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
`;

interface ColumnProps {
github walmartlabs / concord / console2 / src / components / organisms / StartRepositoryPopup / styles.tsx View on Github external
* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * =====
 */
import { styled } from 'reakit';

export const Table = styled.div`
    display: flex;
    flex-direction: row;
`;

const group = styled.div`
    &:first-child {
        margin-top: 0px!;
    }

    &:last-child {
        margin-bottom: 0px!;
    }
`;

export const Keys = styled(group)`
    flex-shrink: 1;
github walmartlabs / concord / console2 / src / components / organisms / CheckpointView / CheckpointGroup / styles.tsx View on Github external
color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
`;

export const EmptyBox = styled('div')`
    background: lightgray;
    padding: 0.7rem 0.7rem;
    text-align: center;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
`;

export const GroupItems = styled.div`
    display: flex;
    flex-direction: row;
    border-left: 1px solid gray;
    padding: 0 0.5rem;
    margin: 1rem;
`;
github walmartlabs / concord / console2 / src / components / organisms / CheckpointView / ActionBar / styles.tsx View on Github external
margin-bottom: 1rem;

    border: 1px solid #d4d4d5;
    border-radius: 5px;

    @media (min-width: 769px) {
        align-items: center;
    }

    @media (max-width: 768px) {
        align-items: left;
        flex-direction: column;
    }
`;

export const Item = styled.div`
    padding: 0.92857143em 1.14285714em;
    position: relative;
    vertical-align: middle;
    line-height: 1;
    text-decoration: none;

    ${({ pushRight }: { pushRight?: boolean }) => (pushRight ? `margin-left: auto` : ``)}
    @media (max-width: 768px) {
        margin-left: initial;
        align-items: left;
        flex-direction: column;
    }
`;
github walmartlabs / concord / console2 / src / components / organisms / CheckpointView / shared / Labels.tsx View on Github external
font-size: 1rem;
    display: inline;
`;

export const CheckpointName = styled(TextBase)`
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 4px;
`;

export const CheckpointGroupName = styled(CheckpointName)`
    font-size: 1.2rem;
    font-weight: bold;
`;

export const LoadError = styled.div`
    color: grey;
    font-weight: bold;
    font-size: 1.2rem;
    margin: auto auto;
    padding: 1em;
`;

export const Status: React.SFC<{ as?: 'span' | 'div' | 'td' }> = ({ as = 'span', children }) => {
    switch (children) {
        case 'FAILED':
            return React.createElement(
                as,
                { style: { color: '#DB2928' } },
                <>
                    {children}