<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://esolitos.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>esolitos.com - drupal</title>
 <link>https://esolitos.com/tags/drupal</link>
 <description></description>
 <language>en</language>
<item>
 <title>div.panel-pane div.node</title>
 <link>https://esolitos.com/items/2015/07/divpanel-pane-divnode</link>
 <description>&lt;div class=&quot;field field-name-field-byline field-type-entityreference field-label-hidden&quot;&gt;
      &lt;div  class=&quot;ds-1col node node-profile view-mode-byline clearfix&quot;&gt;

  
  &lt;div class=&quot;field field-name-field-photo field-type-image field-label-hidden&quot;&gt;
    
      &lt;a href=&quot;/profile/esolitos-marlon&quot;&gt;&lt;img src=&quot;https://esolitos.com/sites/default/files/styles/byline/public/field/image/screen_shot_2015-05-08_at_20.22.00.png?itok=cCjKAYpk&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/a&gt;    
&lt;/div&gt;
&lt;div class=&quot;field field-name-title field-type-ds field-label-hidden&quot;&gt;
    
      &lt;strong class=&quot;profile-name&quot;&gt;&lt;a href=&quot;/profile/esolitos-marlon&quot;&gt;Esolitos Marlon&lt;/a&gt;&lt;/strong&gt;    
&lt;/div&gt;
&lt;div class=&quot;field field-name-field-profession field-type-text field-label-hidden&quot;&gt;
    
      Web Developer and Duck Slayer    
&lt;/div&gt;
&lt;/div&gt;

  &lt;/div&gt;
&lt;div class=&quot;field field-name-post-date field-type-ds field-label-hidden&quot;&gt;
    
      Monday, 27 July, 2015 - 10:27    
&lt;/div&gt;
&lt;div class=&quot;field field-name-field-image field-type-image field-label-hidden&quot;&gt;
    
      &lt;img src=&quot;https://esolitos.com/sites/default/files/styles/large/public/field/image/panels_css.jpg?itok=gt_S5UXx&quot; width=&quot;480&quot; height=&quot;231&quot; alt=&quot;Extract from panel.css&quot; /&gt;    
&lt;/div&gt;
&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;
    
      &lt;p&gt;Today while I was working on a Drupal-based website I stumbled, as many other times, on the annoyance of &lt;code&gt;panels.css&lt;/code&gt; that resets the margin and the padding of nodes when those are placed (anywhere) inside a panel, which as you can imagine happens quite a lot of times.&lt;br /&gt;
Until today I have always simply added a &lt;code&gt;div.node&lt;/code&gt; to the css selector to override this in my themes, but not today!&lt;/p&gt;
&lt;h3&gt;Today I finally said no to the tyranny of Panels!&lt;/h3&gt;
&lt;p&gt;The solution was very easy, the only thing that kept me from solving the issue was actually just my laziness: it was simply faster* to add a more specific selector in the css.&lt;br /&gt;
Now the solution add this to your &lt;code&gt;theme_name.info&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
​stylesheets[all][] = css/panels.css
&lt;/pre&gt;&lt;p&gt;and then create an empty &lt;code&gt;panels.css&lt;/code&gt; file into your theme css directory!&lt;/p&gt;
&lt;p&gt;I know, it&#039;s easy, and i know you loose all the extremely useful 51 lines of css that are provided by the default css file that is provided with the module, but let&#039;s face it it&#039;s not like there&#039;s something very useful in there, you can &lt;a href=&quot;/sites/all/modules/contrib/panels/css/panels.css&quot; target=&quot;_blank&quot;&gt;take a look at it&lt;/a&gt; yourself if you&#039;re interested.&lt;/p&gt;
&lt;p&gt;I hope this was useful to someone that has been struglging to get rid of this boring rule, don&#039;t be lazy like me: be smart and get rid of it as soon as you start theming!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;EDIT&lt;/em&gt;: as a colleague of mine suggested, if you want to have a good time you can read through the comments in the &lt;a href=&quot;https://www.drupal.org/node/232608&quot; target=&quot;_blank&quot;&gt;Issue &lt;code&gt;#232608&lt;/code&gt; on Panels project d.o&lt;/a&gt;&lt;a&gt;&lt;/a&gt; regarding this &quot;non-bug&quot;.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;* = This is actually not true, since you have to repeat every time you want to apply some margin/padding to a node inside a panel.&lt;/p&gt;
    
&lt;/div&gt;
&lt;div class=&quot;field field-name-field-tags field-type-taxonomy-term-reference field-label-inline clearfix&quot;&gt;
  &lt;div class=&quot;field-label&quot;&gt;Tags:&amp;nbsp;&lt;/div&gt;

  &lt;ul class=&quot;inline-list&quot;&gt;
          &lt;li&gt;&lt;a href=&quot;/tags/drupal&quot;&gt;drupal&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;/tags/css&quot;&gt;css&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;/tags/panels&quot;&gt;panels&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;/tags/workaround&quot;&gt;workaround&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
&lt;/div&gt;
</description>
 <pubDate>Mon, 27 Jul 2015 08:27:43 +0000</pubDate>
 <dc:creator>esolitos</dc:creator>
 <guid isPermaLink="false">7 at https://esolitos.com</guid>
</item>
</channel>
</rss>
