Skip to content
This repository was archived by the owner on Nov 23, 2018. It is now read-only.
This repository was archived by the owner on Nov 23, 2018. It is now read-only.

css does not minify/concat correctly when using default main.css #181

Open
@stalsma

Description

@stalsma

I am using a single css file in my index.html file:
<link rel="stylesheet" href="css/style.css">
This links out to a file that consists only of imports:
@import url(normalize.css); @import url(main.css); @import url(site.css);

The main.css is the default css that is packaged w/Boilerplate. However, all the parens on one of the media queries seems to be breaking the minification routine. It looks like the 5/4 expression is causing issues; maybe the slash is escaping something?

The problematic section is bolded below, with its result (unminified for readability):

Before

.clearfix {
*zoom: 1;
}

/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */

@media only screen and (min-width: 35em) {
/* Style adjustments for viewports that meet the condition */
}

*@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices /
}

/* ==========================================================================
Print styles.
Inlined to avoid required HTTP connection: h5bp.com/r
========================================================================== /
@media print {
* {
background: transparent !important;
color: #000 !important; /
Black prints faster: h5bp.com/s */
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
} <snip ...>

After

`
.clearfix {
*zoom: 1
}

@media print,(-o-min-device-pixel-ratio: 5 / @media print { *{background:transparent
!important;color:#000
!important;box-shadow:none
!important;text-shadow:none
!important
}

a, a:visited {
text-decoration: underline
}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions