300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > html制作水晶状态导航栏 HTML5 CSS3水晶风格的页面头部

html制作水晶状态导航栏 HTML5 CSS3水晶风格的页面头部

时间:2020-10-02 05:57:09

相关推荐

html制作水晶状态导航栏 HTML5 CSS3水晶风格的页面头部

CSS

语言:

CSSSCSS

确定

body {

margin: 0;

padding: 0;

}

.crystal_container {

position: relative;

display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

width: 100%;

height: 400px;

background: radial-gradient(at top left, rgb(0, 188, 212), rgb(3, 169, 244));

z-index: -999;

}

.block {

width: 198px;

height: 198px;

display: block;

background: radial-gradient(at top left, #FFCC4D, #FF9800);

border-top: 1px solid #ffcc80;

border-left: 1px solid #ffcc80;

border-right: 1px solid #bb8020;

border-bottom: 1px solid #bb8020;

box-shadow: 2px 2px 6px rgba(170, 31, 0, 0.2), 3px 8px 12px rgba(71, 35, 22, 0.3);

z-index: 999;

margin: 100px auto;

}

.text {

margin-left: 17px;

font-family: "Roboto Slab", serif;

font-weight: bold;

font-size: 24px;

line-height: 22px;

}

.crystal {

width: 0;

height: 0;

position: absolute;

z-index: -998;

}

#c01 {

border-bottom: 100px solid rgba(0, 96, 100, 0.1);

border-right: 100vw solid transparent;

bottom: 0;

right: 0;

}

#c02 {

border-bottom: 160px solid rgba(2, 136, 209, 0.3);

border-left: 100vw solid transparent;

bottom: 0;

left: 0;

}

#c03 {

border-top: 200px solid rgba(0, 96, 155, 0.2);

border-right: 40vw solid transparent;

border-left: 60vw solid transparent;

top: 0;

right: 0;

}

#c04 {

border-top: 400px solid rgba(24, 255, 255, 0.3);

border-right: 80vw solid transparent;

border-left: 20vw solid transparent;

top: 0;

left: 0;

}

#c05 {

border-bottom: 250px solid transparent;

border-top: 100px solid transparent;

border-right: 100vw solid rgba(128, 216, 255, 0.3);

bottom: 10px;

right: 0;

}

#c06 {

border-bottom: 400px solid rgba(79, 195, 247, 0.4);

border-right: 10vw solid transparent;

border-left: 30vw solid transparent;

bottom: 0;

right: 20vw;

}

#c07 {

border-top: 367px solid rgba(0, 131, 143, 0.2);

border-left: 60vw solid transparent;

top: 0;

right: 0;

}

#c08 {

border-top: 50px solid rgba(167, 255, 235, 0.4);

border-right: 60vw solid transparent;

top: 0;

left: 0;

}

#c09 {

border-top: 400px solid rgba(0, 176, 255, 0.3);

border-right: 30vw solid transparent;

top: 0;

left: 0;

}

#c10 {

border-bottom: 400px solid rgba(128, 222, 234, 0.2);

border-right: 20vw solid transparent;

border-left: 20vw solid transparent;

bottom: 0;

right: 60vw;

}

/* Description */

.description {

max-width: 500px;

margin: 40px auto 80px;

}

.description h2 {

font-family: "Roboto Slab", serif;

}

.description p {

font-family: sans-serif;

font-weight: lighter;

line-height: 24px;

text-align: justify;

}

/* Credits */

/*Designed by Brendan Bax ~ */

.credits {

display: flex;

flex-direction: row;

justify-content: center;

align-items: center;

position: fixed;

bottom: 0;

width: 100%;

height: 60px;

font-family: "Roboto Slab", serif;

background: #fff;

box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.05);

}

a {

text-decoration: none;

color: #32ceea;

}

.credits_left {

display: block;

position: absolute;

left: 20px;

}

.credits_right {

display: block;

position: absolute;

right: 20px;

}

.social_icon {

display: inline-block;

width: 32px;

height: 32px;

margin: 8px;

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。