cesium-arrow/src/components/home/Layout/index.module.less
2023-10-10 10:14:32 +08:00

100 lines
2.3 KiB
Plaintext

.homeLayout :global {
height: 100%;
background: url("../../../assets/link.png") 50% no-repeat;
background-size: 100% 100%;
display: flex;
flex-direction: column;
.title {
height: 120px;
background: url("../../../assets/title.png") 50% no-repeat;
margin-bottom: 8px;
color: #04fbfd;
display: flex;
align-items: center;
justify-content: center;
font-size: 42px;
font-weight: 700;
}
.nav-bar {
width: 100%;
max-width: 1200px;
margin: 15% auto;
height: 72px;
padding: 0 12px;
color: #fff;
// display: flex;
// justify-content: space-evenly;
// align-items: center;
display: grid;
grid-template-columns: repeat(4, 1fr);
// grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
grid-auto-flow: row dense;
gap: 32px 0;
// justify-content: space-between;
.nav-bar-button {
// border: 1px solid #4096ff;
position: relative;
cursor: pointer;
@btn-table-color: #04fbfd;
transition: all 0.3s ease;
flex: 1;
text-align: center;
max-width: 248px;
.btn-table {
width: 20px;
height: 10px;
position: absolute;
background-color: transparent;
&.left-top {
left: 0;
top: 0;
border-left: 1px solid @btn-table-color;
border-top: 1px solid @btn-table-color;
}
&.left-bottom {
left: 0;
bottom: 0;
border-left: 1px solid @btn-table-color;
border-bottom: 1px solid @btn-table-color;
}
&.right-top {
right: 0;
top: 0;
border-right: 1px solid @btn-table-color;
border-top: 1px solid @btn-table-color;
}
&.right-bottom {
right: 0;
bottom: 0;
border-right: 1px solid @btn-table-color;
border-bottom: 1px solid @btn-table-color;
}
}
.nav-bar-content {
padding: 20px;
font-size: 20px;
color: @btn-table-color;
background-color: #081633;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
&:hover {
transform: translate(0, -4px);
.nav-bar-content {
background-color: #112f6a;
}
}
}
}
}