[bf47591] | 1 | /*------------------------------------------------------------------ |
---|
| 2 | [Master Stylesheet] |
---|
| 3 | |
---|
| 4 | Project : Aether |
---|
| 5 | Version : 1.0 |
---|
| 6 | Last change : 2015/03/27 |
---|
| 7 | -------------------------------------------------------------------*/ |
---|
| 8 | /*------------------------------------------------------------------ |
---|
| 9 | [Table of contents] |
---|
| 10 | |
---|
| 11 | 1. General Structure |
---|
| 12 | 2. Anchor Link |
---|
| 13 | 3. Text Outside the Box |
---|
| 14 | 4. Main Form |
---|
| 15 | 5. Login Button |
---|
| 16 | 6. Form Invalid |
---|
| 17 | 7. Form - Main Message |
---|
| 18 | 8. Custom Checkbox & Radio |
---|
| 19 | 9. Misc |
---|
| 20 | -------------------------------------------------------------------*/ |
---|
| 21 | /*=== 1. General Structure ===*/ |
---|
| 22 | html, |
---|
| 23 | body { |
---|
| 24 | background: #efefef; |
---|
| 25 | padding: 10px; |
---|
| 26 | font-family: 'Varela Round'; |
---|
| 27 | } |
---|
| 28 | /*=== 2. Anchor Link ===*/ |
---|
| 29 | a { |
---|
| 30 | color: #aaaaaa; |
---|
| 31 | transition: all ease-in-out 200ms; |
---|
| 32 | } |
---|
| 33 | a:hover { |
---|
| 34 | color: #333333; |
---|
| 35 | text-decoration: none; |
---|
| 36 | } |
---|
| 37 | /*=== 3. Text Outside the Box ===*/ |
---|
| 38 | .etc-login-form { |
---|
| 39 | color: #919191; |
---|
| 40 | padding: 10px 20px; |
---|
| 41 | } |
---|
| 42 | .etc-login-form p { |
---|
| 43 | margin-bottom: 5px; |
---|
| 44 | } |
---|
| 45 | /*=== 4. Main Form ===*/ |
---|
| 46 | .login-form-1 { |
---|
| 47 | max-width: 300px; |
---|
| 48 | border-radius: 5px; |
---|
| 49 | display: inline-block; |
---|
| 50 | } |
---|
| 51 | .main-login-form { |
---|
| 52 | position: relative; |
---|
| 53 | } |
---|
| 54 | .login-form-1 .form-control { |
---|
| 55 | border: 0; |
---|
| 56 | box-shadow: 0 0 0; |
---|
| 57 | border-radius: 0; |
---|
| 58 | background: transparent; |
---|
| 59 | color: #555555; |
---|
| 60 | padding: 7px 0; |
---|
| 61 | font-weight: bold; |
---|
| 62 | height:auto; |
---|
| 63 | } |
---|
| 64 | .login-form-1 .form-control::-webkit-input-placeholder { |
---|
| 65 | color: #999999; |
---|
| 66 | } |
---|
| 67 | .login-form-1 .form-control:-moz-placeholder, |
---|
| 68 | .login-form-1 .form-control::-moz-placeholder, |
---|
| 69 | .login-form-1 .form-control:-ms-input-placeholder { |
---|
| 70 | color: #999999; |
---|
| 71 | } |
---|
| 72 | .login-form-1 .form-group { |
---|
| 73 | margin-bottom: 0; |
---|
| 74 | border-bottom: 2px solid #efefef; |
---|
| 75 | padding-right: 20px; |
---|
| 76 | position: relative; |
---|
| 77 | } |
---|
| 78 | .login-form-1 .form-group:last-child { |
---|
| 79 | border-bottom: 0; |
---|
| 80 | } |
---|
| 81 | .login-group { |
---|
| 82 | background: #ffffff; |
---|
| 83 | color: #999999; |
---|
| 84 | border-radius: 8px; |
---|
| 85 | padding: 10px 20px; |
---|
| 86 | } |
---|
| 87 | .login-group-checkbox { |
---|
| 88 | padding: 5px 0; |
---|
| 89 | } |
---|
| 90 | /*=== 5. Login Button ===*/ |
---|
| 91 | .login-form-1 .login-button { |
---|
| 92 | position: absolute; |
---|
| 93 | right: -25px; |
---|
| 94 | top: 50%; |
---|
| 95 | background: #ffffff; |
---|
| 96 | color: #999999; |
---|
| 97 | padding: 11px 0; |
---|
| 98 | width: 50px; |
---|
| 99 | height: 50px; |
---|
| 100 | margin-top: -25px; |
---|
| 101 | border: 5px solid #efefef; |
---|
| 102 | border-radius: 50%; |
---|
| 103 | transition: all ease-in-out 500ms; |
---|
| 104 | } |
---|
| 105 | .login-form-1 .login-button:hover { |
---|
| 106 | color: #555555; |
---|
| 107 | transform: rotate(450deg); |
---|
| 108 | } |
---|
| 109 | .login-form-1 .login-button.clicked { |
---|
| 110 | color: #555555; |
---|
| 111 | } |
---|
| 112 | .login-form-1 .login-button.clicked:hover { |
---|
| 113 | transform: none; |
---|
| 114 | } |
---|
| 115 | .login-form-1 .login-button.clicked.success { |
---|
| 116 | color: #2ecc71; |
---|
| 117 | } |
---|
| 118 | .login-form-1 .login-button.clicked.error { |
---|
| 119 | color: #e74c3c; |
---|
| 120 | } |
---|
| 121 | /*=== 6. Form Invalid ===*/ |
---|
| 122 | label.form-invalid { |
---|
| 123 | position: absolute; |
---|
| 124 | top: 0; |
---|
| 125 | right: 0; |
---|
| 126 | z-index: 5; |
---|
| 127 | display: block; |
---|
| 128 | margin-top: -25px; |
---|
| 129 | padding: 7px 9px; |
---|
| 130 | background: #777777; |
---|
| 131 | color: #ffffff; |
---|
| 132 | border-radius: 5px; |
---|
| 133 | font-weight: bold; |
---|
| 134 | font-size: 11px; |
---|
| 135 | } |
---|
| 136 | label.form-invalid:after { |
---|
| 137 | top: 100%; |
---|
| 138 | right: 10px; |
---|
| 139 | border: solid transparent; |
---|
| 140 | content: " "; |
---|
| 141 | height: 0; |
---|
| 142 | width: 0; |
---|
| 143 | position: absolute; |
---|
| 144 | pointer-events: none; |
---|
| 145 | border-color: transparent; |
---|
| 146 | border-top-color: #777777; |
---|
| 147 | border-width: 6px; |
---|
| 148 | } |
---|
| 149 | /*=== 7. Form - Main Message ===*/ |
---|
| 150 | .login-form-main-message { |
---|
| 151 | background: #ffffff; |
---|
| 152 | color: #999999; |
---|
| 153 | border-left: 3px solid transparent; |
---|
| 154 | border-radius: 3px; |
---|
| 155 | margin-bottom: 8px; |
---|
| 156 | font-weight: bold; |
---|
| 157 | height: 0; |
---|
| 158 | padding: 0 20px 0 17px; |
---|
| 159 | opacity: 0; |
---|
| 160 | transition: all ease-in-out 200ms; |
---|
| 161 | } |
---|
| 162 | .login-form-main-message.show { |
---|
| 163 | height: auto; |
---|
| 164 | opacity: 1; |
---|
| 165 | padding: 10px 20px 10px 17px; |
---|
| 166 | } |
---|
| 167 | .login-form-main-message.success { |
---|
| 168 | border-left-color: #2ecc71; |
---|
| 169 | } |
---|
| 170 | .login-form-main-message.error { |
---|
| 171 | border-left-color: #e74c3c; |
---|
| 172 | } |
---|
| 173 | /*=== 8. Custom Checkbox & Radio ===*/ |
---|
| 174 | /* Base for label styling */ |
---|
| 175 | [type="checkbox"]:not(:checked), |
---|
| 176 | [type="checkbox"]:checked, |
---|
| 177 | [type="radio"]:not(:checked), |
---|
| 178 | [type="radio"]:checked { |
---|
| 179 | position: absolute; |
---|
| 180 | left: -9999px; |
---|
| 181 | } |
---|
| 182 | [type="checkbox"]:not(:checked) + label, |
---|
| 183 | [type="checkbox"]:checked + label, |
---|
| 184 | [type="radio"]:not(:checked) + label, |
---|
| 185 | [type="radio"]:checked + label { |
---|
| 186 | position: relative; |
---|
| 187 | padding-left: 25px; |
---|
| 188 | padding-top: 1px; |
---|
| 189 | cursor: pointer; |
---|
| 190 | } |
---|
| 191 | /* checkbox aspect */ |
---|
| 192 | [type="checkbox"]:not(:checked) + label:before, |
---|
| 193 | [type="checkbox"]:checked + label:before, |
---|
| 194 | [type="radio"]:not(:checked) + label:before, |
---|
| 195 | [type="radio"]:checked + label:before { |
---|
| 196 | content: ''; |
---|
| 197 | position: absolute; |
---|
| 198 | left: 0; |
---|
| 199 | top: 2px; |
---|
| 200 | width: 17px; |
---|
| 201 | height: 17px; |
---|
| 202 | border: 0px solid #aaa; |
---|
| 203 | background: #f0f0f0; |
---|
| 204 | border-radius: 3px; |
---|
| 205 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); |
---|
| 206 | } |
---|
| 207 | /* checked mark aspect */ |
---|
| 208 | [type="checkbox"]:not(:checked) + label:after, |
---|
| 209 | [type="checkbox"]:checked + label:after, |
---|
| 210 | [type="radio"]:not(:checked) + label:after, |
---|
| 211 | [type="radio"]:checked + label:after { |
---|
| 212 | position: absolute; |
---|
| 213 | color: #555555; |
---|
| 214 | transition: all .2s; |
---|
| 215 | } |
---|
| 216 | /* checked mark aspect changes */ |
---|
| 217 | [type="checkbox"]:not(:checked) + label:after, |
---|
| 218 | [type="radio"]:not(:checked) + label:after { |
---|
| 219 | opacity: 0; |
---|
| 220 | transform: scale(0); |
---|
| 221 | } |
---|
| 222 | [type="checkbox"]:checked + label:after, |
---|
| 223 | [type="radio"]:checked + label:after { |
---|
| 224 | opacity: 1; |
---|
| 225 | transform: scale(1); |
---|
| 226 | } |
---|
| 227 | /* disabled checkbox */ |
---|
| 228 | [type="checkbox"]:disabled:not(:checked) + label:before, |
---|
| 229 | [type="checkbox"]:disabled:checked + label:before, |
---|
| 230 | [type="radio"]:disabled:not(:checked) + label:before, |
---|
| 231 | [type="radio"]:disabled:checked + label:before { |
---|
| 232 | box-shadow: none; |
---|
| 233 | border-color: #8c8c8c; |
---|
| 234 | background-color: #878787; |
---|
| 235 | } |
---|
| 236 | [type="checkbox"]:disabled:checked + label:after, |
---|
| 237 | [type="radio"]:disabled:checked + label:after { |
---|
| 238 | color: #555555; |
---|
| 239 | } |
---|
| 240 | [type="checkbox"]:disabled + label, |
---|
| 241 | [type="radio"]:disabled + label { |
---|
| 242 | color: #8c8c8c; |
---|
| 243 | } |
---|
| 244 | /* accessibility */ |
---|
| 245 | [type="checkbox"]:checked:focus + label:before, |
---|
| 246 | [type="checkbox"]:not(:checked):focus + label:before, |
---|
| 247 | [type="checkbox"]:checked:focus + label:before, |
---|
| 248 | [type="checkbox"]:not(:checked):focus + label:before { |
---|
| 249 | border: 1px dotted #f6f6f6; |
---|
| 250 | } |
---|
| 251 | /* hover style just for information */ |
---|
| 252 | label:hover:before { |
---|
| 253 | border: 1px solid #f6f6f6 !important; |
---|
| 254 | } |
---|
| 255 | /*=== Customization ===*/ |
---|
| 256 | /* radio aspect */ |
---|
| 257 | [type="checkbox"]:not(:checked) + label:before, |
---|
| 258 | [type="checkbox"]:checked + label:before { |
---|
| 259 | border-radius: 3px; |
---|
| 260 | } |
---|
| 261 | [type="radio"]:not(:checked) + label:before, |
---|
| 262 | [type="radio"]:checked + label:before { |
---|
| 263 | border-radius: 35px; |
---|
| 264 | } |
---|
| 265 | /* selected mark aspect */ |
---|
| 266 | [type="checkbox"]:not(:checked) + label:after, |
---|
| 267 | [type="checkbox"]:checked + label:after { |
---|
| 268 | content: '✔'; |
---|
| 269 | top: 0; |
---|
| 270 | left: 2px; |
---|
| 271 | font-size: 14px; |
---|
| 272 | } |
---|
| 273 | [type="radio"]:not(:checked) + label:after, |
---|
| 274 | [type="radio"]:checked + label:after { |
---|
| 275 | content: '\2022'; |
---|
| 276 | top: 0; |
---|
| 277 | left: 3px; |
---|
| 278 | font-size: 30px; |
---|
| 279 | line-height: 25px; |
---|
| 280 | } |
---|
| 281 | /*=== 9. Misc ===*/ |
---|
| 282 | .logo { |
---|
| 283 | padding: 15px 0; |
---|
| 284 | font-size: 25px; |
---|
| 285 | color: #aaaaaa; |
---|
| 286 | font-weight: bold; |
---|
| 287 | } |
---|