-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Fullcalendar #37
Comments
+1 for this! I'm a bit busy currently with a project I need to finish really quick (thus I paused the development of plupload for a while) if no one will get a hand on this request I will once I'll have some more time! |
+1 |
2 similar comments
+1 |
+1 |
Soo..this calendar component looks interesting. In terms of being able to support theming it up, I can't imagine it taking an hour or two, but I'll be in honest in saying this is the first time I've seen this. For the people +1'ing - have you used Fullcalendar before in production or just want it covered? :) |
@addyosmani I used it in production it comes very handy but it is ugly :P so indeed it needs styling, if you check all the latest admin templates in themeforest they all have support for fullcalendar |
I am planning on using it, but theming is an issue. Thanks for this project! |
@addyosmani @evoskuil it is really simple to style this thing and turn it into a really hot baby |
Okay. Let's go for it. There's a lot of work to still be done cleaning up the main theme that I'm focusing on, but if anyone wants to take a first stab at styling Fullcalendar please feel free to :) The default styling at http://arshaw.com/fullcalendar/ isn't hugely different to what we're doing. I imagine what would probably need to be changed are the button styles (those will probably need to come under the same gradients as ui-state-default/our buttons) with a possibly new darker gradient state for the selected month. Again, feel free to use whatever you feel is best and we'll review once something is ready :) |
@addyosmani it's the most popular calendar plugin for JQuery available. It has a huge user-base. I've used it in production on multiple, large sites with much success. I echo what the above posters say though...it aint purdy :) |
Please let me know when this happen +1 |
+1 |
I'm using Fullcalendar and Bootstrap in a Rails project, so i needed to integrate both. |
@brennovich good job dude! :) |
I think support for FullCalendar will be fantastic. +1 |
I made a pull request. |
@brennovich really nice work on that one :) |
For those interested, I've integrated FullCalendar with Twitter Bootstrap without using jquery-ui-bootstrap. Since there is no need for jQuery UI (beside draggable and resizable), your web site will be quite lighter.
Here the code, taken from my Rails 3.2 application. It use SASS and the SASS version of Bootstrap, still the code can be adapted to LESS or regular CSS: /*
* File is named bootstrap_and_overrides.css.scss
*
*= require fullcalendar/fullcalendar.css
*/
@import "bootstrap";
@import "bootstrap-responsive";
/* FullCalendar fc-button themed using Twitter Bootstrap. */
.fc-button.fc-state-default {
@extend .btn;
/* .btn-group > .btn */
position: relative;
/*float: left;*/
/*margin-left: -1px;*/
@include border-radius(0);
}
.fc-button.fc-state-active {
@extend .btn.active;
}
.fc-button.fc-state-disabled {
@extend .btn.disabled;
}
.fc-button.fc-state-disabled:active {
@include box-shadow(none);
}
.fc-button.fc-corner-left {
/* .btn-group > .btn:first-child */
margin-left: 0;
-webkit-border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-left-radius: 4px;
}
.fc-button.fc-corner-right {
/* .btn-group > .btn:last-child, .btn-group > .dropdown-toggle */
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
border-top-right-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
border-bottom-right-radius: 4px;
}
/* Override some FullCalendar CSS properties that conflict with Twitter Bootstrap btn. */
.fc-state-default .fc-button-inner {
background: transparent;
border-width: 0 0;
}
.fc-button-content {
line-height: $baseLineHeight;
height: $baseLineHeight;
padding: 0 0;
}
.fc-state-default .fc-button-effect span {
@include buttonBackground($btnBackground, $btnBackgroundHighlight);
}
.fc-state-active .fc-button-inner {
color: $grayDark;
} Bonus point:
2012/09/02 edit: To make it even cleaner: $('#calendar').fullCalendar({
// ,,,
});
// HACK Remove the overflow of unnecessary span inside FullCalendar buttons.
// This fix some problems under Internet Explorer < 9
//
// Original structure:
// <span class="fc-button">
// <span class="fc-button-inner">
// <span class="fc-button-content">[...]</span>
// <span class="fc-button-effect">
// <span></span>
// </span>
// </span>
// </span>
//
// New structure:
// <span class="fc-button">[...]</span>
//
// I don't know how but elements fc-button-inner, fc-button-content and fc-button-effect
// disappear automatically.
$('.fc-button-content').each(function() {
$(this).parent().parent().html($(this).html());
}); Then you can simplify the CSS code (SASS) to: // FullCalendar fc-button themed using Twitter Bootstrap
.fc-button.fc-state-default {
@extend .btn;
// .btn-group > .btn
position: relative;
//float: left;
//margin-left: -1px;
@include border-radius(0);
}
.fc-button.fc-state-active {
@extend .btn.active;
}
.fc-button.fc-state-disabled {
@extend .btn.disabled;
}
.fc-button.fc-state-disabled:active {
@include box-shadow(none);
}
.fc-button.fc-corner-left {
// .btn-group > .btn:first-child
margin-left: 0;
-webkit-border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-left-radius: 4px;
}
.fc-button.fc-corner-right {
// .btn-group > .btn:last-child, .btn-group > .dropdown-toggle
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
border-top-right-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
border-bottom-right-radius: 4px;
} |
Here's tkrotoff's solution in .less /* FullCalendar fc-button themed using Twitter Bootstrap. */
.fc-button.fc-state-default {
.btn;
/* .btn-group > .btn */
position: relative;
/*float: left;*/
/*margin-left: -1px;*/
.border-radius(0);
}
.fc-button.fc-state-active {
.btn.active;
}
.fc-button.fc-state-disabled {
.btn.disabled;
}
.fc-button.fc-state-disabled:active {
.box-shadow(none);
}
.fc-button.fc-corner-left {
/* .btn-group > .btn:first-child */
margin-left: 0;
-webkit-border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-left-radius: 4px;
}
.fc-button.fc-corner-right {
/* .btn-group > .btn:last-child, .btn-group > .dropdown-toggle */
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
border-top-right-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
border-bottom-right-radius: 4px;
}
/* Override some FullCalendar CSS properties that conflict with Twitter Bootstrap btn. */
.fc-state-default .fc-button-inner {
background: transparent;
border-width: 0 0;
}
.fc-button-content {
line-height: @baseLineHeight;
height: @baseLineHeight;
padding: 0 0;
}
.fc-state-default .fc-button-effect span {
.buttonBackground(@btnBackground, @btnBackgroundHighlight);
}
.fc-state-active .fc-button-inner {
color: @grayDark;
} |
Excellent, so is a pull request going to be made now? :) |
Is this also available in regular css? Can someone post that? Many thanks! |
@pruimmartin https://gist.github.com/2582439 in all versions ;) |
+1 |
^ ^ very well resolved. regards!! |
@gtraxx what would we like to do here? |
Solved. We should close this issue, no? |
I have put the CSS file in a calendar :) |
Hi, is there an updated version of this fix for Bootstrap 3? |
You have done a wonderful job on this project. I think a great component to support would be Fullcalendar: http://arshaw.com/fullcalendar/
The text was updated successfully, but these errors were encountered: