zxf/css/common/common.less

162 lines
2.4 KiB
Plaintext

@import 'var.less';
// .generate-mt(@n, @i: 0) when (@i =< @n) {
// .mt-@{i} {
// margin-top: 1px * @i;
// }
// .generate-mt(@n, (@i + 5));
// }
// .generate-mt(100);
// .generate-mb(@n, @i: 0) when (@i =< @n) {
// .mb-@{i} {
// margin-bottom: 1px * @i;
// }
// .generate-mb(@n, (@i + 5));
// }
// .generate-mb(100);
// .generate-pt(@n, @i: 0) when (@i =< @n) {
// .pt-@{i} {
// padding-top: 1px * @i;
// }
// .generate-pt(@n, (@i + 5));
// }
// .generate-pt(100);
// .generate-pb(@n, @i: 0) when (@i =< @n) {
// .pb-@{i} {
// padding-bottom: 1px * @i;
// }
// .generate-pb(@n, (@i + 5));
// }
// .generate-pb(100);
.limit-line {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.clamp-1 {
-webkit-line-clamp: 1;
}
.clamp-2 {
-webkit-line-clamp: 2;
}
.clamp-3 {
-webkit-line-clamp: 3;
}
.clearfix {
zoom: 1;
}
.clearfix::after {
display: block;
content: '';
clear: both;
}
.full-wrap {
width: 100%;
}
.main-wrap {
width: @mw;
margin: 0 auto;
}
.mg-center {
margin-top: 0;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
}
.header {
z-index: 20;
position: fixed;
top: 0;
left: 0;
right: 0;
width: 100%;
background-image: url('/images/header-bg.png');
.main {
height: 90px;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
img {
max-height: 50px;
}
}
.menu {
.group {
display: flex;
}
.item {
margin-left: 50px;
}
.link {
font-size: 18px;
color: #FFFFFF;
}
.link.active,
.link:hover {
font-weight: bold;
}
}
}
.footer {
width: 100%;
background-color: #343434;
.main {
padding: 30px 0;
.row:first-child {
margin-top: 0;
}
.row {
font-size: 18px;
color: #FFFFFF;
text-align: center;
line-height: 20px;
margin-top: 20px;
}
.tel {
display: inline-block;
width: 355px;
border: 2px solid #DDDDDD;
border-radius: 30px;
padding: 20px;
font-size: 24px;
}
.icp {
color: #999999;
}
}
}