// // @file // // CSS declarations for all parts of a WordPress site in which the All-in-One // Calendar plugin is active. Mostly the bare minimum required for proper // styling of widgets. // // ========== // = Mixins = // ========== // // Begin with Bootstrap and custom mixins. @import "bootstrap/mixins.less"; @import "timely-mixins.less"; // ========= // = Fonts = // ========= @import "timely-font-awesome.less"; @import "ai1ec-icons.less"; // ============= // = Bootstrap = // ============= // Ai1EC is based on Twitter Bootstrap. Whenever Bootstrap is upgraded, its // .less files are preprocessed by the included script (bootstrap-prepare.sh), // which adds 'ai1ec-' to all Bootstrap-defined classes. Still, some Bootstrap // .less files broadly reference HTML elements, and need to be surrounded by the // .timely namespace so as not to inflict undesirable styling upon non-Ai1EC // portions of the markup. // Reset .timely { @import "bootstrap/normalize.less"; } .timely { @import "bootstrap/print.less"; } // Core CSS .timely { @import "bootstrap/scaffolding.less"; } @import "bootstrap/grid.less"; .timely { @import "bootstrap/forms.less"; } .timely { @import "bootstrap/buttons.less"; } .timely { @import "bootstrap/type.less"; } // Components @import "bootstrap/component-animations.less"; @import "bootstrap/dropdowns.less"; @import "bootstrap/button-groups.less"; .timely { @import "bootstrap/navs.less"; } @import "bootstrap/thumbnails.less"; @import "bootstrap/alerts.less"; @import "bootstrap/wells.less"; .timely { @import "bootstrap/close.less"; } // Components w/ JavaScript @import "bootstrap/modals.less"; @import "bootstrap/tooltip.less"; @import "bootstrap/popovers.less"; // Utility classes @import "bootstrap/utilities.less"; @import "bootstrap/responsive-utilities.less"; // =========== // = Plugins = // =========== @import "plugins/select2.less"; @import "plugins/fileupload.less"; @import "plugins/datepicker3.less"; @import "plugins/timepicker.less"; // ================== // = Common widgets = // ================== @import "common-widgets.less"; // ========================== // = Unnamespaced overrides = // ========================== // // Bootstrap // // Position toolbar buttons properly. .ai1ec-btn-toolbar { margin: 0; } .ai1ec-btn-group { .ai1ec-btn-toolbar & { margin-bottom: 6px; &.ai1ec-btn-group-xs { margin-top: 5px; } } > .ai1ec-btn-primary { z-index: 3; } // Until we upgrade Bootstrap, must manually apply these styles to override // any applied by themes based on more recent Bootstrap. > .ai1ec-btn, > .ai1ec-dropdown-menu, > .ai1ec-popover { font-size: @font-size-base; // redeclare as part 2 of font-size inline-block hack } // Reset fonts for other sizes > .ai1ec-btn-xs { font-size: @font-size-base - 2px; } > .ai1ec-btn-sm { font-size: @font-size-small - 1px; } > .ai1ec-btn-lg { font-size: @font-size-base + 2px; } // For HTML4 compatibility: Force natural button height in buttons that // contain only an icon, by inserting a narrow space character: > .ai1ec-btn:after { content: '\200A'; margin-right: -0.25em; } } .ai1ec-btn-primary { color: @btn-primary-color !important; } // Fix cursor on dropdowns. .ai1ec-dropdown-toggle { cursor: pointer; } // Fix styling on dropdowns. .ai1ec-dropdown-menu, ul.ai1ec-dropdown-menu { margin: 0; text-align: left; list-style: none; li { margin: 0; padding: 0; list-style: none; } } // Dropdowns - port to div structure // // The following block is adapted from bootstrap/dropdowns.less; ports default //