
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
A CSS framework for building landing pages that lets you focus on writing content, not code!
Newly released full documentation: BOXES.CSS DOCUMENTATION
I want to launch new projects every week or two, but I need to:
🥱
Boxes.css lets me just focus on the first two steps
✅
And takes care of the rest:
It's all you need to design a beautiful landing page!
minified version
<link rel="stylesheet" type="text/css" href="https://unpkg.com/browse/boxes-css@0.5.0/boxes.min.css">
unminified version
<link rel="stylesheet" type="text/css" href="https://unpkg.com/browse/boxes-css@0.5.0/boxes.css">
always use section
elements to define boxes
Use class .media
when wanting to include an image, animation, or video on the page
img
, svg
, or video
elementUse class .content
when wanting to include headings, text, or form controls on the page
h1-h6
, p
, div
, form
, input
, button
, a
a box is a section of content (text or media) that can appear next to other sections of content
it's always responsive by default and maintains its aspect ratio where it makes sense (esp. .media
boxes)
the goal of a box is that you define how it looks on one screen size (e.g. desktop) and it automatically will adapt to look good on every other screen size (e.g. tablet & mobile)
use classes .h1
, .h2
, etc. to determine size
In order to save room, while also being accessible, boxes.css has the concept of an input that contains its own label
When the input is clicked, its label floats slightly above it so the user can type.
Example:
Syntax:
<fieldset>
<input id="email" type="email" name="email" placeholder="Enter your email address">
<label for="email">Enter your email address</label>
</fieldset>
always create media that has a 5:4 ration (width:height)
this will ensure that part of your media is never cut off on any screen size and will always look the same no matter what size device the user is viewing your website on
tip: since wide content works better on desktop and tablet and tall content works better on mobile, you may want to consider making one pieces of media in both formats (wide and tall) and only show the wide version on tablet and desktop and the tall one on mobile
viewBox
attribute.media
boxFAQs
A CSS framework for building landing pages that lets you focus on writing content, not code!
The npm package boxes-css receives a total of 3 weekly downloads. As such, boxes-css popularity was classified as not popular.
We found that boxes-css 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.