Make addRequest box resize nicely
parent
19f51d3a5a
commit
603769d5fd
|
@ -101,7 +101,9 @@ div#nav-userpic {
|
|||
#addRequestModal {
|
||||
position: relative;
|
||||
padding: 1em;
|
||||
display: inline-block;
|
||||
margin: 2em;
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
background-color: #444;
|
||||
box-shadow: 0px 5px 20px black;
|
||||
}
|
||||
|
@ -110,6 +112,17 @@ div#nav-userpic {
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
#addRequestInputContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#addRequestInputContainer input {
|
||||
flex: 1;
|
||||
max-width: 330px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
#addRequestModalClose {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
|
@ -34,8 +34,10 @@
|
|||
<div id="addRequestModal">
|
||||
<div id="addRequestModalClose"><a href="#" onclick="closeAddRequestModal()">×</a></div>
|
||||
<h1>Add Request</h1>
|
||||
URL: <input id="addRequestUrl"></input>
|
||||
<button onclick="validateAndSubmitRequest()">Request</button><br>
|
||||
<span id="addRequestInputContainer">
|
||||
URL: <input id="addRequestUrl" placeholder="https://www.youtube.com/watch?v=dQw4w9WgXcQ"></input>
|
||||
<button onclick="validateAndSubmitRequest()">Request</button><br>
|
||||
</span>
|
||||
Currently, only Youtube links are accepted.
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue