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:
@ -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
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) {
|
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(),
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user