2017 © Pedro Peláez
 

library mysheet

image

mysheet/mysheet

  • Wednesday, June 17, 2015
  • by Dobby007
  • Repository
  • 3 Watchers
  • 4 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

MySheet - CSS Preprocessor and Parser written in PHP

Latest Stable Version Total Downloads Monthly Downloads Latest Unstable Version License, (*1)

Official website: http://mss.flydigo.com, (*2)

Get started: http://mss.flydigo.com/getStarted, (*3)

Documentation: http://mss.flydigo.com/docs, (*4)

Author: Alexander Gilevich (about me), (*5)

What is it?

MySheet Library is the open-source CSS preprocessor and parser written in PHP. It has full backward compatibility with pure CSS. MySheet was highly inspired by the simplicity of Stylus for Node.js. It also has some solutions from other CSS preprocessors., (*6)

Advantages

  • Simplicity and flexibility of writing web-site styles for designer
  • Styles can be adjusted from backend making it easy to control styles of your site even without proffessional knowledge of CSS
  • Extensibility and support of plugins
  • Compatibility with pure CSS

Examples

Example #1 - hierarchical structure:, (*7)

body
    padding 0
    margin 0
    .wrapper
        margin 0 auto
        width 50%

results in the following CSS:, (*8)

body {
    padding: 0;
    margin: 0
}

body .wrapper {
    margin: 0 auto;
    width: 50%
}

Example #2 - mixins:, (*9)

@mixin filter-grayscale(percent)
    -webkit-filter: grayscale($percent);
    -moz-filter: grayscale($percent);
    -ms-filter: grayscale($percent);
    -o-filter: grayscale($percent);
    filter: grayscale($percent);

img
    filter-grayscale 100%
img:hover
    filter-grayscale 0%

results in the following CSS:, (*10)

img {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%)
}

img:hover {
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    -ms-filter: grayscale(0%);
    -o-filter: grayscale(0%);
    filter: grayscale(0%)
}

Example #3 - arithmetic expressions and comments:, (*11)

.object
    color #a50c5b - 50sat /* decrease saturation by 50% */
    background-color #a50c5b + 50lt /* make color lighter by 50 percent */

results in the following CSS:, (*12)

.object {
    color: #79385a;
    background-color: #fab6d9
}

Example #4 - arithmetic expressions in combine with variables:, (*13)

$wrapper_height = 50%
.wrapper
    height $wrapper_height
    top $wrapper_height / 2

results in the following CSS:, (*14)

.wrapper {
    height: 50%;
    top: 25%
}

and much much more..., (*15)

License

MySheet Library is open-source project. It is licensed under Apache License, Version 2.0., (*16)

The Versions

17/06 2015

dev-master

9999999-dev http://mss.flydigo.com

  Sources   Download

Apache-2.0

The Requires

 

css css parser css preprocessor mss

26/04 2015

v1.0.5

1.0.5.0 http://mss.flydigo.com

  Sources   Download

Apache-2.0

The Requires

 

css css parser css preprocessor mss

05/04 2015

dev-refactoring_of_declarations

dev-refactoring_of_declarations http://mss.flydigo.com

  Sources   Download

Apache-2.0

The Requires

 

css css parser css preprocessor mss

11/02 2015

v1.0.1

1.0.1.0 http://mss.flydigo.com

  Sources   Download

Apache-2.0

The Requires

 

css css parser css preprocessor mss

24/01 2015

v1.0.0

1.0.0.0 http://mss.flydigo.com

  Sources   Download

Apache-2.0

The Requires

 

css css parser css preprocessor mss