PerfectoLite.php
145 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Themes\Shortcode\Login; |
| 4 | |
| 5 | use ProfilePress\Core\Themes\Shortcode\LoginThemeInterface; |
| 6 | |
| 7 | class PerfectoLite implements LoginThemeInterface |
| 8 | { |
| 9 | public function get_name() |
| 10 | { |
| 11 | return 'Perfecto Lite'; |
| 12 | } |
| 13 | |
| 14 | public function get_structure() |
| 15 | { |
| 16 | return <<<CODE |
| 17 | <div class="perfecto"> |
| 18 | <div class="perfecto-heading">Sign in to Your Account</div> |
| 19 | [login-username class="perfecto-input" placeholder="Username"] |
| 20 | [login-password class="perfecto-input" placeholder="Password" ] |
| 21 | [login-submit class="perfecto-submit" value="Log In"] |
| 22 | </div> |
| 23 | CODE; |
| 24 | } |
| 25 | |
| 26 | public function get_css() |
| 27 | { |
| 28 | return <<<CSS |
| 29 | /* css class for the form generated errors */ |
| 30 | .profilepress-login-status { |
| 31 | background-color: #484c51; |
| 32 | color: #ffffff; |
| 33 | border-radius: 2px; |
| 34 | font-size: 16px; |
| 35 | font-weight: normal; |
| 36 | line-height: 1.4; |
| 37 | text-align: center; |
| 38 | padding: 8px 5px; |
| 39 | max-width: 400px; |
| 40 | margin: 5px auto; |
| 41 | } |
| 42 | .profilepress-login-status a { |
| 43 | color: #ea9629 !important; |
| 44 | } |
| 45 | |
| 46 | .perfecto, |
| 47 | .perfecto * { |
| 48 | -webkit-box-sizing: border-box; |
| 49 | -moz-box-sizing: border-box; |
| 50 | box-sizing: border-box; |
| 51 | } |
| 52 | |
| 53 | .perfecto { |
| 54 | margin: 5px auto; |
| 55 | border: 2px solid #f0f0f0; |
| 56 | background: #fff; |
| 57 | max-width: 400px; |
| 58 | padding: 30px; |
| 59 | |
| 60 | font-family: helvetica, arial, sans-serif; |
| 61 | -webkit-font-smoothing: antialiased; |
| 62 | -moz-font-smoothing: antialiased; |
| 63 | font-smoothing: antialiased; |
| 64 | font-size: 14px; |
| 65 | line-height: 24px; |
| 66 | } |
| 67 | |
| 68 | .perfecto .perfecto-heading { |
| 69 | font-size: 24px; |
| 70 | line-height: 34px; |
| 71 | margin-bottom: 20px; |
| 72 | display: block; |
| 73 | font-weight: 100; |
| 74 | color: #555; |
| 75 | text-align: center; |
| 76 | } |
| 77 | |
| 78 | .perfecto input.perfecto-input { |
| 79 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.125); |
| 80 | |
| 81 | padding: 12px 18px; |
| 82 | width: 100%; |
| 83 | box-sizing: border-box; |
| 84 | outline: none; |
| 85 | color: #555; |
| 86 | font-size: 12px; |
| 87 | line-height: 22px; |
| 88 | font-family: helvetica, arial, sans-serif; |
| 89 | -webkit-font-smoothing: antialiased; |
| 90 | -moz-font-smoothing: antialiased; |
| 91 | font-smoothing: antialiased; |
| 92 | border: 1px solid #ddd; |
| 93 | -webkit-border-radius: 2px; |
| 94 | -moz-border-radius: 2px; |
| 95 | border-radius: 2px; |
| 96 | margin-bottom: 10px; |
| 97 | -webkit-transition: 0.4s; |
| 98 | -moz-transition: 0.4s; |
| 99 | transition: 0.4s; |
| 100 | } |
| 101 | |
| 102 | .perfecto input.perfecto-input:focus { |
| 103 | border-color: #ccc; |
| 104 | background: #fafafa; |
| 105 | -webkit-box-shadow: inset 0px 1px 5px 0px #f0f0f0; |
| 106 | -moz-box-shadow: inset 0px 1px 5px 0px #f0f0f0; |
| 107 | box-shadow: inset 0px 1px 5px 0px #f0f0f0; |
| 108 | } |
| 109 | |
| 110 | .perfecto input.perfecto-submit { |
| 111 | padding: 12px 10px; |
| 112 | width: 100%; |
| 113 | box-sizing: border-box; |
| 114 | border: 0; |
| 115 | outline: none; |
| 116 | margin-top: 20px; |
| 117 | color: #fff; |
| 118 | cursor: pointer; |
| 119 | background: #196cd8; |
| 120 | font-size: 12px; |
| 121 | line-height: 21px; |
| 122 | letter-spacing: 1px; |
| 123 | text-transform: uppercase; |
| 124 | font-weight: bold; |
| 125 | font-family: helvetica, arial, sans-serif; |
| 126 | -webkit-font-smoothing: antialiased; |
| 127 | -moz-font-smoothing: antialiased; |
| 128 | font-smoothing: antialiased; |
| 129 | -webkit-border-radius: 2px; |
| 130 | -moz-border-radius: 2px; |
| 131 | border-radius: 2px; |
| 132 | margin-bottom: 10px; |
| 133 | -webkit-transition: 0.4s; |
| 134 | -moz-transition: 0.4s; |
| 135 | transition: 0.4s; |
| 136 | text-shadow: none; |
| 137 | box-shadow: none; |
| 138 | } |
| 139 | .perfecto input.perfecto-submit:hover { |
| 140 | background: #155bb5; |
| 141 | } |
| 142 | CSS; |
| 143 | |
| 144 | } |
| 145 | } |