S
S
Sasha Brahms2015-10-29 11:02:35
css
Sasha Brahms, 2015-10-29 11:02:35

Why does stylus generate css incorrectly (skips; etc)?

there is a code:

STYLUS

body
    background #eee

#one
    width 150px
    height 150px
    background red
    @media print
        display none

#two
    width 100px
    @media print
        display none

When converted to native CSS, it outputs something like this:
body{
    background: #eee;
}
#one{
    width: 150px;
    height: 150px;
    background: red // не случайно пропустил ; stylus пропускает часто..
}
#two{
    width: 100px // тоже пропускает часто ;
}

@media print{
    #one{
        display: none;
     }
}
@media print{
    #two{
        display: none // и тут пропустил ещё ;
    }
}

Why doesn't it concatenate media into 1 and skip the ; etc ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Belkin, 2015-10-29
@BelkinVadim

If something is not generated correctly from stylus to css, then either you have errors (syntax, etc.), or these are generator jambs. How do you generate css from stylus?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question