
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Early alpha version. Internet Explorer not finished yet.
A Compass plugin for all those who love typography. RedGreenGrid provides a cross browser baseline grid for Helvetica, Arial, Verdana and Lucida Grande. Other fonts can be easily added.
There are two grids:
Why two grids? The answer is easy: I wouldn’t look good with only one. With a red and a greed grid, it’s very easy to create well-balanced layouts from the scratch.
Add to your screen.sass:
// import basics
@import redgreengrid/redgreengrid.sass
// import font family for line height 20px
@import redgreengrid/fonts/20/helvetica.sass
p, li, td
+helvetica-light-13
h1
+verdana-36
// add styles to show the baseline grid
+rgg-development
Add to your layout/application.html.haml:
%body{ :class => browser_class }
= redgreengrid
Don’t add the fonts to the unless you want the whole document to be shifted.
// Don’t
body
+arial-13
// Do
p, ol.list li, td, .links a
+arial-13
Don’t set the font for elements with a background unless you want the background to be shifted.
// Don’t
<p class="highlight">abc</p>
p.highlight
:background red
+verdana-12
// Do
<p class="highlight"><span>abc</span></p>
p.highlight
:background red
span
+verdana-12
To make happy all of you who hate * or _ hacks, to get standards compliant CSS files and to avoid separate IE files (we would need separate Safari, Firefox and Opera files) browser fixes are made with a browser super class:
.webkit h1
:fixes
.gecko p, .presto p
:fixes
.trident h2
:fixes
This browser superclass should be placed in the <body>
tag.
RedGreenGrid provides a helper method browser_class
for this task.
The following classes will be created:
Each font size must be adjusted to the baseline on each browser.
I’ve did this by position: relative
.
There are two mix-ins which help you for this job:
+up(1px)
+down(2px)
If you want to fix a specific browser, there are mix-ins for each rendering engine:
+gecko(1px)
+presto(2px)
+trident(-1px)
+webkit(1px)
The default line height is 20px. If you want to change the font size or line height:
fonts/<line-height>/_<font-family>.sass
Do it the same way like new font sizes/line heights.
Feel free to make a pull request.
I love to hear from you. Just drop me a mail to nico .. hagenburger .. net. Follow me on Twitter.
Copyright (c) 2009 Nico Hagenburger http://www.hagenburger.net, released under the MIT license
FAQs
Unknown package
We found that redgreengrid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.