Skip to content

Instantly share code, notes, and snippets.

@goellner
goellner / _debug.scss
Created September 19, 2018 08:02
gridle.org - grid system | debug grid overlay
// DEBUG
.grid {
position: fixed;
width: 100%;
top: 0;
left: 0;
pointer-events: none;
z-index: 100000;
display: block;
<?php
namespace Statamic\Addons\AssetsOrganized;
use Statamic\Addons\Assets\AssetsFieldtype;
use Statamic\Extend\Fieldtype;
use Statamic\API\Helper;
use Statamic\API\Asset;
use Statamic\API\AssetContainer;
use Statamic\API\Folder;
<?php
namespace Statamic\Addons\AssetsOrganized;
use Statamic\Addons\Assets\AssetsFieldtype;
use Statamic\API\Helper;
class AssetsOrganizedFieldtype extends AssetsFieldtype
{
public $category = ['media', 'relationship'];
<?php
namespace Statamic\Addons\Instagram;
use Statamic\Extend\Controller;
use Statamic\API\Entry;
use Statamic\API\Parse;
use Statamic\API\File;
class InstagramController extends Controller
@goellner
goellner / PageContentController.php
Created January 13, 2018 17:55
Statamic PageContent Plugin
<?php
namespace Statamic\Addons\PageContent;
use Statamic\Extend\Controller;
use Statamic\API\Page;
class PageContentController extends Controller
{
/**
<div class="container">
<div class="row">
<div class="gr-8">
foo
</div>
<div class="gr-8">
foo
</div>
<div class="gr-8">
foo
// import gridle
@import "../../bower_components/gridle/sass/gridle/gridle";
// setting up the grid
$settings : (
context : 24, // number of columns in your grid
column-width : null, // by default it's percentage based depending on the context but you can specify a column width yourself
gutter-width : 20px, // size of the gutters
gutter-height : 0, // size of top and bottom gutters
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->