fix styling on disabled buttons
This commit is contained in:
parent
7191b4df96
commit
43cffcd54c
|
@ -9,8 +9,8 @@
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<label>
|
<label>
|
||||||
<span class="fake_button" id="file_input_message">Select files to upload...</span>
|
|
||||||
<input type="file" multiple id="file_input"/>
|
<input type="file" multiple id="file_input"/>
|
||||||
|
<span class="fake_button" id="file_input_message">Select files to upload...</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<button id="upload" disabled>Upload</button>
|
<button id="upload" disabled>Upload</button>
|
||||||
|
|
|
@ -17,8 +17,9 @@ button:hover, .fake_button:hover {
|
||||||
background-color: #aaa;
|
background-color: #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:disabled, button:disabled:hover, .fake_button:disabled, .fake_button:disabled:hover {
|
button:disabled, input:disabled + .fake_button {
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
border-color: #ddd;
|
border-color: #ddd;
|
||||||
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue