精彩的引导卡片Demo

7B2美化3个月前发布 admin
79 00

 <!--载入CSS样式-->
  <link href="style.css" rel="stylesheet" type="text/css" />


  <!--复制开始-->


  <!--
	版本:1.0
	整理:Muze
	帮助:https://www.npc.ink/12031.html
  -->



  <section class="buy-container">
    <div class="buy-box">
      <div class="slogan">
        <h3>现在起,让您的站点焕然一新</h3>
        <p>发现精彩主题,一次购买 永久使用</p>
      </div>
      <ul class="actions">
        <li>
          <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=1355471563" target="_blank" class="buy-button primary"
            rel="noopener noreferrer">主题咨询</a>
        </li>
        <li>
          <a href="https://www.npc.ink/wp-theme" target="_blank" class="demo-button" rel="noopener noreferrer">主题发现</a>
        </li>
      </ul>
    </div>
    <span class="tips">如果点击咨询购买按钮无法唤起QQ,请手动添加QQ1355471563(请注明主题咨询)</span>
  </section>


CSS

@charset "utf-8";
/*Npcink

	版本:1.0
	整理:Muze
	帮助:https://www.npc.ink/12031.html
*/

.buy-container {
  color: #ccc;
  padding: 60px 40px 50px 40px;
  margin: 0 auto;
  background: rgb(224, 32, 140);
  background: -moz-linear-gradient(
    left,
    rgb(224, 32, 140) 0%,
    rgb(250, 100, 0) 100%
  );
  background: -webkit-linear-gradient(
    left,
    rgb(224, 32, 140) 0%,
    rgb(250, 100, 0) 100%
  );
  background: linear-gradient(
    to right,
    rgb(224, 32, 140) 0%,
    rgb(250, 100, 0) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0208c', endColorstr='#fa6400',GradientType=1 );
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -o-border-radius: 10px;
  border-radius: 10px;
}
.buy-container .buy-box {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
@media screen and (max-width: 700px) {
  .buy-container .buy-box {
    display: block;
    text-align: center;
  }
  .buy-container .buy-box .slogan {
    margin-bottom: 30px;
  }
}
.buy-container .buy-box .slogan h3 {
  color: #fff;
  font-size: 26px;
  margin: 0 0 10px 0;
}
@media screen and (max-width: 800px) {
  .buy-container .buy-box .slogan h3 {
    font-size: 24px;
  }
}
@media screen and (max-width: 500px) {
  .buy-container .buy-box .slogan h3 {
    font-size: 20px;
  }
}
@media screen and (max-width: 400px) {
  .buy-container .buy-box .slogan h3 {
    font-size: 18px;
  }
}
.buy-container .buy-box .slogan p {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  margin: 10px 0;
}
.buy-container .buy-box .actions {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
@media screen and (max-width: 700px) {
  .buy-container .buy-box .actions {
    -webkit-box-pack: justify;
    justify-content: center;
  }
}
.buy-container .buy-box .actions li {
  margin: 0;
}
.buy-container .buy-box .actions li:last-child {
  margin-left: 10px;
}
.buy-container .buy-box .actions li a {
  position: relative;
  color: #fff !important;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  -webkit-transition: 0.2s;
  -moz-transition: 0.2s;
  -o-transition: 0.2s;
  transition: 0.2s;
}
.buy-container .buy-box .actions li a:hover {
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2);
  -o-box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2);
  opacity: 1 !important;
}
@media screen and (max-width: 330px) {
  .buy-container .buy-box .actions li a {
    font-size: 12px;
  }
}
.buy-container .buy-box .actions li a:not(.primary):before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-box-shadow: inset 0 0 0 1px currentColor;
  -moz-box-shadow: inset 0 0 0 1px currentColor;
  -o-box-shadow: inset 0 0 0 1px currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  -khtml-opacity: 0.3;
  -moz-opacity: 0.3;
  opacity: 0.3;
}
.buy-container .buy-box .actions li a:after {
  display: none;
}
.buy-container .buy-box .actions li a.primary {
  color: #ff3b30 !important;
  background-color: #fff;
}
.buy-container .tips {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  color: #fff;
  font-size: 12px;
  text-align: center;
  max-width: 900px;
  margin: 30px auto 0 auto;
  padding-top: 30px;
}

© 版权声明

相关文章