Skip to content

Instantly share code, notes, and snippets.

View czajkovsky's full-sized avatar

Mateusz Czajka czajkovsky

  • Netguru
  • Poznań
View GitHub Profile
#config/routes.rb
Aaewebinar::Application.routes.draw do
root to: 'application#index'
mount InternalApi::Engine, at: :internal_api #<- this line right here!
end
@czajkovsky
czajkovsky / SassMeister-input-HTML.haml
Created July 31, 2014 08:58
Generated by SassMeister.com.
.circle
.rounded
.rounded--custom
.rounded--fancy
@czajkovsky
czajkovsky / SassMeister-input-HTML.haml
Created July 31, 2014 09:07
Generated by SassMeister.com.
.circle
.rounded
.rounded--custom
.rounded--fancy
.foo {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.foo {
@include box-sizing(border-box);
}
@mixin foo($bar) {
@include prefixer(foo, $bar, webkit moz spec);
}
border-top-color: #f00;
border-bottom-color: #0f0;
border-left-color: #00f;
@include directional-property(border, color, #f00 null #0f0 #00f);
@mixin size($args) {
@if length($args) == 2 {
width: nth($args, 1);
height: nth($args, 2);
}
@else {
width: $args;
height: $args;
}
}
@mixin circle($size) {
@include size($size);
border-radius: 50%;
}
@mixin rounded-box($size, $corners) {
@include size($size);
@include inline-border-radius($corners);
}