rc-footer
Version:
Pretty Footer react component used in ant.design
142 lines (118 loc) • 2.25 kB
text/less
@footer-prefix-cls: rc-footer;
.@{footer-prefix-cls} {
position: relative;
clear: both;
color: rgba(255, 255, 255, 0.4);
font-size: 14px;
line-height: 1.5;
background-color: #000;
a {
color: rgba(255, 255, 255, 0.9);
text-decoration: none;
transition: all 0.3s;
&:hover {
color: #40a9ff;
}
}
&-container {
width: 100%;
max-width: 1200px;
margin: auto;
padding: 80px 0 20px;
}
&-columns {
display: flex;
justify-content: space-around;
}
&-column {
margin-bottom: 60px;
h2 {
position: relative;
margin: 0 auto;
color: #fff;
font-weight: 500;
font-size: 16px;
}
&-icon {
position: relative;
top: -1px;
display: inline-block;
width: 22px;
text-align: center;
vertical-align: middle;
margin-inline-end: 0.5em;
> span,
> svg,
img {
display: block;
width: 100%;
}
}
}
&-item {
margin: 12px 0;
&-icon {
position: relative;
top: -1px;
display: inline-block;
width: 16px;
text-align: center;
vertical-align: middle;
margin-inline-end: 0.4em;
> span,
> svg,
img {
display: block;
width: 100%;
}
}
&-separator {
margin: 0 0.3em;
}
}
&-bottom {
&-container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 16px 0;
font-size: 16px;
line-height: 32px;
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.25);
}
}
&-light {
color: rgba(0, 0, 0, 0.85);
background-color: transparent;
h2,
a {
color: rgba(0, 0, 0, 0.85);
}
}
&-light &-bottom-container {
border-top-color: #e8e8e8;
}
&-light &-item-separator,
&-light &-item-description {
color: rgba(0, 0, 0, 0.45);
}
}
@media only screen and (max-width: 767.99px) {
.@{footer-prefix-cls} {
text-align: center;
&-container {
padding: 40px 0;
}
&-columns {
display: block;
}
&-column {
display: block;
margin-bottom: 40px;
&:last-child {
margin-bottom: 0;
}
}
}
}