0

How can I translate this (LESS):

.urlBox {
    background: #ddd;
    border-radius: 5px;
    padding: 5px;

    + .urlBox {
        margin-top: 5px;
    }
}

To Styletron?

So far I've got this:

const UrlBox = styled('div', {
    background: '#ddd',
    borderRadius: '5px',
    padding: '5px',
});

But I can't figure out how to do the sibling selector (+).

mpen
  • 272,448
  • 266
  • 850
  • 1,236
  • I don't think this is [possible](https://github.com/rtsao/styletron/issues/27) with Styletron at the moment. – mpen May 26 '17 at 15:41

1 Answers1

1

In JSS we have nested syntax, which is similar to less/sass.

Oleg Isonen
  • 1,463
  • 10
  • 10