Skip to content

Instantly share code, notes, and snippets.

View gotbahn's full-sized avatar
🐙

Bogdan Plieshka gotbahn

🐙
View GitHub Profile
@gotbahn
gotbahn / deployer_and_import_fix.patch
Created September 19, 2015 07:12
Magento 2 Beta deployer & symlinks fix
Index: magento2ce/lib/internal/Magento/Framework/Less/PreProcessor/Instruction/Import.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- magento2ce/lib/internal/Magento/Framework/Less/PreProcessor/Instruction/Import.php (revision )
+++ magento2ce/lib/internal/Magento/Framework/Less/PreProcessor/Instruction/Import.php (revision )
@@ -51,7 +51,12 @@
return $this->replace($matchContent, $asset);
};
@gotbahn
gotbahn / CHMQ-0.0.less
Last active August 23, 2016 16:26
Combine & handle Media Queries in LESS
@break-small: 768px;
@break-large: 1024px;
.foo {
color: red;
@media only screen and (min-width: @break-small) {
color: green;
}
@media only screen and (min-width: @break-large) {
color: blue;
@gotbahn
gotbahn / CHMQ-0.0.css
Last active August 23, 2016 20:53
Combine & handle Media Queries in Less
.foo {
color: red;
}
@media only screen and (min-width: 768px) {
.foo {
color: green;
}
}
@gotbahn
gotbahn / CHMQ-0.1.less
Last active August 23, 2016 20:54
Combine & handle Media Queries in Less
.mixin-color (@property) {
color: @property;
}
@gotbahn
gotbahn / CHMQ-0.2.less
Last active August 23, 2016 20:54
Combine & handle Media Queries in Less
.foo {
.mixin-color(red);
}
.bar {
.mixin-color(green);
}
@gotbahn
gotbahn / CHMQ-0.2.css
Last active August 23, 2016 20:54
Combine & handle Media Queries in Less
.foo {
color: red;
}
.bar {
color: green;
}
@gotbahn
gotbahn / CHMQ-0.3.less
Last active August 23, 2016 20:54
Combine & handle Media Queries in Less
.mixin-color();
.mixin-color () {
.foo {
color: red;
}
}
.mixin-color () {
.bar {
@gotbahn
gotbahn / CHMQ-0.4.less
Last active August 23, 2016 20:54
Combine & handle Media Queries in Less
@break-small: 768px;
@break-large: 1024px;
.foo {
color: red;
}
.media-mixin(@break) when (@break = @break-small) {
.foo {
color: green;
@gotbahn
gotbahn / CHMQ-0.4.css
Last active August 23, 2016 20:55
Combine & handle Media Queries in Less
.foo {
color: red;
}
@media all and (min-width: 768px) {
.foo {
color: green;
}
}
@gotbahn
gotbahn / CHMQ-0.5.less
Last active August 23, 2016 20:55
Combine & handle Media Queries in Less
@break-small: 768px;
@break-large: 1024px;
.foo {
color: red;
}
.bar {
color: red;
}