fixed textarea and spoilers for mobile page
parent
6410d72a1f
commit
460c50b4ba
|
@ -69,7 +69,7 @@ font-size: medium;
|
|||
display: flex;
|
||||
padding: 10px;
|
||||
}
|
||||
.box-input input {
|
||||
.box-input textarea {
|
||||
flex: 1;
|
||||
padding: 10px;
|
||||
border: var(--border) var(--accent) solid;
|
||||
|
@ -139,3 +139,15 @@ color: var(--accent);
|
|||
.menu-toggle:checked + .hamburger + .nav {
|
||||
display: block;
|
||||
}
|
||||
.spoiler {
|
||||
background-color: var(--dark-background);
|
||||
color: rgb(0,0,0,0);
|
||||
cursor: pointer;
|
||||
transition: color 0.2s;
|
||||
display: inline;
|
||||
outline: none;
|
||||
}
|
||||
.spoiler:hover,
|
||||
.spoiler:focus {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ function bbcode_to_html($text, $settings)
|
|||
'<u>$2</u>',
|
||||
'<s>$2</s>',
|
||||
'<h2>$2</h2>',
|
||||
'<spoiler>$2</spoiler>',
|
||||
'<span class=spoiler tabindex="0">$2</span>',
|
||||
'<li>$2</li>',
|
||||
'<a href="$2" target="_blank">$2</a>',
|
||||
'<quote>>>$1$2</quote><br>'
|
||||
|
@ -1816,9 +1816,10 @@ function show_post_form($db, $msg, $sub, $settings, $org_id, $quote, $ip)
|
|||
$token = make_token();
|
||||
|
||||
$html_string .= "<input type='hidden' name='post_token' value='$token'>"
|
||||
. '<input type="text" id="message-input" name="text"'
|
||||
. ' placeholder="Say something"><button type="submit" '
|
||||
. 'id="send-button">Send</button></form>';
|
||||
. '<textarea id="text" name="text"'
|
||||
. ' placeholder="Say something"></textarea>'
|
||||
. '<button type="submit" id="send-button">Send</button>'
|
||||
. '</form>';
|
||||
|
||||
$current = time();
|
||||
$hash = hash('sha512', $token);
|
||||
|
@ -1985,10 +1986,10 @@ function show_set_feeds_form($db, $settings)
|
|||
. '<form action=\'/mob/iv\' method=\'post\'class="box-input">'
|
||||
. 'Show everything except: '
|
||||
. '<input type=\'text\' name=\'ex_subs\' placeholder=\''
|
||||
. 'subs you do not want to see\'><br>'
|
||||
. 'subs you do not want to see\'><br><br><br>'
|
||||
. 'OR Show nothing but: '
|
||||
. '<input type=\'text\' name=\'in_subs\' placeholder=\''
|
||||
. 'the only subs you want to see\'><br>'
|
||||
. 'the only subs you want to see\'><br><br><br>'
|
||||
. '<button type=\'submit\' '
|
||||
. 'value=\'Get my feeds\'>'
|
||||
. '<br></form></div>';
|
||||
|
|
Loading…
Reference in New Issue