Created
January 25, 2019 21:43
-
-
Save techiediaries/f8d1acb9ec9ed6ed1b543ac5dd2c8476 to your computer and use it in GitHub Desktop.
Login Form CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 'Open Sans' font from Google Fonts */ | |
| @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700); | |
| .login { | |
| width: 400px; | |
| margin: 16px auto; | |
| font-size: 16px; | |
| } | |
| .login-header, | |
| .login p { | |
| margin-top: 0; | |
| margin-bottom: 0; | |
| } | |
| .login-triangle { | |
| width: 0; | |
| margin-right: auto; | |
| margin-left: auto; | |
| border: 12px solid transparent; | |
| border-bottom-color: rgb(15, 66, 107); | |
| } | |
| .login-header { | |
| background: rgb(12, 77, 129); | |
| padding: 20px; | |
| font-size: 1.4em; | |
| font-weight: normal; | |
| text-align: center; | |
| text-transform: uppercase; | |
| color: #fff; | |
| } | |
| .login-container { | |
| background: #ebebeb; | |
| padding: 12px; | |
| } | |
| .login p { | |
| padding: 12px; | |
| } | |
| .login input { | |
| box-sizing: border-box; | |
| display: block; | |
| width: 100%; | |
| border-width: 1px; | |
| border-style: solid; | |
| padding: 16px; | |
| outline: 0; | |
| font-family: inherit; | |
| font-size: 0.95em; | |
| } | |
| .login input[type="email"], | |
| .login input[type="password"] { | |
| background: #fff; | |
| border-color: #bbb; | |
| color: #555; | |
| } | |
| .login input[type="email"]:focus, | |
| .login input[type="password"]:focus { | |
| border-color: #888; | |
| } | |
| .login input[type="submit"] { | |
| background: rgb(1, 29, 51); | |
| border-color: transparent; | |
| color: #fff; | |
| cursor: pointer; | |
| } | |
| .login input[type="submit"]:hover { | |
| background: #17c; | |
| } | |
| .login input[type="submit"]:focus { | |
| border-color: #05a; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Css