22 أغسطس 2016

اضافة أزرار التحميل والمعاينة بلغة الماتريال ديزاين


مرحبا، اضافتنا اليوم من اضافات بلوجر طريقة أضافة الأزرار والكثير من المدونات يستعملونها في معاينة و تحميل القوالب لذا فسميناها ازرار التحميل و المعاينة 😃 و هي بلغة الماتريال ديزاين و اذا لا تعرف ما هو الماتريال ديزاين فتستطيع البحث في جوجل وهنالك الكثير من الشروحات 😉 👍 .



طريقة اضافتها
اذهب الى "لوحة التحكم" ثم "قالب" ثم "تحرير HTML"
و ابحث عن  </head>  وضع فوقه هذا الكود
 <style type='text/css'>
@media only screen and (min-width: 993px) {
    .container {
        width: 85%;
    }
}
@media only screen and (min-width: 993px) {
    .container {
        width: 70%;
    }
}
@media only screen and (min-width: 601px) {
    .container {
        width: 85%;
    }
}
.container {
    margin: 0 auto;
    max-width: 1280px;
    width: 90%;
}
.btn-space{
    text-align: center;
} 
.ripple {
    text-align: center;
    display: inline-block;
    padding: 8px 30px;
    border-radius: 2px;
    letter-spacing: .5px;
    border-radius: 2px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 0;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.ripple:hover {
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}
.ink {
    display: block;
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 100%;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
}
.animate {
    -webkit-animation: ripple 0.55s linear;
    -moz-animation: ripple 0.55s linear;
    -ms-animation: ripple 0.55s linear;
    -o-animation: ripple 0.55s linear;
    animation: ripple 0.55s linear;
}
@-webkit-keyframes ripple {
    100% {
        opacity: 0;
        -webkit-transform: scale(2.5);
    }
}
@-moz-keyframes ripple {
    100% {
        opacity: 0;
        -moz-transform: scale(2.5);
    }
}
@-o-keyframes ripple {
    100% {
        opacity: 0;
        -o-transform: scale(2.5);
    }
}
@keyframes ripple {
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}
.red {
    background-color: #F44336;
    color:#ffffff;
}
.pink {
    background-color: #E91E63;
    color:#ffffff;

}
.blue {
    background-color: #2196F3;
    color:#ffffff;

}
.cyan {
    background-color: #00bcd4;
    color:#ffffff;

}
.teal {
    background-color: #009688;
    color:#ffffff;

}
.yellow {
    background-color: #FFEB3B;
    color: #000;
}
.orange {
    background-color: #FF9800;
    color:#ffffff;

}
.brown {
    background-color: #795548;
    color:#ffffff;

}
.grey {
    background-color: #9E9E9E;
    color:#ffffff;

}
.black {
    background-color: #000000;
    color:#ffffff;

}

  </style>
 

وبعد اضافتها اضغط على حفظ .

وعند كتابة تدوينة انتقل الى وضع HTML وضع فيها الكود التالي
 <div dir="rtl" style="text-align: right;" trbidi="on">
<br />
<div class="container btn-space" style="font-weight: bold;">
<a class="ripple red" href="#" style="color: white;">أضغط هنا</a>
      <a class="ripple blue" href="#" style="color: white;">أضغط هنا</a>
      <a class="ripple cyan" href="#" style="color: white;">أضغط هنا</a>
      <a class="ripple orange" href="#" style="color: white;">أضغط هنا</a>
      <a class="ripple brown" href="#" style="color: white;">أضغط هنا</a>
      <a class="ripple grey" href="#" style="color: white;">أضغط هنا</a>
    </div>
</div> 

وقم بتغيير ما باللون الاحمر بأي رابط تريد  ☑ 👌 ❤

1 التعليقات

كيف اضيف بوكس الخاص بالاكواد اذا اردت ان اعمل درس

يسعدنا تفاعلكم بالتعليق، لكن يرجى مراعاة الشروط التالية لضمان نشر التعليق
1⃣ أن يكون التعليق خاص بمحتوى التدوينة
2⃣ أن لا تضع أي روابط خارجية
3⃣ لإضافة كود حوله أولاً بمحول الأكواد
الابتساماتالابتسامات