forked from Gitlink/forgeplus-react
修改样式
This commit is contained in:
parent
9c2aac1907
commit
b3b50f462b
|
@ -12,7 +12,7 @@ import './index.scss';
|
|||
|
||||
let setting = {
|
||||
infinite: true,
|
||||
speed: 28000,
|
||||
speed: 21000,
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
autoplaySpeed: 0,
|
||||
|
@ -34,7 +34,7 @@ function SecondSection() {
|
|||
|
||||
|
||||
return (
|
||||
<div className="home-competition-slide">
|
||||
<div className="home-competition-slide homepage-main">
|
||||
<Slider {...setting}>
|
||||
|
||||
<div>
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
.home-competition-slide {
|
||||
position: relative;
|
||||
// height: 50px;
|
||||
width: 100vw;
|
||||
padding:0 500px;
|
||||
overflow: hidden;
|
||||
top: 4.375em;
|
||||
left: 0;
|
||||
|
@ -11,9 +8,8 @@
|
|||
|
||||
.competition-slide-item {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
justify-content: center;
|
||||
height: 2.6vw;
|
||||
width: calc(100vw + 1000px);
|
||||
}
|
||||
|
||||
.competition-notice {
|
||||
|
|
|
@ -100,14 +100,16 @@ const Qz2022 = (props) => {
|
|||
}
|
||||
}, []);
|
||||
|
||||
useEffect(()=>{
|
||||
let footer=document.querySelector('.newFooter');
|
||||
if((footer.offsetTop +107)<window.screen.height){
|
||||
footer.style.position="absolute";
|
||||
}else{
|
||||
footer.style.position="relative";
|
||||
}
|
||||
},[history])
|
||||
// useEffect(()=>{
|
||||
// let footer=document.querySelector('.newFooter');
|
||||
// let loading=document.querySelector('..ant-spin-nested-loading');
|
||||
// if((footer.offsetTop +107)<window.screen.height){
|
||||
// footer.style.position="absolute";
|
||||
// loading.margin-b
|
||||
// }else{
|
||||
// footer.style.position="relative";
|
||||
// }
|
||||
// },[history])
|
||||
|
||||
function scrollListener() {
|
||||
let qz2022Top = document.querySelector('.qz2022').offsetTop;
|
||||
|
|
|
@ -52,6 +52,13 @@ body>.-task-title {
|
|||
.indexHOC > .ant-spin-nested-loading {
|
||||
/* background: #000; */
|
||||
height: 100%;
|
||||
margin-bottom: 107px;
|
||||
}
|
||||
.indexHOC .homePage+.ant-spin-nested-loading {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.newFooter{
|
||||
position:absolute !important;
|
||||
}
|
||||
.indexHOC > .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
||||
top: 50% !important;
|
||||
|
|
Loading…
Reference in New Issue