
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Patterns are chunks of styles that we use on every project. These chunks of styles generally perform a particular function, such as clearing floats. Having to write these styles each time is annoying and the function of these chunks of code in our stylesheets is obscure.
By breaking these patterns into reusable classes and mixins we:
Install the Rubygem.
gem install compass-stitch
Now create your bare project that includes compass-stitch:
compass create my-project --bare -r compass-stitch
Install the project template:
compass install stitch/project
To add Stitch patterns to a current project, add this to the top of your stylesheets
@import 'stitch/patterns';
And in your Compass config.rb file add
require 'compass-stitch'
To use the project template layout, run
compass install stitch/project
and the project template will be installed into your current directory
See all of the patterns available
By using @import 'stitch/patterns'; you will have access to all of the pattern mixins.
Stitch includes a CSS reset. This is a new reset I'm working on. It resets everything back to it's raw text form so that it's easy to build from.
To manually import the Stitch reset.
@import 'stitch/reset/desktop';
If you're using the Stitch project template, this will be included for you.
Stitch only includes a desktop reset for now.
This project folder sets up the conventions for laying out your stylesheets. It is built around the idea that a single site may have many layouts and we'll use media queries to select which layout to use.
However, we don't want to ALWAYS use media queries, so we still have the option to import the layouts statically.
There are two files, master.scss and legacy.scss. Master imports the layouts based on media queries:
// Default Layout
@import "layouts/desktop/master.css" screen and (min-width: 481px);
// Adjusted default layout for smaller tablet screens
@import "layouts/tablet/master.css" screen and (min-width: 481px) and (max-width: 1024px);
// Adjusted layout for mobile devices
@import "layouts/mobile/master.css" screen and (max-width: 480px);
Whereas the legacy file will import files statically and without media queries. This means we can send the legacy file to browsers that don't support media queries, and we can send the master file to browsers that do.
FAQs
Unknown package
We found that compass-stitch 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 new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.