0

I'm running a site using Drupal 7.32 on Apache 2.4.10 (Debian). I have a peculiar situation where if I write some text on some page and upload some document to be linked by text, everything goes fine; when I change some text or add some new links in the main menu, or also add breadcrumbs for new links, specific changes revert in specific CSS files occurs. (It is always the same file, always an width:100% !important for an image.) It changes the image width for worse and it happens only in specific images which are not uploaded to the site from an image field in page, but it is referenced in a <img> src property.

What I mean is that it reverts changes putting back !important in that CSS file. I then have to ask for system administrator permission to edit the file. This !important property wasn't the website (theme746) default property. I added it some time ago, removed it, and saved it.

Can anyone guess what is happening here?

The filename is /var/www/drupal7/drupal-7.22/sites/default/files/css/css_3oupGc-SqTfqJMhaL8ysLI0W-0qdaibrN0Qyd-z2H9Q.css, whose partial content is the following one. (Don't get confused from the drupal-7.22 part in the path; that is not the Drupal version currently used from the site.)

property: #main img,.region-content-bottom img {
  width: 100% !important;
  height: auto;
  box-sizing: border-box;
  border: 1px solid #fff;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  // Omissis
}

closed as too broad by kiamlaluno Apr 23 '18 at 9:41

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to Drupal Answers! With the few details given in the question, telling why it is happening would be guessing, as you said. Unfortunately, Drupal Answers is for answering objective, not too broad, questions with a definitive answer. We cannot list all the possible causes hoping to guess what exactly is happening in your case. As it is, the question is equivalent to It's 11:44 AM for me. Can you guess in which country I am? – kiamlaluno Apr 23 '18 at 9:45
2

The sites/default/files/css folder is used by Drupal to automatically create aggregated style files from your theme and/or modules each time the Drupal caches are flushed.

So what you have to do, is finding that style within your theme's and/or module CSS file(s) and change it there.

A side-note: You should update the Drupal core ASAP to the most recent version, in order to close a serious security vulnerability of your site.

0

First disable Aggregate and compress CSS files from admin section.Here you can find your setting of Aggregation.

www.yoursite.com/admin/config/development/performance

Not the answer you're looking for? Browse other questions tagged or ask your own question.