Global form styles

This commit is contained in:
Marcin Kurczewski 2013-10-13 00:36:10 +02:00
parent eb858bfbe1
commit be4a2615dd
7 changed files with 28 additions and 28 deletions

View file

@ -18,30 +18,18 @@ form.auth label {
} }
form.auth input { form.auth input {
display: table-cell;
font-family: inherit;
display: block; display: block;
} }
form.auth input:not([type="submit"]) { form.auth input {
width: 156px; width: 156px;
padding: 5px; padding: 5px;
border-width: 2px;
margin: 0; margin: 0;
} }
form.auth input[type="submit"] { form.auth button {
display: block;
margin: 0 auto; margin: 0 auto;
background-color: #77f;
border: 0;
color: white;
font-weight: bold;
font-size: 1em;
padding: 8px 16px;
}
form.auth input[type="submit"]:hover {
background-color: #55f;
} }
form.auth p { form.auth p {

View file

@ -131,6 +131,27 @@ a:hover i[class*='icon-'] {
background-color: red; background-color: red;
} }
input,
button {
font-family: inherit;
}
input:not([type=radio]):not([type=checkbox]) {
border: 1px solid #ccc;
}
button {
font-size: 115%;
padding: 0.2em 0.7em;
color: white;
background: cornflowerblue;
border: 0;
}
button:hover {
background-color: royalblue;
cursor: pointer;
}
.alert { .alert {
text-align: center; text-align: center;
padding: 10px; padding: 10px;

View file

@ -4,10 +4,6 @@
font-size: 90%; font-size: 90%;
} }
.post-wrapper {
/*text-align: center;*/
}
img, img,
embed { embed {
max-width: 100%; max-width: 100%;

View file

@ -108,11 +108,6 @@ ul.tagit {
.submit-wrapper { .submit-wrapper {
text-align: center; text-align: center;
} }
input.submit { #theSubmit {
margin: 0 auto; margin: 0 auto;
font-size: 115%;
padding: 0.2em 0.7em;
color: white;
background: cornflowerblue;
border: 0;
} }

View file

@ -19,6 +19,6 @@
<?php endif ?> <?php endif ?>
<div> <div>
<input type="submit" value="Log in"/> <button type="submit">Log in</button>
</div> </div>
</form> </form>

View file

@ -43,7 +43,7 @@
<?php endif ?> <?php endif ?>
<div> <div>
<input type="submit" value="Register"> <button type="submit">Register</button>
</div> </div>
</form> </form>
<?php endif ?> <?php endif ?>

View file

@ -30,7 +30,7 @@
</div> </div>
<div class="submit-wrapper"> <div class="submit-wrapper">
<input id="the-submit" type="submit" value="Submit" class="submit btn"/> <button id="the-submit" type="submit">Submit</button>
</div> </div>
</div> </div>