CSS-Sass

 view release on metacpan or  search on metacpan

lib/CSS/ppport.h  view on Meta::CPAN

#ifndef UV_MAX
#  define UV_MAX                         PERL_ULONG_MAX
#endif

#endif

#ifndef IVSIZE
#  ifdef LONGSIZE
#    define IVSIZE LONGSIZE
#  else
#    define IVSIZE 4 /* A bold guess, but the best we can make. */
#  endif
#endif
#ifndef UVTYPE
#  define UVTYPE                         unsigned IVTYPE
#endif

#ifndef UVSIZE
#  define UVSIZE                         IVSIZE
#endif
#ifndef sv_setuv

libsass/parser.cpp  view on Meta::CPAN

    const string property(lexed);
    if (!lex_css< one_plus< exactly<':'> > >()) error("property \"" + property + "\" must be followed by a ':'", pstate);
    if (peek_css< exactly<';'> >()) error("style declaration must contain a value", pstate);
    if (peek_css< static_value >()) {
      return new (ctx.mem) Declaration(prop->pstate(), prop, parse_static_value()/*, lex<important>()*/);
    }
    else {
      Expression* list_ex = parse_list();
      if (List* list = dynamic_cast<List*>(list_ex)) {
        if (list->length() == 0 && !peek< exactly <'{'> >()) {
          css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
        }
      }
      return new (ctx.mem) Declaration(prop->pstate(), prop, list_ex/*, lex<important>()*/);
    }
  }

  // parse +/- and return false if negative
  bool Parser::parse_number_prefix()
  {
    bool positive = true;

t/inc/sass/t-13.sass  view on Meta::CPAN

.users #userTab /* unexpected */,
.posts #postTab
  :width 100px
  :height 30px
  ::selection
    font-weight: bolder
  :hover 
  :hover  
    font-weight: bold

t/inc/scss/t-13.scss  view on Meta::CPAN

.users #userTab /* unexpected */,
.posts #postTab {
  width: 100px;
  height: 30px;
  ::selection {
    font-weight: bolder; }
  :hover {}
  :hover {
    font-weight: bold; } }

t/sass-spec/benchmarks/vanilla_css_huge.scss  view on Meta::CPAN

  font-size: 2em;
  margin: 0.67em 0; }

/**
 * Address styling not present in IE 8/9, Safari 5, and Chrome.
 */
abbr[title] {
  border-bottom: 1px dotted; }

/**
 * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
 */
b,
strong {
  font-weight: bold; }

/**
 * Address styling not present in Safari 5 and Chrome.
 */
dfn {
  font-style: italic; }

/**
 * Address differences between Firefox and other browsers.
 */

t/sass-spec/spec/basic/06_nesting_and_comments/expected.compact.css  view on Meta::CPAN

/* top level comment -- should be preserved */
div { /* another comment that should be preserved */ color: red; background: blue; /* the next selector should be indented two spaces */ margin: 10px 5px; }
div span { font-weight: bold; /* yet another comment that should be preserved */ display: inline-block; }
div span a { text-decoration: none; /* where will this comment go? */ color: green; /* what about this comment? */ border: 1px bloo blee red; }
div empty not_empty { blah: blah; bloo: bloo; }
div p { padding: 10px 8%; -webkit-box-sizing: hux; }
div h1 { color: "a 'red' and \"blue\" value"; }

/* last comment, top level again -- compare the indentation! */
div { f: g; }
div empty span { a: b; }
div empty_with_comment { /* hey now */ }
div empty_with_comment span { c: d; }

t/sass-spec/spec/basic/06_nesting_and_comments/expected.compressed.css  view on Meta::CPAN

div{color:red;background:blue;margin:10px 5px}div span{font-weight:bold;display:inline-block}div span a{text-decoration:none;color:green;border:1px bloo blee red}div empty not_empty{blah:blah;bloo:bloo}div p{padding:10px 8%;-webkit-box-sizing:hux}div...

t/sass-spec/spec/basic/06_nesting_and_comments/expected.expanded.css  view on Meta::CPAN

/* top level comment -- should be preserved */
div {
  /* another comment that should be preserved */
  color: red;
  background: blue;
  /* the next selector should be indented two spaces */
  margin: 10px 5px;
}
div span {
  font-weight: bold;
  /* yet another comment that should be preserved */
  display: inline-block;
}
div span a {
  text-decoration: none;
  /* where will this comment go? */
  color: green;
  /* what about this comment? */
  border: 1px bloo blee red;
}

t/sass-spec/spec/basic/06_nesting_and_comments/expected_output.css  view on Meta::CPAN

