Customize the FullCalendar button

0

I'm trying to customize the fullcalendar button, but I can not. I'm using Bootstrap. The CSS code for fullcalendar, I placed after the Bootstrap CSS and before the tag. See the code below:

CSS

.fc-right button{
      text-transform: uppercase;
      border-radius: 2px;
      font-size: 13px;
      font-weight: 600;
      transition: box-shadow linear 0.4s;
      background-color: #2196F3;
      border-color: #2196F3;
      margin-top: 10px;
}

HTML

<div class="col-xl-4 col-lg-4 grid-item">
   <div class="card" style="background-color: #F9EAAF">
      <div class="panel panel-default">
         <div class="panel-heading bg-default txt-white">
           <i class="fa fa-calendar fa-lg"></i> Calendário de Eventos
         </div>
   <div class="panel-body">
       <div id='calendario'></div>
   </div>
   <div class="panel-footer" align="center">
     <button class="btn btn-default">Ver todos os eventos</button>
    </div>
  </div>
 </div>
</div>

JQuery

$(document).ready(function() {
     $('#calendario').fullCalendar({
          height: 250,
          contentHeight: 273,
          editable: false,
          eventLimit: false,
          events: 'eventos.php',
          eventColor: '#dd6777',

          eventClick:  function(event, jsEvent, view) {
          $('#modalTitle').html("<i class=\"fa fa-hand-o-right\" aria-hidden=\"true\"></i> " + event.title);
          $('#modalBody').html(event.description);
          $('#eventUrl').attr('href',event.url);
          $('#fullCalModal').modal();
      }
      });
});

It looks like this:

AndwhenImovethemouse:

How do I get it to take the formatting I put up?

    
asked by anonymous 06.02.2018 / 21:01

1 answer

1

I managed to resolve. I opened the CSS of Fullcalendar itself and changed those lines:

.fc button {
    text-transform: uppercase;
      border-radius: 2px;
      font-size: 13px;
      font-weight: 600;
      transition: box-shadow linear 0.4s;
      background-color: #2196F3;
      border-color: #2196F3;
      margin-top: 10px;
    cursor: pointer;
}


.fc .fc-button-group > * { /* extra precedence b/c buttons have margin set to zero */
    float: left;
    /*margin: 0 0 0 -1px;*/
}

.fc-state-default {
/*
    background-color: #f5f5f5;
    background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
    background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
    background-repeat: repeat-x;
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
*/
}
    
06.02.2018 / 22:16