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
/***************************************************************** | |
* onMessage from the extension or tab (a content script) | |
*****************************************************************/ | |
chrome.runtime.onMessage.addListener( | |
function(request, sender, sendResponse) { | |
if (request.cmd == "any command") { | |
sendResponse({ result: "any response from background" }); | |
} else { | |
sendResponse({ result: "error", message: `Invalid 'cmd'` }); | |
} |
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 flex-items($number) { | |
@for $i from 1 through $number{ | |
.flex-#{$i}{ | |
flex: #{$i} 1 1%; | |
} | |
} | |
} | |
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 field-width($number, $side-padd) { | |
@for $i from 1 through $number{ | |
.field-width-#{$i}.form-group .form-control, .field-width-#{$i}[class*="mx-name-textBox"] .form-control{ | |
width: calc( #{$i} * 1em + #{$side-padd}); | |
} | |
} | |
} | |
// Add this line in the inputs partial |