/* top level comment -- should be preserved */
div {
  /* another comment that should be preserved */
  color: red;
  background: blue;
  /* the next selector should be indented two spaces */
  margin: 10px 5px; }
  div span {
    font-weight: bold;
    /* yet another comment that should be preserved */
    display: inline-block; }
    div span a {
      text-decoration: none;
      /* where will this comment go? */
      color: green;
      /* what about this comment? */
      border: 1px bloo blee red; }
  div empty not_empty {
    blah: blah;

t/sass-spec/spec/basic/06_nesting_and_comments/input.scss  view on Meta::CPAN

$blah: bloo blee;
$blip: "a 'red' and \"blue\" value";

/* top level comment -- should be preserved */
div {
  /* another comment that should be preserved */
  color: red;
  background: blue;
  $blux: hux; // gone!
  span {
    font-weight: bold;
    a {
      text-decoration: none; /* where will this comment go? */
      color: green;
      /* what about this comment? */ border: 1px $blah red;
    }
    /* yet another comment that should be preserved */
    display: inline-block;
  }  // gone!
  /* the next selector should be indented two spaces */
  empty {

t/sass-spec/spec/libsass/bourbon/lib/addons/_button.scss  view on Meta::CPAN

    $stop-gradient: grayscale($stop-gradient);
    $text-shadow:   grayscale($text-shadow);
  }

  border: 1px solid $border;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 0 $inset-shadow;
  color: $color;
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  @include linear-gradient ($base-color, $stop-gradient);
  padding: 7px 18px;
  text-decoration: none;
  text-shadow: 0 1px 0 $text-shadow;
  background-clip: padding-box;

  &:hover:not(:disabled) {
    $base-color-hover:    adjust-color($base-color, $saturation: -4%, $lightness: -5%);
    $inset-shadow-hover:  adjust-color($base-color, $saturation: -7%, $lightness:  5%);
    $stop-gradient-hover: adjust-color($base-color, $saturation:  8%, $lightness: -14%);

t/sass-spec/spec/libsass/bourbon/lib/addons/_button.scss  view on Meta::CPAN

    $third-stop:    grayscale($third-stop);
  }

  border: 1px solid $border;
  border-bottom: 1px solid $border-bottom;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 0 $inset-shadow;
  color: $color;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  @include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
  padding: 8px 20px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px 1px $text-shadow;

  &:hover:not(:disabled) {
    $first-stop-hover:  adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
    $second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
    $third-stop-hover:  adjust-color($base-color, $red: -93, $green: -85, $blue: -66);

t/sass-spec/spec/libsass/bourbon/lib/css3/_font-face.scss  view on Meta::CPAN

// Order of the includes matters, and it is: normal, bold, italic, bold+italic.

@mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: false ) {
  @font-face {
    font-family: $font-family;
    font-weight: $weight;
    font-style: $style;

    @if $asset-pipeline == true {
      src: font-url('#{$file-path}.eot');
      src: font-url('#{$file-path}.eot?#iefix')          format('embedded-opentype'),

t/sass-spec/spec/scss/mixin-content/expected.compact.css  view on Meta::CPAN

div { /* with a content block */ name: foo; stuff: content for foo; name: bar; stuff: content for bar; stuff: content for foo; /* without */ name: foo; name: bar; stuff: content for bar; }

span { color: green; }
span div { color: red; background: blue; width: 80%; }
@media fudge { span div p { font-weight: bold; font-size: 1.2em; }
  span div p a { text-decoration: underline; } }
span div form { color: orange; }
@media fudge { span div form p { font-weight: bold; font-size: 1.2em; }
  span div form p a { text-decoration: underline; } }

* html #logo { background-image: url(/logo.gif); }

t/sass-spec/spec/scss/mixin-content/expected.compressed.css  view on Meta::CPAN

div{name:foo;stuff:content for foo;name:bar;stuff:content for bar;stuff:content for foo;name:foo;name:bar;stuff:content for bar}span{color:green}span div{color:red;background:blue;width:80%}@media fudge{span div p{font-weight:bold;font-size:1.2em}spa...

t/sass-spec/spec/scss/mixin-content/expected.expanded.css  view on Meta::CPAN

span {
  color: green;
}
span div {
  color: red;
  background: blue;
  width: 80%;
}
@media fudge {
  span div p {
    font-weight: bold;
    font-size: 1.2em;
  }
  span div p a {
    text-decoration: underline;
  }
}
span div form {
  color: orange;
}
@media fudge {
  span div form p {
    font-weight: bold;
    font-size: 1.2em;
  }
  span div form p a {
    text-decoration: underline;
  }
}

* html #logo {
  background-image: url(/logo.gif);
}

t/sass-spec/spec/scss/mixin-content/expected_output.css  view on Meta::CPAN

  stuff: content for bar; }

span {
  color: green; }
  span div {
    color: red;
    background: blue;
    width: 80%; }
    @media fudge {
      span div p {
        font-weight: bold;
        font-size: 1.2em; }
        span div p a {
          text-decoration: underline; } }
    span div form {
      color: orange; }
      @media fudge {
        span div form p {
          font-weight: bold;
          font-size: 1.2em; }
          span div form p a {
            text-decoration: underline; } }

* html #logo {
  background-image: url(/logo.gif); }

t/sass-spec/spec/scss/mixin-content/input.scss  view on Meta::CPAN

    @content;
  }
}

span {
  $size: 1.2em;
  color: green;
  @include foo() {
    @media fudge {
      p {
        font-weight: bold;
        font-size: $size;
        a {
          text-decoration: underline;
        }
      }
    }
  }
}

@mixin apply-to-ie6-only {



( run in 2.962 seconds using v1.01-cache-2.11-cpan-5dc5da66d9d )