mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Style inputs and textareas
This commit is contained in:
parent
b38e4cb2d7
commit
4d7dd3a0a8
4 changed files with 19 additions and 11 deletions
14
index.php
14
index.php
|
@ -160,8 +160,10 @@ h1 { text-align: center; }
|
|||
.sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; }
|
||||
main { padding: 2rem; background: #faf8fb; box-shadow: 0 0.1rem 1rem 0.3rem rgba(50, 50, 50, 0.5); }
|
||||
|
||||
textarea { width: 100%; min-height: 35rem; }
|
||||
textarea ~ input[type=submit] { width: calc(100% + 0.5rem); padding: 0.5rem; font-weight: bolder; }
|
||||
label { display: inline-block; min-width: 7rem; }
|
||||
input[type=text], input[type=password], textarea { margin: 0.5rem 0.8rem; padding: 0.5rem 0.8rem; background: #d5cbf9; border: 0; border-radius: 0.3rem; font-size: 1rem; color: #442772; }
|
||||
textarea { width: calc(100% - 2rem); min-height: 35rem; font-size: 1.25rem; }
|
||||
textarea ~ input[type=submit] { width: calc(100% - 0.3rem); margin: 0.5rem 0.8rem; padding: 0.5rem; font-weight: bolder; }
|
||||
|
||||
footer { padding: 2rem; }
|
||||
";
|
||||
|
@ -1215,11 +1217,13 @@ register_module([
|
|||
$content = "<h1>Login to $settings->sitename</h1>\n";
|
||||
if(isset($_GET["failed"]))
|
||||
$content .= "\t\t<p><em>Login failed.</em></p>\n";
|
||||
$content .= "\t\t<form method='post' action='index.php?action=checklogin&returnto=" . rawurlencode($_SERVER['REQUEST_URI']) . "'><label for='user'>Username:</label>
|
||||
<input type='text' name='user' />
|
||||
$content .= "\t\t<form method='post' action='index.php?action=checklogin&returnto=" . rawurlencode($_SERVER['REQUEST_URI']) . "'>
|
||||
<label for='user'>Username:</label>
|
||||
<input type='text' name='user' id='user' />
|
||||
<br />
|
||||
<label for='pass'>Password:</label>
|
||||
<input type='password' name='pass' />
|
||||
<input type='password' name='pass' id='pass' />
|
||||
<br />
|
||||
<input type='submit' value='Login' />
|
||||
</form>";
|
||||
exit(page_renderer::render_main($title, $content));
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds a pair of actions (login and checklogin) that allow users to login. You need this one if you want your users to be able to login.",
|
||||
"id": "page-login",
|
||||
"lastupdate": 1432497592
|
||||
"lastupdate": 1438004499
|
||||
},
|
||||
{
|
||||
"name": "Logout",
|
||||
|
|
|
@ -20,11 +20,13 @@ register_module([
|
|||
$content = "<h1>Login to $settings->sitename</h1>\n";
|
||||
if(isset($_GET["failed"]))
|
||||
$content .= "\t\t<p><em>Login failed.</em></p>\n";
|
||||
$content .= "\t\t<form method='post' action='index.php?action=checklogin&returnto=" . rawurlencode($_SERVER['REQUEST_URI']) . "'><label for='user'>Username:</label>
|
||||
<input type='text' name='user' />
|
||||
$content .= "\t\t<form method='post' action='index.php?action=checklogin&returnto=" . rawurlencode($_SERVER['REQUEST_URI']) . "'>
|
||||
<label for='user'>Username:</label>
|
||||
<input type='text' name='user' id='user' />
|
||||
<br />
|
||||
<label for='pass'>Password:</label>
|
||||
<input type='password' name='pass' />
|
||||
<input type='password' name='pass' id='pass' />
|
||||
<br />
|
||||
<input type='submit' value='Login' />
|
||||
</form>";
|
||||
exit(page_renderer::render_main($title, $content));
|
||||
|
|
|
@ -157,8 +157,10 @@ h1 { text-align: center; }
|
|||
.sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; }
|
||||
main { padding: 2rem; background: #faf8fb; box-shadow: 0 0.1rem 1rem 0.3rem rgba(50, 50, 50, 0.5); }
|
||||
|
||||
textarea { width: 100%; min-height: 35rem; }
|
||||
textarea ~ input[type=submit] { width: calc(100% + 0.5rem); padding: 0.5rem; font-weight: bolder; }
|
||||
label { display: inline-block; min-width: 7rem; }
|
||||
input[type=text], input[type=password], textarea { margin: 0.5rem 0.8rem; padding: 0.5rem 0.8rem; background: #d5cbf9; border: 0; border-radius: 0.3rem; font-size: 1rem; color: #442772; }
|
||||
textarea { width: calc(100% - 2rem); min-height: 35rem; font-size: 1.25rem; }
|
||||
textarea ~ input[type=submit] { width: calc(100% - 0.3rem); margin: 0.5rem 0.8rem; padding: 0.5rem; font-weight: bolder; }
|
||||
|
||||
footer { padding: 2rem; }
|
||||
";
|
||||
|
|
Loading…
Reference in a new issue