mirror of
https://github.com/chinchang/web-maker.git
synced 2025-05-19 00:29:58 +02:00
add check when acss is tried to open in codepen and add missing lib :P. fixes #100
This commit is contained in:
parent
35feba9692
commit
5644b0c9c0
@ -11,7 +11,7 @@
|
||||
}
|
||||
}
|
||||
function init() {
|
||||
var dropdowns = [].slice.call($all('[dropdown]'));
|
||||
var dropdowns = $all('[dropdown]');
|
||||
dropdowns.forEach(function (dropdown) {
|
||||
dropdown.addEventListener('click', function (e) {
|
||||
closeOpenDropdown(e.currentTarget);
|
||||
|
18997
src/lib/atomizer.browser.js
Normal file
18997
src/lib/atomizer.browser.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -1344,6 +1344,10 @@ runBtn, searchInput
|
||||
});
|
||||
|
||||
codepenBtn.addEventListener('click', function (e) {
|
||||
if (cssMode === CssModes.ACSS) {
|
||||
alert('Oops! CodePen doesn\'t supports Atomic CSS currently.');
|
||||
return;
|
||||
}
|
||||
var json = {
|
||||
title: 'A Web Maker experiment',
|
||||
html: scope.cm.html.getValue(),
|
||||
|
@ -657,7 +657,7 @@ li.CodeMirror-hint-active {
|
||||
}
|
||||
.dropdown__menu > li > a {
|
||||
display: block;
|
||||
padding: 10px 15px;
|
||||
padding: 6px 15px;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user