.tools {
    position: fixed;
    z-index: 10000;
    top: 50%;
    left: -5px;
    width: 50px;
    margin-top: -88px;
    padding: 5px 5px 7px 9px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    background: #fafafa;
    background: -moz-linear-gradient(top, #fafafa 0%, #dddddd 100%);
    background: -webkit-linear-gradient(top, #fafafa 0%, #dddddd 100%);
    background: linear-gradient(to bottom, #fafafa 0%, #dddddd 100%);
    border-radius: 5px;
    text-align: center;
}
.tools span {
    width: 33px;
    display: block;
    padding-left: 5px;
    margin-bottom: 4px;
}
.tools a.color-yellow {
    background-color: #fede00;
}
.tools a.color-green {
    background-color: #80b444;
}
.tools a.color-blue {
    background-color: #4290e0;
}
.tools a.color-violet {
    background-color: #4b5db5;
}
.tools a.color-red {
    background-color: #ec3542;
}
.tools a.color-orange {
    background-color: #f58123;
}
.tools a.color-turquoise {
    background-color: #5ec6ae;
}
.tools a {
    display: inline-block;
    margin-top: 7px;
    width: 25px;
    height: 25px;
    background: green;
    text-indent: -1000px;
    border-radius: 2px;
    transition: 0.2s;
}
.demo-rtl {
    position: fixed;
    top: 50%;
    left: 0;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    background: #fafafa;
    background: -moz-linear-gradient(top, #fafafa 0%, #dddddd 100%);
    background: -webkit-linear-gradient(top, #fafafa 0%, #dddddd 100%);
    background: linear-gradient(to bottom, #fafafa 0%, #dddddd 100%);
    z-index: 9999;
    width: 45px;
    border-radius: 0px 5px 5px 0px;
    padding: 10px;
    margin-top: -140px;
}
a.rtldemo {
    background: red;
    display: block;
    text-indent: inherit;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid red;
    color: #fff;
}

a.rtldemo:hover,a.rtldemo:focus{
    color:#fff;
}
.demo-ltr {
    position: fixed;
    top: 50%;
    right: 0;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    background: #fafafa;
    background: -moz-linear-gradient(top, #fafafa 0%, #dddddd 100%);
    background: -webkit-linear-gradient(top, #fafafa 0%, #dddddd 100%);
    background: linear-gradient(to bottom, #fafafa 0%, #dddddd 100%);
    z-index: 9999;
    width: 45px;
    border-radius: 5px 0px 0px 5px;
    padding: 10px;
    margin-top: -140px;
    left: auto;
}
a.ltrdemo {
    background: red;
    display: block;
    text-indent: inherit;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid red;
    color: #fff !important;
}

body.rtl .demo-rtl {
    display: none;
}
body .demo-rtl{
    display: block;
}

body .demo-ltr{
    display: none;
}
body.rtl .demo-ltr {
    display: block;
}
@media (max-width: 767px){
    body .demo-rtl,.tools {
    display: none;
}
  body .demo-ltr{
    display: none;
}
}