Skip to content
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

bootstrap calendar - with fa-ir lang and default template override css f... #707

Closed
wants to merge 6 commits into from
259 changes: 259 additions & 0 deletions administrator/templates/hathor/css/system/calendar-jos.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
/**
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

/* The main calendar widget. DIV containing a table. */
div.j-calendar {
position: relative;
z-index: 10000;
width: 226px !important;
}

div.j-calendar thead a.btn,
div.j-calendar thead a[data-action=help],
div.j-calendar thead a[data-action=close] {
display: block !important;
paddiing: 0 !important;
}

.j-calendar, .j-calendar table {
border: 1px solid #cccccc;
font-size: 11px;
color: #000;
cursor: default;
background: #efefef;
font-family: arial,verdana,sans-serif;
}

/* Header part -- contains navigation buttons and day names. */

.j-calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
text-align: center; /* They are the navigation buttons */
padding: 2px; /* Make the buttons seem like they're pressing */
}

.j-calendar thead .title { /* This holds the current "month, year" */
font-weight: bold; /* Pressing it will take you to the current date */
text-align: center;
background: #333333;
color: #ffffff;
padding: 2px;
}

.j-calendar thead .headrow { /* Row <TR> containing navigation buttons */
background: #dedede;
color: #000;
}

.j-calendar thead .name { /* Cells <TD> containing the day names */
border-bottom: 1px solid #cccccc;
padding: 2px;
text-align: center;
color: #000;
}

.j-calendar thead .weekend { /* How a weekend day name shows in header */
color: #999;
}

.j-calendar thead .hilite { /* How do the buttons in header appear when hover */
background: #bbbbbb;
color: #000000;
border: 1px solid #cccccc;
padding: 1px;
}

.j-calendar thead .active { /* Active (pressed) buttons in header */
background: #c77;
padding: 2px 0px 0px 2px;
}

.j-calendar thead .daynames { /* Row <TR> containing the day names */
background: #dddddd;
}

/* The body part -- contains all the days in month. */

.j-calendar tbody .day { /* Cells <TD> containing month days dates */
width: 2em;
text-align: right;
padding: 2px 4px 2px 2px;
}

.j-calendar table .wn {
padding: 2px 3px 2px 2px;
border-right: 1px solid #cccccc;
background: #dddddd;
}

.j-calendar tbody .rowhilite td {
background: #666666;
color: #ffffff;
}

.j-calendar tbody .rowhilite td.wn {
background: #666666;
color: #ffffff;
}

.j-calendar tbody td.active { /* Active (pressed) cells <TD> */
background: #000000;
color: #ffffff;
padding: 2px 2px 0px 2px;
}

.j-calendar tbody td.weekend { /* Cells showing weekend days */
color: #999;
}

.j-calendar tbody td.selected { /* Cell showing today date */
font-weight: bold;
border: 1px solid #000;
padding: 1px 3px 1px 1px;
background: #000000;
color: #ffffff;
}

.j-calendar tbody td.hilite { /* Hovered cells <TD> */
background: #999999;
padding: 1px 3px 1px 1px;
border: 1px solid #666666;
color: #ffffff;
}

.j-calendar tbody td.today {
font-weight: bold;
}

.j-calendar tbody .disabled {
color: #999;
}

.j-calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
visibility: hidden;
}

.j-calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
display: none;
}

/* The footer part -- status bar and "Close" button */

.j-calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
text-align: center;
background: #cccccc;
color: #000;
}

.j-calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
border-top: 1px solid #cccccc;
background: #efefef;
color: #000000;
}

.j-calendar tfoot .hilite { /* Hover style for buttons in footer */
background: #666666;
border: 1px solid #f40;
padding: 1px;
}

.j-calendar tfoot .active { /* Active (pressed) style for buttons in footer */
background: #999999;
padding: 2px 0px 0px 2px;
}

/* Combo boxes (menus that display months/years for direct selection) */

.j-calendar .combo {
position: absolute;
display: none;
top: 0px;
left: 0px;
width: 4em;
cursor: default;
border: 1px solid #655;
background: #ffffff;
color: #000;
font-size: smaller;
}

.j-calendar ul.combo {
list-style: none;
}

.j-calendar ul.combo li a{
display: block;
}

.j-calendar .combo .label {
width: 100%;
text-align: center;
}

.j-calendar .combo .hilite {
background: #fc8;
}

.j-calendar .combo .active {
border-top: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
background: #efefef;
font-weight: bold;
}

/* Make compatible with bootstrap classes */

.j-calendar .dropdown-menu .itemContentPadder {
padding: 0;
}

.j-calendar .dropdown-menu thead tr.headrow td.button {
padding: 0;
}

.j-calendar .dropdown-menu thead .title:hover,
.j-calendar .dropdown-menu thead .title {
background-color: #333333 !important;
}
.j-calendar .dropdown-menu ul.combo {
list-style:none;
padding: 0;
margin:0;
}
.j-calendar .dropdown-menu ul.combo a {
display: block;
text-align:center;
}

.j-calendar .dropdown-menu thead tr.headrow a {
display: block !important;
}

.j-calendar .dropdown-menu table thead tr:hover td {
background: inherit;
}

.j-calendar .dropdown-menu table td {
padding: 0;
}

.j-calendar.dropdown-menu thead .hilite,
.j-calendar.dropdown-menu tbody .hilite{
padding: 0px;
}

.j-calendar {
width: 300px;
}
.j-calendar table {
border: 0;
}

.j-calendar.dropdown-menu td.alert{
border-radius: 0;
}

.j-calendar.dropdown-menu .modal-header td {
text-align: center !important;
}
2 changes: 2 additions & 0 deletions administrator/templates/hathor/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
$input = $app->input;
$user = JFactory::getUser();

JHtml::_('bootstrap.framework');

// Load optional rtl bootstrap css and bootstrap bugfixes
JHtmlBootstrap::loadCss($includeMaincss = false, $this->direction);

Expand Down
9 changes: 7 additions & 2 deletions media/system/css/calendar-jos.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
/**
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

div.j-calendar a.nav {
color: #000000;
text-decoration: none;
}
/* The main calendar widget. DIV containing a table. */
div.calendar {
div.calendar,
div.j-calendar {
position: relative;
z-index: 10000;
width: 226px;
Expand Down
Loading