Skip to content

Instantly share code, notes, and snippets.

simurai simurai

Block or report user

Report or block simurai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

CSS Wishlist

Pseudo elements

  • Allow them to be animated (already works in Firefox, soon also in WebKit).
  • Allow more than 2 pseudo elements. Maybe we don't need it if Web Components will come.

Pseudo selectors

  • Once an element has display: none, it shouldn’t affect first/last-child and other pseudo selectors. Or maybe it makes sense to add something like display: removed. It would behave like when that element is removed from the DOM aka make pseudo selectors ignore them. Use case: When you temporarly wanna remove items in a list, see demo, but keep the design intact.


simurai /
Last active Nov 28, 2019
Atom for minimalists

For minimalist ❤️ ers


Just you, your code and nothing else.... :meditatingbuddha:

simurai / dropdown.scss
Last active Sep 6, 2019
Move dropdown to Primer CSS
View dropdown.scss
.dropdown {
position: relative;
&.active {
.dropdown-menu-content {
display: block;
pointer-events: all;
simurai /
Created Mar 12, 2013
Once in a while I get an email asking how the get started designing for the Web. So here a very quick draft from the top of my head.

How to get started with Web Design?

A site that I like to point people to is It has great videos to learn the basics.

There are lots of people that blog interesting stuff, but it's kinda hard to name just a few. Sooner or later you'll find them by Googling or on Twitter.

I'm not really into reading books and rather learn by just experimenting. Maybe tools like or let you play around and see the result instantly updated.

There are also some online learning services like or that teaches more in an interactive way.

View css-properties.css
* CSS Properties
.properties {
align-content: value;
align-items: value;
align-self: value;
simurai / toolbar.json
Created Sep 13, 2015
My flex-tool-bar config file
View toolbar.json
"tooltip": "Github",
"icon": "octoface",
"url": "",
"type": "url"
{ "type": "spacer" },
simurai / Overlay Grid
Created Feb 26, 2011
A flexible grid overlay to test your site's alignment.
View Overlay Grid
/* Grid */
html:before, html:after {
content: "";
position: absolute;
top: 0;
right: 0;
pointer-events: none;
/* change to px if you get a scrollbar */
simurai / .hyperterm.js
Created Jul 18, 2016
This adds a 2px outer border to HyperTerm.
View .hyperterm.js
// custom css to embed in the main window
// 2px outer border
css: '.hyperterm_main {border-width: 2px;} .header_header {top: 2px; left: 2px; right: 2px;}',
You can’t perform that action at this time.