1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-10 16:46:28 +02:00

add check when acss is tried to open in codepen and add missing lib :P. fixes #100

This commit is contained in:
Kushagra Gour
2017-04-30 20:45:02 +05:30
parent 35feba9692
commit 5644b0c9c0
4 changed files with 19003 additions and 2 deletions

View File

@ -11,7 +11,7 @@
} }
} }
function init() { function init() {
var dropdowns = [].slice.call($all('[dropdown]')); var dropdowns = $all('[dropdown]');
dropdowns.forEach(function (dropdown) { dropdowns.forEach(function (dropdown) {
dropdown.addEventListener('click', function (e) { dropdown.addEventListener('click', function (e) {
closeOpenDropdown(e.currentTarget); closeOpenDropdown(e.currentTarget);

18997
src/lib/atomizer.browser.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1344,6 +1344,10 @@ runBtn, searchInput
}); });
codepenBtn.addEventListener('click', function (e) { codepenBtn.addEventListener('click', function (e) {
if (cssMode === CssModes.ACSS) {
alert('Oops! CodePen doesn\'t supports Atomic CSS currently.');
return;
}
var json = { var json = {
title: 'A Web Maker experiment', title: 'A Web Maker experiment',
html: scope.cm.html.getValue(), html: scope.cm.html.getValue(),

View File

@ -657,7 +657,7 @@ li.CodeMirror-hint-active {
} }
.dropdown__menu > li > a { .dropdown__menu > li > a {
display: block; display: block;
padding: 10px 15px; padding: 6px 15px;
color: #333; color: #333;
cursor: pointer; cursor: pointer;
} }