Jump to content

шаблоны 'Добавляем кнопку правила чата'


csolsztyn
 Share

Recommended Posts

2.png.cab939c41064070d1e2fec934b9792bd.png1.png.422bca74537ed6337be7a8cbf2b10517.png

  • Стили и шаблоны - Ваш стиль - bimchatbox - chat - chatform
  • Найти:
<button type="submit" class="ipsButton ipsButton_primary ipsButton_verySmall" data-action="chat" id="chat_button"><span class="ipsType_small"><i class="fa fa-level-down fa-rotate-90"></i></span></button>
  • Добавить ниже
<label class="modal-overlay" for="modal-1"></label>
    <div class="modal-dialog">
      <div class="modal-header">
        <h2><div class='ipsMessage ipsMessage_error'>
  
  Правила
</div></h2>
      </div>
      <div class="modal-body">
        <p>1) Ваше первое правило.</p>
        <p>2) бан бан бан ~_~.</p>
        <p>3) кик кик кик -_-.</p>
        <!--<p>4) кик кик кик.</p>-->
      </div>
      <div class="modal-footer">
        <label class="btn btn-primary" for="modal-1">Close</label>
      </div>
    </div>
  </div>
</div>
  • Стили и шаблоны - Ваш стиль - СSS - custom.css
  • В самый низ добавить
.modal-header h2 {
    color: #555;  
    font-size: 30px;
    font-weight: normal;
    line-height: 1;    
    margin: 0;
}

.modal .btn-close {
    color: #aaa;
    cursor: pointer;
    font-size: 10px;
    text-decoration: none;
    position: absolute;
    right: 5px;
    top: 0;
}
.modal .btn-close:hover {
    color: red;
}
.modal-wrap:before {
    content: "";
    display: none;
    background: rgba(0, 0, 0, .3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
}
.modal-overlay {
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 102;
}
.modal-open:checked ~ .modal-wrap:before,
.modal-open:checked ~ .modal-wrap .modal-overlay {
    display: block;
}
.modal-open:checked ~ .modal-wrap .modal-dialog {
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    -o-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    top: 20%;
}
.modal-dialog {
    background: #fefefe;
    border: none;
    border-radius: 5px;
    position: fixed;
    width: 80%;
    max-width: 500px;
    left: 50%;
    top: -100%;
    -webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -moz-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -webkit-transform: translate(-50%, -500%);
    -ms-transform: translate(-50%, -500%);
    -o-transform: translate(-50%, -500%);
    transform: translate(-50%, -500%);
    -webkit-transition: -webkit-transform 0.4s ease-out;
    -moz-transition: -moz-transform 0.4s ease-out;
    -o-transition: -o-transform 0.4s ease-out;
    transition: transform 0.4s ease-out;
    z-index: 103;
}
.modal-body {
  padding: 20px;
}
.modal-body p {
    margin: 0;
}
.modal-header,
.modal-footer {
    padding: 20px 20px;
}
.modal-header {
    border-bottom: #eaeaea solid 1px;
}
.modal-header h2 {
    font-size: 20px;
    margin: 0;
}
.modal-footer {
    border-top: #eaeaea solid 1px;
    text-align: right;
}
.modal-body img { 
    max-width: 100%;
    height: auto;
}
.btn {
    background: #37474f;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    right: 2px;
    bottom: 0px;
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    text-decoration: none;
    text-align: center;
    min-width: 10px;
    position: relative;
}

.btn-primary {
    background: #428bca;
    border-color: #357ebd;
    color: #fff;
}
.btn-primary:hover{
    background: #66A1D3;
}
.cbItems img {
    margin-right: 2px;
}

 

  • Thanks 1
Link to comment
Share on other sites

  • Administrator

Все делается стандартными средствами, что как раз и видно на лицо!) тут начал изучать фреймворк ips4 там столько всего оказывается зашито...уууу..

Правила форума       Правила оформления контента       Приватный форум и чат

youtube-gaming2.jpg

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Privacy Policy