Advertise with Googlier.com theming http://www.bluedropshop.com/tags/theming en The Holy Grail of Logo Sizing http://www.bluedropshop.com/the-holy-grail-of-logo-sizing <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">The Holy Grail of Logo Sizing</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="http://www.bluedropshop.com/user/8" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">kthull</span></span> <span property="schema:dateCreated" content="2018-08-29T22:39:05+00:00" class="field field--name-created field--type-created field--label-hidden">Wed, 08/29/2018 - 17:39</span> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>So many times, I see sites with a responsive grid of logos that only rely on width as the limiter. When doing so, square or vertical logos appear disproportionately large compared to their horizontal counterparts. </p> <p><strong>Exhibit A (BADCamp 2018’s sponsor footer) </strong><br /> <img alt="Square logos appear much larger than their horizontal neighbors" data-entity-type="file" data-entity-uuid="80595639-361b-467a-bfe2-c2fd01e7b1ce" src="http://www.bluedropshop.com/sites/default/files/inline-images/Screen%20Shot%202018-08-29%20at%205.17.11%20PM.png" /></p> <p>The fix took me a long time to find, but I have it in my toolkit and use it on all my projects. But after seeing yet another camp site with crazy logo sizing, I realized sharing this snippet was long overdue (<a href="https://github.com/badcamp/badcamp-2018/pull/170">as well as a pull request to the BADCamp repo</a>).</p> <p>The parent element (usually the <a> tag) needs this code:</p> <p><code>display: block;<br /> width: 100%;<br /> position: relative;<br /> height: 0;<br /> padding: 56.25% 0 0 0; // this assumes a 16:9 aspect ratio<br /> overflow: hidden;</code></p> <p>And the child image needs this code:</p></div> Wed, 29 Aug 2018 22:39:05 +0000 kthull 13 at http://www.bluedropshop.com Adding Your Theme Classes to CKEditor http://www.bluedropshop.com/blog/adding-your-theme-classes-ckeditor <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Adding Your Theme Classes to CKEditor</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="http://www.bluedropshop.com/user/8" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">kthull</span></span> <span property="schema:dateCreated" content="2014-10-03T21:08:48+00:00" class="field field--name-created field--type-created field--label-hidden">Fri, 10/03/2014 - 16:08</span> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>WYSIWYG editors are the bane of my existence, yet they are a necessary evil if you have clients that want to edit their site content.</p> <p>But somewhere between all the inline styles they create to editing source code, there simply had to be a solution that would let me open up my theme css to content creators. </p> <p>After much searching and testing, I have found that unicorn. </p> <p>CKEditor populates the style drop down menu with a js file, and it lets you override it. Problem is, as stated in the docs, it doesn't work. And there were a few various options posted in the CKEditor module issue queue. </p> <p>First off, you create a new js file to name a function that will build the drop down select items and the parameters for each. Contrary to what has been suggested in various posts, I put this in my theme's js folder. That way it won't get overridden by a module or library update, and it just makes sense since it's tied to my theme. Only CKEditor will be looking for this file, so there's no need to call it in your template files nor add it to your .info file. </p> <p>For example, I created a file named ckeditor_styles.js like so:<br />  </p></div> Fri, 03 Oct 2014 21:08:48 +0000 kthull 3 at http://www.bluedropshop.com