GithubHelp home page GithubHelp logo

maxmckenzie / bristol-fashion Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 2.62 MB

Design system to help keep UI design ship shape and Bristol fashion

Home Page: https://bristol-fashion.now.sh

JavaScript 6.06% Less 88.98% SCSS 4.96%
css css-framework less scss uikit

bristol-fashion's People

Contributors

dependabot[bot] avatar maxmckenzie avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

bristol-fashion's Issues

# Shadow

  • ._shadow-xs
  • ._shadow-sm
  • ._shadow-md
  • ._shadow-lg
  • ._shadow-xl
  • ._shadow-xxl

# Spacing

  • ._m-r:{auto|0-4}

  • ._m-v:{auto|0-4}

  • ._m-l:{auto|0-4}

  • ._m-r:{auto|0-4}

  • ._m-t:{auto|0-4}

  • ._m-b:{auto|0-4}

  • ._p-r:{auto|0-4}

  • ._p-v:{auto|0-4}

  • ._p-l:{auto|0-4}

  • ._p-r:{auto|0-4}

  • ._p-t:{auto|0-4}

  • ._p-b:{auto|0-4}

# Type

  • ._text-xs
  • ._text-sm
  • ._text-md
  • ._text-lg
  • ._text-xl
  • ._text-xxl

# Images

_image:fill
_image:4:6
_image:16:9
_image:1:1

# borders

  • ._border
  • ._border-radius:sm
  • ._border-radius:md
  • ._border-radius:lg
  • ._border-top
  • ._border-bottom
  • ._border-left
  • ._border-right

grid

@columns: 12;
@gutter-width: 1rem;
@gutter-width-half: 0.5rem;

._grid {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  margin:0 -0.5rem;
}

._grid._nogutter {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  margin:0 !important;
}

.gencolumns(@columns; @index: 1) when (@index =< @columns) {
  .gencolumns(@columns; (@index + 1));


  ._col\:xs\(@{index}\) {
    width: calc(calc(100% / @columns * @index) - calc(var(--gw)));
    margin: calc(var(--gw) / 2);
  }
  ._col\:xs\(@{index}\)._nogutter {
    margin:0 !important;
    width: calc(calc(100% / @columns * @index)) !important;
  }

  @media screen and (min-width: 20rem) {
    ._col\:sm\(@{index}\) {
      width: calc(calc(100% / @columns * @index) - calc(var(--gw)));
      margin: calc(var(--gw) / 2);
    }
    ._col\:sm\(@{index}\)._nogutter {
      margin:0 !important;
      width: calc(calc(100% / @columns * @index)) !important;
    }
  }

  @media screen and (min-width: 30rem) {
    ._col\:md\(@{index}\) {
      width: calc(calc(100% / @columns * @index) - calc(var(--gw)));
      margin: calc(var(--gw) / 2);
    }
    ._col\:md\(@{index}\)._nogutter {
      margin:0 !important;
      width: calc(calc(100% / @columns * @index)) !important;
    }
  }

  @media screen and (min-width: 60rem) {
    ._col\:lg\(@{index}\) {
      width: calc(calc(100% / @columns * @index) - calc(var(--gw)));
      margin: calc(var(--gw) / 2);
    }
    ._col\:lg\(@{index}\)._nogutter {
      margin:0 !important;
      width: calc(calc(100% / @columns * @index)) !important;
    }
  }

  @media screen and (min-width: 90rem) {
    ._col\:xl\(@{index}\) {
      width: calc(calc(100% / @columns * @index) - calc(var(--gw)));
      margin: calc(var(--gw) / 2);
    }
    ._col\:xl\(@{index}\)._nogutter {
      margin:0 !important;
      width: calc(calc(100% / @columns * @index)) !important;
    }
  }
}

[class^='_col'],
[class*=' _col'] {
  display: inline-flex;
  flex-wrap: wrap;
}

.gencolumns(@columns);

Flexbox

  • ._col:12
  • ._col-xs:12
  • ._col-sm:12
  • ._col-md:12
  • ._col-lg:12
  • ._col-xl:12
  • ._col-xxl:12

or fractions

  • ._col-xs:1/2
  • ._col-sm:1/2
  • ._col-md:1/2
  • ._col-lg:1/2
  • ._col-xl:1/2
  • ._col-xxl:1/2

# misc

  • ._is-hidden
  • ._is-visible
  • ._is-active

Content and alignment modifiers

align

  • ._align-left
  • ._align-right
  • ._align-center
  • ._align-middle
  • ._align-baseline
  • ._align-top
  • ._align-bottom
  • ._align-sub
  • ._align-text-top

flex

  • ._content-center
  • ._content-center:x
  • ._content-center:y
  • ._content-align:top
  • ._content-align:bottom
  • ._content-align:left
  • ._content-align:right
  • ._content-space-between:x
  • ._content-space-between:y
  • ._content-space-around:x
  • ._content-space-around:y
  • ._content-stretch:x
  • ._content-stretch:y
  • ._flex-column
  • ._flex-row
  • ._flex-column-reverse
  • ._flex-row-reverse
  • ._flex-wrap-reverse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.