Browse Source

Spruce up small inputs with submit buttons

spaghetti 8 years ago
parent
commit
77caf27a02
4 changed files with 17 additions and 15 deletions
  1. 4
    4
      sections/torrents/details.php
  2. 11
    8
      sections/user/user.php
  3. 2
    2
      static/styles/global.css
  4. 0
    1
      static/styles/oppai/style.css

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

@@ -287,11 +287,11 @@ if ($Categories[$GroupCategoryID - 1] != 'Other') {
287 287
     <div class="box box_addartists">
288 288
       <div class="head"><strong>Add artist</strong></div>
289 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 291
           <input type="hidden" name="action" value="add_alias" />
292 292
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
293 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 295
           <input type="submit" value="Add" />
296 296
         </form>
297 297
       </div>
@@ -360,11 +360,11 @@ if (empty($LoggedUser['DisableTagging'])) {
360 360
     <div class="box box_addtag">
361 361
       <div class="head"><strong>Add tag</strong></div>
362 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 364
           <input type="hidden" name="action" value="add_tag" />
365 365
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
366 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 368
           <input type="submit" value="Add" />
369 369
         </form>
370 370
         <br />

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

@@ -286,15 +286,18 @@ if ($Avatar && Users::has_avatars_enabled()) {
286 286
 <?
287 287
 }
288 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 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 301
         </form>
299 302
         <p>Note: 10% of your gift is taken as tax.</p>
300 303
       </div>

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

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

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

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

Loading…
Cancel
Save