4

I want to clean out everything between @media and }. Only after research I still cannot find how. I want to replace everything between the BOLD text below, including the BOLD text itself:

@media all and (max-width: 240px)

{
  #toast-container>div
  {
    padding: 8px 8px 8px 50px;
    width: 11em;
  }

  #toast-container .toast-close-button
  {
    right: -.2em;
    top: -.2em;
  };
}

@media (min-width: 768px)
{
  .lead
  {
    font-size: 19.5px;
  };
}

RESULT 1: @media }

RESULT 2: nothing

1 Answer 1

2

In Replace Dialog(Ctrl+H), enable Regular Expression and . matches newline

Then, search for:

@media.*?\};.*?\}

or

@media.*?(\};)\s*?\}

And replace for empty string... (this will remove all - including bold text)

Let me know if it works.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.