• 正在查找将来过去时的官方设定集?不如看看万界大百科吧!
  • 《将来过去时》第一部分 现在 魔科纪元的少年少女 即将正式发布!
  • 让我偷偷看一眼小鱼君的博客……
  • 服务器已成功迁移到 阿里云(杭州)

“MediaWiki:Gadget-CustomSlider.css”的版本间的差异

来自小鱼君和他的朋友们
([InPageEdit] 没有编辑摘要)
 
([InPageEdit] 没有编辑摘要)
第1行: 第1行:
 
#SliderView {
 
#SliderView {
   background: transparent;
+
   background-color: #000;
   width: 100%;  
+
   width: 80%;  
 +
  margin: 0 auto;
 
   height: auto;
 
   height: auto;
 
   position: relative;
 
   position: relative;
 
   overflow: hidden;
 
   overflow: hidden;
  -webkit-user-select: none;
 
  -moz-user-select: none;
 
  -ms-user-select: none;
 
  -o-user-select: none;
 
 
   user-select: none;
 
   user-select: none;
   text-align: center;
+
   color: #fff;
 
}
 
}
 
#SliderWrapper {
 
#SliderWrapper {
 
   position: relative;
 
   position: relative;
  -webkit-transition: 1s;
 
  -o-transition: 1s;
 
 
   transition: 1s;
 
   transition: 1s;
  -webkit-transition-timing-function: cubic-bezier(.67,.01,.23,1);
 
  -o-transition-timing-function: cubic-bezier(.67,.01,.23,1);
 
 
   transition-timing-function: cubic-bezier(.67,.01,.23,1);
 
   transition-timing-function: cubic-bezier(.67,.01,.23,1);
 
}
 
}
第28行: 第21行:
 
   margin: 0px;
 
   margin: 0px;
 
}
 
}
 
+
 
.Sld {
 
.Sld {
 
   height: auto;
 
   height: auto;
第35行: 第28行:
 
   float: left;
 
   float: left;
 
}
 
}
 
+
 
.SlideIMG {
 
.SlideIMG {
 
   width: 100%;
 
   width: 100%;
第41行: 第34行:
 
.SlideIMG img {
 
.SlideIMG img {
 
   display: block;
 
   display: block;
   max-width: 100%;
+
   height: 350px !important;
   height: auto;
+
   margin: 0 auto;
   min-width: 100%;
+
   width: auto !important;
  min-height: 100%
 
 
   position: relative;  
 
   position: relative;  
 
}
 
}
 
+
 
#NavBtns {
 
#NavBtns {
 
   position: absolute; 
 
   position: absolute; 
第62行: 第54行:
 
   background: transparent;
 
   background: transparent;
 
}
 
}
 
+
 
