How to use the strapi-helper-plugin.colors.relations function in strapi-helper-plugin

To help you get started, we’ve selected a few strapi-helper-plugin 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 strapi / strapi / packages / strapi-plugin-content-type-builder / admin / src / components / RelationFormNaturePicker / Wrapper.js View on Github external
const StyledRelationNaturePicker = styled.div`
  position: relative;
  width: 100%;
  .nature-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    &::before {
      content: '';
      position: absolute;
      top: 2.2rem;
      height: 1px;
      width: 100%;
      background-color: ${colors.relations.border};
      z-index: 0;
    }
    .nature-buttons {
      position: relative;
      width: fit-content;
      display: block;
      margin: 0 auto;
      z-index: 1;
    }
    .nature-txt {
      padding: 0 1rem;
      font-size: 1.3rem;
      text-align: center;
      margin-top: 6px;
      margin-bottom: 2px;
      span {
github strapi / strapi / packages / strapi-plugin-content-type-builder / admin / src / components / RelationBox / StyledRelationBox.js View on Github external
import styled from 'styled-components';

import { colors } from 'strapi-helper-plugin';

const StyledRelationBox = styled.div`
  width: 20rem;
  height: 13.8rem;
  background-color: ${colors.relations.boxBkgd};
  box-shadow: 0 1px 2px ${colors.relations.boxShadow};
  border-radius: 2px;
  .box-header {
    height: 3.6rem;
    line-height: 3.6rem;
    text-transform: capitalize;
    background-color: ${colors.relations.headerBkgd};
    &,
    .dropdown-toggle p {
      text-align: center;
      font-size: 1.4rem;
      font-weight: 700;
    }
    i,
    svg {
      margin-right: 8px;
github strapi / strapi / packages / strapi-plugin-content-type-builder / admin / src / components / RelationFormNaturePicker / Wrapper.js View on Github external
margin: 0 auto;
      z-index: 1;
    }
    .nature-txt {
      padding: 0 1rem;
      font-size: 1.3rem;
      text-align: center;
      margin-top: 6px;
      margin-bottom: 2px;
      span {
        &:first-of-type,
        &:nth-of-type(3) {
          text-transform: capitalize;
        }
        &:nth-of-type(2) {
          color: ${colors.relations.border};
        }
      }
    }
    svg {
      margin: 0 1.5rem;
      cursor: pointer;
    }
  }
`;

export default StyledRelationNaturePicker;
github strapi / strapi / packages / strapi-plugin-content-type-builder / admin / src / components / RelationBox / StyledRelationBox.js View on Github external
import styled from 'styled-components';

import { colors } from 'strapi-helper-plugin';

const StyledRelationBox = styled.div`
  width: 20rem;
  height: 13.8rem;
  background-color: ${colors.relations.boxBkgd};
  box-shadow: 0 1px 2px ${colors.relations.boxShadow};
  border-radius: 2px;
  .box-header {
    height: 3.6rem;
    line-height: 3.6rem;
    text-transform: capitalize;
    background-color: ${colors.relations.headerBkgd};
    &,
    .dropdown-toggle p {
      text-align: center;
      font-size: 1.4rem;
      font-weight: 700;
    }
    i,
    svg {
      margin-right: 8px;
    }
  }
  .box-body {
    padding-top: 1rem;
  }
`;