degmods.com/src/styles/SimpleSlider.css

297 lines
5.8 KiB
CSS
Raw Normal View History

2024-07-11 11:19:12 +00:00
.swiper-pagination-bullet-active {
background: rgba(255, 255, 255, 0.5);
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5);
2024-07-11 11:19:12 +00:00
}
.simple-slider .swiper-slide {
height: 400px;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
@media (max-width: 576px) {
.simple-slider .swiper-slide {
height: 200px;
}
}
@media (max-width: 360px) {
.simple-slider .swiper-slide {
height: 150px;
}
}
.simple-slider .swiper-button-next,
.simple-slider .swiper-button-prev {
2024-07-11 11:19:12 +00:00
width: 50px;
margin-left: 00px;
margin-right: 00px;
color: rgba(255, 255, 255, 0.5);
background: linear-gradient(
rgba(255, 255, 255, 0.05),
rgba(255, 255, 255, 0.05)
),
linear-gradient(to top right, #262626, #292929, #262626),
linear-gradient(to top right, #262626, #292929, #262626);
2024-07-11 11:19:12 +00:00
padding: 10px;
height: 75px;
border-radius: 10px;
box-shadow: 0 0 8px 0 rgb(0, 0, 0, 0.1);
2024-07-11 11:19:12 +00:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: -35px;
}
.simple-slider .swiper-button-next:hover,
.simple-slider .swiper-button-prev:hover {
background: linear-gradient(
rgba(255, 255, 255, 0.1),
rgba(255, 255, 255, 0.1)
),
linear-gradient(to top right, #262626, #292929, #262626),
linear-gradient(to top right, #262626, #292929, #262626);
2024-07-11 11:19:12 +00:00
}
.swiper-button-next:after,
.swiper-button-prev:after {
2024-07-11 11:19:12 +00:00
font-size: 18px;
}
@media (max-width: 992px) {
.simple-slider .swiper-button-next,
.simple-slider .swiper-button-prev {
2024-07-11 11:19:12 +00:00
bottom: 0;
top: unset;
width: 48%;
height: unset;
padding: 10px;
}
}
.simple-slider.IBMSMSlider {
cursor: grab;
/*border-radius: 10px;*/
overflow: hidden;
margin: 0;
}
.simple-slider.IBMSMSlider:active {
border-radius: 10px;
cursor: grabbing;
}
.swiper-container.IBMSMSliderContainer {
padding: 0 0 35px 0;
}
.swiper-wrapper.IBMSMSliderContainerWrapper {
}
.swiper-slide.IBMSMSliderContainerWrapperSlider {
position: relative;
display: grid;
grid-template-columns: 1.25fr 0.75fr;
grid-gap: 25px;
padding: 0 75px;
height: unset;
}
@media (max-width: 992px) {
.swiper-slide.IBMSMSliderContainerWrapperSlider {
grid-template-columns: 1.15fr 0.85fr;
padding: 0 0 25px 0;
grid-gap: 15px;
}
}
@media (max-width: 768px) {
.swiper-slide.IBMSMSliderContainerWrapperSlider {
grid-template-columns: 1fr;
}
}
.IBMSMSliderContainerWrapperSliderAction {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.btnMain.IBMSMSliderContainerWrapperSliderActionbtn::before {
transition: ease 0.4s;
opacity: 0;
content: '';
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background: linear-gradient(
rgba(255, 255, 255, 0.15),
rgba(255, 255, 255, 0.15)
),
linear-gradient(to top right, #262626, #292929, #262626),
linear-gradient(to top right, #262626, #292929, #262626);
2024-07-11 11:19:12 +00:00
z-index: -1;
border-radius: 10px;
}
.btnMain.IBMSMSliderContainerWrapperSliderActionbtn {
width: 100%;
}
.btnMain.IBMSMSliderContainerWrapperSliderActionbtn:hover::before {
transition: ease 0.4s;
opacity: 1;
}
.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
2024-07-11 11:19:12 +00:00
width: 100%;
bottom: 0;
}
.swiper-button-next,
.swiper-button-prev {
2024-07-11 11:19:12 +00:00
position: absolute;
}
.swiper-button-next {
right: 5px;
}
@media (max-width: 992px) {
.swiper-button-next {
right: 0px;
}
}
.swiper-button-prev {
left: 5px;
}
@media (max-width: 992px) {
.swiper-button-prev {
left: 0px;
}
}
.SliderWrapper {
width: 100%;
padding: 50px 0;
background: rgba(0, 0, 0, 0.1);
2024-07-11 11:19:12 +00:00
backdrop-filter: blur(5px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: -25px 0 0 0;
border-bottom: solid 1px rgba(255, 255, 255, 0.05);
2024-07-11 11:19:12 +00:00
}
.IBMSMSCWSPic {
border-radius: 10px;
overflow: hidden;
border: solid 1px rgba(255, 255, 255, 0.05);
2024-07-11 11:19:12 +00:00
z-index: 1;
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.25);
width: 100%;
2024-09-02 09:04:57 +00:00
height: 100%;
object-fit: cover; /* Ensures the image covers the container like a background image */
2024-07-11 11:19:12 +00:00
}
2024-09-02 09:04:57 +00:00
.IBMSMSCWSPicWrapper {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
position: relative;
}
2024-07-11 11:19:12 +00:00
.IBMSMSCWSInfo {
display: flex;
flex-direction: column;
grid-gap: 25px;
justify-content: center;
padding: 25px;
border-radius: 10px;
background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)),
linear-gradient(
to top right,
rgb(38, 38, 38),
rgb(41, 41, 41),
rgb(38, 38, 38)
);
box-shadow: 0 0 8px 0 rgb(0, 0, 0, 0.1);
border: solid 1px rgba(255, 255, 255, 0.05);
2024-07-11 11:19:12 +00:00
}
@media (max-width: 768px) {
.IBMSMSCWSInfo {
/*margin: -25px 10px 0 10px;*/
}
}
@media (max-width: 576px) {
.IBMSMSCWSInfo {
grid-gap: 10px;
padding: 15px;
}
}
.IBMSMSCWSInfoHeading {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 2;
font-size: 20px;
line-height: 1.25;
color: rgba(255, 255, 255, 0.75);
2024-07-11 11:19:12 +00:00
font-weight: bold;
}
.IBMSMSCWSInfoText {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 8;
color: rgba(255, 255, 255, 0.5);
2024-07-11 11:19:12 +00:00
font-size: 15px;
line-height: 1.5;
flex-grow: 1;
}
@media (max-width: 576px) {
.IBMSMSCWSInfoText {
-webkit-line-clamp: 4;
font-size: 14px;
}
}
.swiper-pagination {
}
@media (max-width: 992px) {
.swiper-pagination {
display: none;
}
}
.swiper-pagination-bullet {
background: rgba(0, 0, 0, 0.5);
2024-07-11 11:19:12 +00:00
opacity: 1;
width: 12px;
height: 12px;
border-radius: 3px;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
background: rgba(128, 0, 255, 0.5);
2024-07-11 11:19:12 +00:00
}