These are chat archives for japgolly/scalacss

13th
May 2015
Matt Hughes
@matthughes
May 13 2015 18:42
Is this valid for ‘hover’ style?
  val foo = style("foo")(
    backgroundColor(yellow),
    &.hover.before(color(blue))
  )
Matt Hughes
@matthughes
May 13 2015 18:54
No matter which order I put the hover and before in, it generates .foo::before:hover. I believe it needs to be the reverse. Psuedo elements (before/after) must come last after psueudo classes (:hover/:visited)
Matt Hughes
@matthughes
May 13 2015 19:03
@chandu0101 Why do you new ReactListView but not ReactListViewDemo? Rather why is one a class and the other an object?
Matt Hughes
@matthughes
May 13 2015 21:40
What is the method for creating an “unnamed style collection” again? I’m trying to do this:
  val headerSmall = styleS(
    padding(0 px)
  )
  val header = style(
    media.maxWidth(medium px)(
      headerSmall
    )
  )
where headerSmall is not an actual CSS classname; rather I just want those styles to be inlined under the media query.
Chandra Sekhar Kode
@chandu0101
May 13 2015 22:01

@matthughes

@chandu0101 Why do you new ReactListView but not ReactListViewDemo? Rather why is one a class and the other an object?

ListView is a resuable component ,if user want to change look and feel he can extend existing style class ..

  def apply(items: List[String], style: Style = new Style,….)
What is the method for creating an “unnamed style collection” again
def headerSmall = mixin(..)