This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Code | |
Exec=code %U | |
Terminal=false | |
Icon=code | |
Type=Application | |
StartupNotify=true | |
Categories=TextEditor;Development;Utility; | |
MimeType=text/plain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin noSelection { | |
-moz-user-select: none; | |
-khtml-user-select: none; | |
-webkit-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($modx->context->get('key') != "mgr"){ | |
switch ($modx->context->get('key')) { | |
case 'web': | |
//Condition | |
break; | |
//More Contexts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$chunks = $modx->getCollection('modChunk'); | |
$snippets = $modx->getCollection('modSnippet'); | |
foreach ($chunks as $chunk) { | |
$content = $chunk->getContent(); | |
$category = "SELECT category FROM `modx_categories` WHERE id = " . $chunk->get('category') . ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin image($name, $x, $y, $repeat, $fallback: "") { | |
@if $fallback == "fallback" { | |
background: url(#{$imgFallback}/#{$name}.png) $x $y $repeat; | |
background: rgba(0, 0, 0, 0) url(#{$img}/#{$name}.svg) $x $y $repeat; | |
} | |
@else { | |
background: url(#{$img}/#{$name}.png) $x $y $repeat; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin abs-pos($coordinates: 0 0 0 0) { | |
$top: nth($coordinates, 1); | |
$right: nth($coordinates, 2); | |
$bottom: nth($coordinates, 3); | |
$left: nth($coordinates, 4); | |
@if not(unitless($top)) { | |
top: $top; | |
} | |
@if not(unitless($right)) { |