1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-25 07:01:11 +02:00

feat(buttons.scss): add input-file feature

close #245
This commit is contained in:
BcRikko
2019-10-17 17:41:21 +09:00
parent e323e22ee6
commit 2f58b5e81f
2 changed files with 13 additions and 2 deletions

View File

@@ -17,7 +17,12 @@ const sampleCollection = [
<button type="button" class="nes-btn is-success">Success</button>
<button type="button" class="nes-btn is-warning">Warning</button>
<button type="button" class="nes-btn is-error">Error</button>
<button type="button" class="nes-btn is-disabled">Disabled</button>`,
<button type="button" class="nes-btn is-disabled">Disabled</button>
<label class="nes-btn">
<span>Select your file</span>
<input type="file">
</label>`,
},
{
title: 'radios',
@@ -362,7 +367,7 @@ const sampleCollection = [
showCode: false,
code: `<p class="nes-balloon from-left nes-pointer">
This is not a clickable element, but it's an area of the pointer.
</p>`
</p>`,
},
{
title: 'badges',

View File

@@ -78,4 +78,10 @@
@include btn-style(nth($type, 2), nth($type, 3), nth($type, 4), nth($type, 5));
}
}
input[type="file"] {
position: absolute;
pointer-events: none;
opacity: 0;
}
}