.nmLeft {
 
.nmLeft {
 
   height: 100%;
 
   height: 100%;
第76行: 第68行:
 
   background: linear-gradient(to right, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
 
   background: linear-gradient(to right, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
 
}
 
}
 
+
 
.nmRight {
 
.nmRight {
 
   height: 100%;
 
   height: 100%;
第91行: 第83行:
 
   background: linear-gradient(to left, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
 
   background: linear-gradient(to left, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
 
}
 
}
 
+
 
.nmTop {
 
.nmTop {
 
   width: 100%;
 
   width: 100%;
第107行: 第99行:
 
   background: linear-gradient(to bottom, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
 
   background: linear-gradient(to bottom, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
 
}
 
}
 
+
 
.nmBottom {
 
.nmBottom {
 
   width: 100%;
 
   width: 100%;
第123行: 第115行:
 
   background: linear-gradient(to top, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
 
   background: linear-gradient(to top, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
 
}
 
}
 
+
 
.nbActiveLeft {
 
.nbActiveLeft {
 
   background: linear-gradient(to right, rgba(111,111,111,0.8), rgba(111,111,111,0.8),  transparent);
 
   background: linear-gradient(to right, rgba(111,111,111,0.8), rgba(111,111,111,0.8),  transparent);
第135行: 第127行:
 
.nbActiveBottom {
 
.nbActiveBottom {
 
   background: linear-gradient(to top, rgba(111,111,111,0.8), rgba(111,111,111,0.8),  transparent);
 
   background: linear-gradient(to top, rgba(111,111,111,0.8), rgba(111,111,111,0.8),  transparent);
 +
}
 +
@media screen and (max-width:850px) {
 +
  #SliderView {
 +
   width: 100%;
 +
  }
 +
  .SlideIMG img {
 +
   display: block;
 +
   height: 280px !important;
 +
   margin: 0 auto;
 +
   width: auto !important;
 +
   position: relative; 
 +
  }
 
}
 
}

2019年12月2日 (一) 15:54的版本

#SliderView {
  background-color: #000;
  width: 80%;  
  margin: 0 auto;
  height: auto;
  position: relative;
  overflow: hidden;
  user-select: none;
  color: #fff;
}
#SliderWrapper {
  position: relative;
  transition: 1s;
  transition-timing-function: cubic-bezier(.67,.01,.23,1);
}
#SliderWrapper, #SliderWrapper ul, #SliderWrapper li, #NavBtns, #NavBtns ul {
  margin: 0px;
  padding: 0px;
}
#NavBtns li {
  margin: 0px;
}
 
.Sld {
  height: auto;
  list-style: none;
  display: inline;
  float: left;
}
 
.SlideIMG {
  width: 100%;
}
.SlideIMG img {
  display: block;
  height: 350px !important;
  margin: 0 auto;
  width: auto !important;
  position: relative;  
}
 
#NavBtns {
  position: absolute; 
  display: block;
}
.NavBtn {
  position: relative;
  display: block;
  top: 0px;
  width: auto;
  height: auto;
  list-style: none;
  margin: 0px;
  background: transparent;
}
 
.nmLeft {
  height: 100%;
  left: 0px;
  background: linear-gradient(to right, rgba(61,61,61,0.8), rgba(61,61,61,0.8),  transparent);
}
.nmLeft li {
  list-style: none;   
  padding: 10px 100px 10px 10px;
}
.nmLeft li:hover {
  cursor: pointer;
  background: linear-gradient(to right, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
}
 
.nmRight {
  height: 100%;
  right: 0px;
  background: linear-gradient(to left, rgba(61,61,61,0.8), rgba(61,61,61,0.8),  transparent);
  text-align: left;
}
.nmRight li {
  list-style: none;   
  padding: 10px 10px 10px 100px;
}
.nmRight li:hover {
  cursor: pointer;
  background: linear-gradient(to left, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
}
 
.nmTop {
  width: 100%;
  top: 0px;
  background: linear-gradient(to bottom, rgba(61,61,61,0.8), rgba(61,61,61,0.8),  transparent);
  text-align: left;
}
.nmTop li {
  display: inline-block;
  list-style: none;   
  padding: 10px 10px 20px 10px;
}
.nmTop li:hover {
  cursor: pointer;
  background: linear-gradient(to bottom, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
}
 
.nmBottom {
  width: 100%;
  bottom: 0px;
  background: linear-gradient(to top, rgba(61,61,61,0.8), rgba(61,61,61,0.8),  transparent);
  text-align: left;
}
.nmBottom li {
  display: inline-block;
  list-style: none;   
  padding: 20px 10px 10px 10px;
}
.nmBottom li:hover {
  cursor: pointer;
  background: linear-gradient(to top, rgba(81,81,81,0.8), rgba(81,81,81,0.8),  transparent);
}
 
.nbActiveLeft {
  background: linear-gradient(to right, rgba(111,111,111,0.8), rgba(111,111,111,0.8),  transparent);
}
.nbActiveRight {
  background: linear-gradient(to left, rgba(111,111,111,0.8), rgba(111,111,111,0.8),  transparent);
}
.nbActiveTop {
  background: linear-gradient(to bottom, rgba(111,111,111,0.8), rgba(111,111,111,0.8),  transparent);
}
.nbActiveBottom {
  background: linear-gradient(to top, rgba(111,111,111,0.8), rgba(111,111,111,0.8),  transparent);
}
@media screen and (max-width:850px) {
  #SliderView {
    width: 100%;
  }
  .SlideIMG img {
    display: block;
    height: 280px !important;
    margin: 0 auto;
    width: auto !important;
    position: relative;  
  }
}