mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-11 08:53:59 +02:00
Merge pull request #372 from nostalgic-css/input-file
Add input-file feature
This commit is contained in:
@@ -17,7 +17,12 @@ const sampleCollection = [
|
|||||||
<button type="button" class="nes-btn is-success">Success</button>
|
<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-warning">Warning</button>
|
||||||
<button type="button" class="nes-btn is-error">Error</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',
|
title: 'radios',
|
||||||
@@ -362,7 +367,7 @@ const sampleCollection = [
|
|||||||
showCode: false,
|
showCode: false,
|
||||||
code: `<p class="nes-balloon from-left nes-pointer">
|
code: `<p class="nes-balloon from-left nes-pointer">
|
||||||
This is not a clickable element, but it's an area of the pointer.
|
This is not a clickable element, but it's an area of the pointer.
|
||||||
</p>`
|
</p>`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'badges',
|
title: 'badges',
|
||||||
|
@@ -78,4 +78,10 @@
|
|||||||
@include btn-style(nth($type, 2), nth($type, 3), nth($type, 4), nth($type, 5));
|
@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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user