# Global CSS breaks when using minify

**URL:** <https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770>\
**Category:** RapidWeaver Classic\
**Created:** [July 27, 2016, 9:09am UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770 "2016-07-27T09:09:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Atkins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kevin_atkins/32/14438_2.png) [@Kevin\_Atkins](https://forums.realmacsoftware.com/u/Kevin_Atkins)\
**Post date:** [July 27, 2016, 9:09am UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770/1 "2016-07-27T09:09:13Z")

</div>

I’m still having issues with minify in RW7: if I turn it on, I lose my global CSS, meaning it has to be put on each and every individual pages… anyone found a fix?

---

<div class="post-metadata">

**Author:** ![simon](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/simon/32/12609_2.png) [@simon](https://forums.realmacsoftware.com/u/simon)\
**Post date:** [July 27, 2016, 10:29am UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770/2 "2016-07-27T10:29:40Z")

</div>

@Kevin_Atkins can you send us a project that shows this behaviour please? You can zip it up and email it to [support@realmacsoftware.com](mailto:support@realmacsoftware.com)

Let them know I sent you, and they’ll make sure it gets over to me.

---

<div class="post-metadata">

**Author:** ![Kevin\_Atkins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kevin_atkins/32/14438_2.png) [@Kevin\_Atkins](https://forums.realmacsoftware.com/u/Kevin_Atkins)\
**Post date:** [July 27, 2016, 10:41am UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770/3 "2016-07-27T10:41:16Z")

</div>

I’ll try. This is a BIG project – 410.1MB – I kid you not!

I’ll wetransfer it and see what happens.

Cheers Simon.

---

<div class="post-metadata">

**Author:** ![simon](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/simon/32/12609_2.png) [@simon](https://forums.realmacsoftware.com/u/simon)\
**Post date:** [July 27, 2016, 10:44am UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770/4 "2016-07-27T10:44:53Z")

</div>

@Kevin_Atkins does it happen if you create a new project with the same theme? If you can make it happen in a project with a single page, that’d be _amazing_.

---

<div class="post-metadata">

**Author:** ![Kevin\_Atkins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kevin_atkins/32/14438_2.png) [@Kevin\_Atkins](https://forums.realmacsoftware.com/u/Kevin_Atkins)\
**Post date:** [July 27, 2016, 10:46am UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770/5 "2016-07-27T10:46:11Z")

</div>

I’ll take a look. The project has evolved over a few years, so I’ll see if a virgin project does the same and post back.

---

<div class="post-metadata">

**Author:** ![Kevin\_Atkins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kevin_atkins/32/14438_2.png) [@Kevin\_Atkins](https://forums.realmacsoftware.com/u/Kevin_Atkins)\
**Post date:** [July 27, 2016, 10:53am UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770/6 "2016-07-27T10:53:00Z")

</div>

Didn’t take long after all: email a single-page sample of the project.

Fingers crossed.

---

<div class="post-metadata">

**Author:** ![simon](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/simon/32/12609_2.png) [@simon](https://forums.realmacsoftware.com/u/simon)\
**Post date:** [July 27, 2016, 1:51pm UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770/7 "2016-07-27T13:51:08Z")

</div>

For anyone else following along with this, it looks like there’s an issue with RapidWeaver’s minifier when you spread `@media` queries across multiple lines.

So if you’re doing this:

```auto
@media screen 
and (min-device-width: 400px){

```

Remove the line break:

```auto
@media screen and (min-device-width: 400px){

```

We’ll try and get it fixed up for the next release of RapidWeaver. Thanks for helping diagnose the issue, @Kevin_Atkins 🙂

---

<div class="post-metadata">

**Author:** ![Kevin\_Atkins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kevin_atkins/32/14438_2.png) [@Kevin\_Atkins](https://forums.realmacsoftware.com/u/Kevin_Atkins)\
**Post date:** [July 27, 2016, 2:20pm UTC](https://forums.realmacsoftware.com/t/global-css-breaks-when-using-minify/8770/8 "2016-07-27T14:20:05Z")

</div>

Cool: thanks for your help Simon: so simple yet I was at a complete loss!

I’ve fixed this, and all seems fine now. Hope you can figure an easy fix.

Thanks again for your help.
