Skip to content

Instantly share code, notes, and snippets.

View hudochenkov's full-sized avatar

Aleks Hudochenkov hudochenkov

View GitHub Profile
@hudochenkov
hudochenkov / input.scss
Created May 18, 2022 08:00
Generated by SassMeister.com.
// This is in custom theme
$colorMain: red;
// $colorSec: blue;
// $colorSec: $colorMain;
// This in default theme
$colorMain: #0af !default; // Allow to override color from other theme
$colorMain: var(--user-brandPrimary500, $colorMain);
{"name": "sort-error", "version": "0.0.0", "bin": "./sort.js"}
{
"order": [
"dollar-variables",
"at-rules",
"declarations",
{
"type": "at-rule",
"name": "keyframes"
},
{
@hudochenkov
hudochenkov / csscomb.json
Created January 12, 2017 09:14
PostCSS Sorting predefined configs migrated to 2.0
{
"properties-order": [
{
"emptyLineBefore": true,
"properties": [
"font",
"font-family",
"font-size",
"font-weight",
"font-style",
class DropdownContainer extends Component {
constructor(...args) {
super(...args);
this.state = {
visible: false
};
}
handleToggle = (e) => {
$ npm run start
> @ start /Users/aleks/GitHub/postcss.org
> babel-node scripts/build --server --dev --open
[12:51:31 PM] [statinamic/lib/builder] {
[12:51:31 PM] [statinamic/lib/builder] "dev": true,
[12:51:31 PM] [statinamic/lib/builder] "prod": false,
[12:51:31 PM] [statinamic/lib/builder] "static": false,
[12:51:31 PM] [statinamic/lib/builder] "server": true,
@hudochenkov
hudochenkov / SassMeister-input.scss
Created June 15, 2015 12:59
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin icon($width, $height: $width, $center: false) {
width: $width;
height: $height;
@if $center {
margin-top: - floor($height / 2);
margin-left: - floor($width / 2);
@hudochenkov
hudochenkov / SassMeister-input.scss
Created May 18, 2015 16:56
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
.block {
&--mod1 { color: red; }
&--mod2 { display: block; }
@at-root #{& + --mod1 + & + --mod2} { color: green; }
}
import sublime
import sublime_plugin
import re
import os
from html.parser import HTMLParser
class EcsstractorCommand(sublime_plugin.WindowCommand):
def run(self):
view = self.window.active_view()