Browse Source

Spruce up small inputs with submit buttons

spaghetti 8 years ago
parent
commit
77caf27a02

+ 4
- 4
sections/torrents/details.php View File

287
     <div class="box box_addartists">
287
     <div class="box box_addartists">
288
       <div class="head"><strong>Add artist</strong></div>
288
       <div class="head"><strong>Add artist</strong></div>
289
       <div class="body">
289
       <div class="body">
290
-        <form class="add_form" name="artists" action="torrents.php" method="post">
290
+        <form class="flex_input_container" name="artists" action="torrents.php" method="post">
291
           <input type="hidden" name="action" value="add_alias" />
291
           <input type="hidden" name="action" value="add_alias" />
292
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
292
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
293
           <input type="hidden" name="groupid" value="<?=$GroupID?>" />
293
           <input type="hidden" name="groupid" value="<?=$GroupID?>" />
294
-          <input type="text" id="artist" name="artistname[]" size="27"<? Users::has_autocomplete_enabled('other'); ?> />
294
+          <input type="text" id="artist" name="artistname[]" <? Users::has_autocomplete_enabled('other'); ?> />
295
           <input type="submit" value="Add" />
295
           <input type="submit" value="Add" />
296
         </form>
296
         </form>
297
       </div>
297
       </div>
360
     <div class="box box_addtag">
360
     <div class="box box_addtag">
361
       <div class="head"><strong>Add tag</strong></div>
361
       <div class="head"><strong>Add tag</strong></div>
362
       <div class="body">
362
       <div class="body">
363
-        <form class="add_form" name="tags" action="torrents.php" method="post">
363
+        <form class="flex_input_container" name="tags" action="torrents.php" method="post">
364
           <input type="hidden" name="action" value="add_tag" />
364
           <input type="hidden" name="action" value="add_tag" />
365
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
365
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
366
           <input type="hidden" name="groupid" value="<?=$GroupID?>" />
366
           <input type="hidden" name="groupid" value="<?=$GroupID?>" />
367
-          <input type="text" name="tagname" id="tagname" size="20"<? Users::has_autocomplete_enabled('other'); ?> />
367
+          <input type="text" name="tagname" id="tagname" <? Users::has_autocomplete_enabled('other'); ?> />
368
           <input type="submit" value="Add" />
368
           <input type="submit" value="Add" />
369
         </form>
369
         </form>
370
         <br />
370
         <br />

+ 11
- 8
sections/user/user.php View File

286
 <?
286
 <?
287
 }
287
 }
288
 if (!$OwnProfile && !$LoggedUser['DisablePoints']) { ?>
288
 if (!$OwnProfile && !$LoggedUser['DisablePoints']) { ?>
289
-    <div class='box point_gift_box'>
290
-    <div class='head colhead_dark'>Send <?=BONUS_POINTS?></div>
289
+    <div class="box point_gift_box">
290
+    <div class="head colhead_dark">Send <?=BONUS_POINTS?></div>
291
       <div class="pad">
291
       <div class="pad">
292
-        <form action='user.php' method='post'>
293
-          <input type='hidden' name='action' value='points' />
294
-          <input type='hidden' name='to' value='<?=$UserID?>' />
295
-          <input type='text' name='amount' placeholder='Amount' /><input type='submit' value='Send' /><br>
296
-          <textarea name='message' rows='2' placeholder='Message'></textarea><br>
297
-          <input type='checkbox' name='adjust' /> Adjust for tax?
292
+        <form action="user.php" method="post">
293
+          <input type="hidden" name="action" value="points">
294
+          <input type="hidden" name="to" value="<?=$UserID?>">
295
+          <div class="flex_input_container">
296
+            <input type="text" name="amount" placeholder="Amount">
297
+            <input type="submit" value="Send">
298
+          </div>
299
+          <textarea name="message" rows="2" placeholder="Message"></textarea>
300
+          <label><input type="checkbox" name="adjust"> Adjust for tax?</label>
298
         </form>
301
         </form>
299
         <p>Note: 10% of your gift is taken as tax.</p>
302
         <p>Note: 10% of your gift is taken as tax.</p>
300
       </div>
303
       </div>

+ 2
- 2
static/styles/global.css View File

11
   font-size: 110%;
11
   font-size: 110%;
12
 }
12
 }
13
 
13
 
14
-.sidebar .box .add_form {
14
+.flex_input_container {
15
   display: flex;
15
   display: flex;
16
 }
16
 }
17
-.sidebar .box .add_form input[type=text] {
17
+.flex_input_container > input[type=text]{
18
   flex-grow: 1;
18
   flex-grow: 1;
19
   box-sizing: border-box;
19
   box-sizing: border-box;
20
   width: 100%;
20
   width: 100%;

+ 0
- 1
static/styles/oppai/style.css View File

1068
 .point_gift_box input[type="text"], .point_gift_box textarea {
1068
 .point_gift_box input[type="text"], .point_gift_box textarea {
1069
   width: 100%;
1069
   width: 100%;
1070
   box-sizing: border-box;
1070
   box-sizing: border-box;
1071
-  margin-bottom: 3px;
1072
 }
1071
 }
1073
 .dead {
1072
 .dead {
1074
   opacity: 0.6;
1073
   opacity: 0.6;

Loading…
Cancel
Save