html 屏蔽蓝色电话,HTML5 很不错的暗蓝色登录页面模板

CSS

语言:

CSSSCSS

确定

body {

background-color: #363e4a;

font-family: "Avenir Next", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;

font-size: 16px;

color: #fff;

line-height: 1.5;

}

h1 {

font-family: "Texta", "Avenir Next", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;

font-weight: 700;

text-transform: uppercase;

letter-spacing: 4px;

text-align: center;

}

h2 {

font-weight: 400;

font-size: 24px;

color: rgba(255, 255, 255, 0.4);

}

.container {

max-width: 320px;

margin: 0 auto;

padding: 20px 16px 40px 16px;

text-align: center;

}

.form-footer {

margin-top: 1em;

}

.ui-input {

position: relative;

padding: 0;

border: 0;

}

.ui-input input {

border: 0;

background: none;

padding: 16px 0 16px 0;

font-size: 24px;

outline: 0;

width: 100%;

tap-highlight-color: transparent;

touch-callout: none;

}

.ui-input input + label {

position: relative;

display: block;

padding: 8px 0 8px 0;

text-transform: uppercase;

font-size: 14px;

letter-spacing: 0.0875em;

font-weight: 500;

text-align: left;

}

.ui-input input + label::before,

.ui-input input + label::after {

position: absolute;

top: 0;

left: 0;

content: "";

width: 100%;

height: 1px;

}

.ui-input input + label::before {

background-color: rgba(255, 255, 255, 0.2);

}

.ui-input input + label::after {

transform: scaleX(0);

transform-origin: left;

transition: transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1);

background-color: #6eb1ff;

height: 2px;

}

.ui-input input + label span {

position: relative;

color: rgba(255, 255, 255, 0.2);

transition: color 300ms cubic-bezier(0.215, 0.61, 0.355, 1);

}

.ui-input input + label span::after {

content: attr(data-text);

position: absolute;

overflow: hidden;

left: 0;

transform: scaleX(1);

white-space: nowrap;

color: #fff;

background-image: linear-gradient(to right, #4a90e2 50%, rgba(255, 255, 255, 0) 0%);

background-position: 100% 50%;

background-size: 200%;

-webkit-background-clip: text;

-webkit-text-fill-color: transparent;

backface-visibility: hidden;

perspective: 1000;

transform: translateZ(0);

transition: background-position 300ms cubic-bezier(0.215, 0.61, 0.355, 1);

}

.ui-input input:focus + label::after,

.ui-input input.error + label::after,

.ui-input input:invalid + label::after,

.ui-input input.filled + label::after {

transform: scaleX(1);

transform-origin: left;

}

.ui-input input:focus + label span::after,

.ui-input input.error + label span::after,

.ui-input input:invalid + label span::after,

.ui-input input.filled + label span::after {

background-image: linear-gradient(to right, white 50%, rgba(255, 255, 255, 0) 0%);

background-position: 0% 50%;

}

.ui-input input.filled {

color: #fff;

}

.ui-input input.filled + label::after {

background-color: #fff;

}

.ui-input input.filled + label span::after {

background-image: linear-gradient(to right, #fff 50%, rgba(255, 255, 255, 0) 0%);

background-position: 0% 50%;

}

.ui-input input:focus {

color: #6eb1ff;

}

.ui-input input:focus + label::after {

background-color: #6eb1ff;

}

.ui-input input:focus + label span::after {

background-image: linear-gradient(to right, #6eb1ff 50%, rgba(255, 255, 255, 0) 0%);

background-position: 0% 50%;

}

.ui-input input.error,

.ui-input input:invalid {

color: #e66161;

}

.ui-input input.error + label::after,

.ui-input input:invalid + label::after {

background-color: #e66161;

}

.ui-input input.error + label span::after,

.ui-input input:invalid + label span::after {

background-image: linear-gradient(to right, #e66161 50%, rgba(255, 255, 255, 0) 0%);

background-position: 0% 50%;

}

.btn {

border: 0;

background-color: #50617a;

padding: 18px 30px 18px 30px;

font-size: 18px;

text-transform: uppercase;

letter-spacing: 0.0875em;

font-weight: 500;

border-radius: 100px;

outline: 0;

transition: background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1), color 300ms cubic-bezier(0.215, 0.61, 0.355, 1);

}

.btn:focus,

.btn:active,

.btn:hover {

background-color: #6eb1ff;

color: white;

}

.__first,

.__second,

.__third,

.__fourth {

animation-name: fadeIn;

animation-duration: 180ms;

animation-fill-mode: both;

animation-iteration-count: 1;

}

.__first {

animation-delay: 0;

}

.__second {

animation-delay: 80ms;

}

.__third {

animation-delay: 180ms;

}

.__fourth {

animation-delay: 360ms;

}

@keyframes fadeIn {

from {

opacity: 0;

transform: translate3d(0, -25%, 0);

}

to {

opacity: 1;

transform: translate3d(0, 0, 0);

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值