CyberExam2-front/pages/index.css
2024-10-21 23:36:31 +08:00

159 lines
2.9 KiB
CSS

*, :after, :before {
box-sizing: inherit;
}
body {
background-color: #555;
font-family: BlenderProBook,sans-serif;
font-weight: 300;
margin: 0;
padding: 0;
}
.header{
position: relative;
background-color: #fbff31;
.header-content{
height: 500px;
.logo{
padding: 20px;
height: 70px;
}
}
:after{
clear: both;
}
}
.clp {
background: rgba(0, 0, 0, 0.6);
position: relative;
clip-path: polygon(15px 0,100% 0px,100% calc(100% - 15px),calc(100% - 15px) calc(100%),calc(100% - 15px) 2000%,0 2000%,0 15.3333333333px);
}
.menu{
display: flex;
position: fixed;
margin: 2px;
top: 20px;
right: 70px;
height:40px;
z-index: 10;
}
.menu:hover{
border: #3CF solid 2px;
margin: 0;
}
.menu-list {
padding: 0 10px 0 10px;
list-style: none;
align-items: center;
height: 100%;
line-height: 100%;
display: flex;
margin: 0;
.menu-item {
align-items: center;
color: #fff;
cursor: pointer;
display: flex;
font-family: BlenderProBook,sans-serif;
font-size: 22px;
font-style: normal;
font-weight: 400;
height: 100%;
line-height: 100%;
position: relative;
text-transform: uppercase;
span{
align-items: center;
padding: 0 7px 0 7px;
}
}
.menu-item:hover{
background-color: #3CF;
.sub-menu{
float:left;
display: block;
}
}
.menu-sub::after {
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 6px solid #fff;
content: "";
display: inline-block;
height: 6px;
margin-left: 6px;
position: relative;
width: 0px;
}
.sub-menu{
display: none;
background: rgba(255, 255, 255, 0);
position: absolute;
float: left;
left: 0px;
top: 40px;
:after{
clear: both;
}
}
.sub-menu-list{
list-style: none;
background: rgba(255, 255, 255, 0);
padding-left: 0;
.sub-menu-item{
padding: 5px 20px 5px 20px;
background: rgba(0, 0, 0, 0.6);
white-space: nowrap;
line-height: 100%;
height: 30px;
}
.sub-menu-item:hover{
background-color: #3CF;
}
li{
list-style: none;
}
}
}
a{
color: #fff;
text-decoration: none;
}
.header-title{
position: absolute;
top: 130px;
left: 100px;
h1{
font-size: 4em;
margin: 10px;
}
h2{
color: grey;
font-size: 1em;
margin: 5px;
}
.author{
font-size: 1em;
color: grey;
}
}
hr{
background-color: black;
height: 2px;
}
.header-img{
position: absolute;
top: 80px;
right: 10%;
}