Giter VIP home page Giter VIP logo

scally's People

Contributors

alecraeside avatar gabrielrinaldi avatar kllevin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

scally's Issues

Update the main README

Remaining sections:

  • Design Principles
  • Framework Overview

Ideas:

  • Link to our HTML/CSS authoring guidelines when they're open-sourced.

New utility: Overlay

This will pin an element to all corners of the viewport with a semi-transparent bg.

Remove all the Sass for the `generate-at-breakpoints` mixin as it runs the risk of a large compiled style.css file

Discussed on HipChat:

Chris Pearce
10:08
@here worried about the generate-at-breakpoints mixin causing monster CSS files. I'm thinking remove it entirely from Scally, like keep the mixin but that's it then it's up to the fw author to create them when needed maybe in style.scss e.g.
Chris Pearce
10:08
@import "utilities/u-alignments";
@include generate-at-breakpoints('.u-align-v-inline-top',
  palm) {
  vertical-align: top;
}
Chris Pearce
10:08
@import "utilities/u-alignments";
@include generate-at-breakpoints('.u-align-v-inline-top',
  palm) {
  vertical-align: top;
}
Chris Pearce
10:08
anyway discuss at 11am
Chris Pearce
10:13
rather than this:
Chris Pearce
10:13
$u-alignments-breakpoints: palm;
@import "utilities/u-alignments";
Chris Pearce
10:13
which outputs this:
Chris Pearce
10:14
.u-align-v-inline-top {
  vertical-align: top; }
@media (max-width: 40em) {
  .u-align-v-inline-top-up-to-palm {
    vertical-align: top; } }
.u-align-v-inline-middle {
  vertical-align: middle; }
@media (max-width: 40em) {
  .u-align-v-inline-middle-up-to-palm {
    vertical-align: middle; } }
.u-align-v-inline-baseline {
  vertical-align: baseline; }
@media (max-width: 40em) {
  .u-align-v-inline-baseline-up-to-palm {
    vertical-align: baseline; } }
.u-align-v-inline-bottom {
  vertical-align: bottom; }
@media (max-width: 40em) {
  .u-align-v-inline-bottom-up-to-palm {
    vertical-align: bottom; } }
.u-align-v-inline-inherit {
  vertical-align: inherit; }
@media (max-width: 40em) {
  .u-align-v-inline-inherit-up-to-palm {
    vertical-align: inherit; } }
/**

  • Block level vertical alignments.
    /
    .u-align-v-block-middle-flexbox {
      display: flex;
      align-items: center;
      justify-content: center; }
    @media (max-width: 40em) {
      .u-align-v-block-middle-flexbox-up-to-palm {
        display: flex;
        align-items: center;
        justify-content: center; } }
    .u-align-v-block-middle-table {
      display: table;
      height: 100%;
      width: 100%; }
    @media (max-width: 40em) {
      .u-align-v-block-middle-table-up-to-palm {
        display: table;
        height: 100%;
        width: 100%; } }
    .u-align-v-block-middle-table__inner {
      display: table-cell;
      vertical-align: middle; }
    @media (max-width: 40em) {
      .u-align-v-block-middle-table__inner-up-to-palm {
        display: table-cell;
        vertical-align: middle; } }
    .u-align-v-block-middle-position {
      position: relative;
      top: 50%;
      transform: translateY(-50%); }
    @media (max-width: 40em) {
      .u-align-v-block-middle-position-up-to-palm {
        position: relative;
        top: 50%;
        transform: translateY(-50%); } }
    /
    *
  • Center align a block level element.
    *
    1. Make it work on inline elements e.g. img.
      */
      .u-align-center-block {
        display: block;
        margin-left: auto;
        margin-right: auto; }
      @media (max-width: 40em) {
        .u-align-center-block-up-to-palm {
          display: block;
          margin-left: auto;
          margin-right: auto; } }
      Hide full text
      Alec Raeside
      10:15
      yea it doesnt seem worth it
      Chris Pearce
      10:15
      it's too dangerous
      Chris Pearce
      10:15
      just means its a big non-backwards compatible change to Scally

Clean up deprecation warnings in Sass partials

[INFO] DEPRECATION WARNING on line 121, column 34 of ../../clientlibs/common/scally/utilities/
_u-  list-inline.scss:
[INFO] Unescaped multiline strings are deprecated and will be removed in a future version of Sass.       
[INFO] To include a newline in a string, use "\a" or "\a " as in CSS.

Add Pin to the sides and bottom

It would be nice to have a single util to pin to the sides and the bottom:

// Pin to the sides and bottom
%u-position-pin-sides-bottom,
.u-position-pin-sides-bottom {
    left: 0;
    right: 0;
    bottom: 0;
}

New text utility: Line-height

Be good to have a few utility classes that can apply custom line heights for the u-text-size- utilites e.g.

.u-text-line-height-normal {line-height: normal;}
.u-text-line-height-1 {line-height: 1;}

Utilities and breakpoints

In the todo: "Every Utility needs to be applied via all the main breakpoints"

I think this ability should only be available to some utilities. This will limit the flexibility of scally but will reduce the filesize:

Arrows: no
Blocklist: no
Bottom Spacing: no
Box: yes
Clearfix: no
Columns: yes
Complex Link: no
Disguised Link: no
Display: yes
Divider: yes
Drop Down: yes
Flag: yes
Float: yes
Hardware Accelerated: yes
Hide: yes
Horizontal List: yes
Image Replacement: no
New Block Formatting Context: no
Overlay: yes
Preserve aspect ratio: no
Pull: yes
Skip Link: no
Slats: yes
Smooth Touch Scrolling: yes
spacing: YES
split: yes?
Sprite bg: no
Sprite icon: no
Text: yes
Toggle Visibility: yes
Transitions: no
Vertical alignment: yes
Widths: yes

New component: Icon

A component that lets you apply icons, preferably via inline SVG rather than icon fonts.

See.

Expose scss-lint config via bower

The .scss-lint.yml config file should be included in the files that are published via bower. This will allow projects that use scally to share the same linting config.

Register Scally with Bower

@kllevin let's work together on this.

Good to eliminate these warnings:

 bower Scally#~1.0.18-421 mismatch Version declared in the json (1.0.23) is different than the  
 resolved one (1.0.24-444)
 bower Scally#~1.0.18-421  invalid-meta Scally is missing "main" entry in bower.json

Create a website for Scally

Right now the only way to see demo's of Scally is via CodePen. We need to replace CodePen with a proper website to make it easier for Scally users to be able to get up to speed with the framework.

Ideas:

  • Remove style.scss in favour of a dedicated web page on how to set this up

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.