Skip to content

Commit

Permalink
css fixes for 2.5 and 2.6 Re #161 #168
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Apr 29, 2015
1 parent ef68728 commit efef3a9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
12 changes: 5 additions & 7 deletions assets/calendar.publish.css
Expand Up @@ -4,7 +4,7 @@
* @author: Nils Hörrmann, post@nilshoerrmann.de
* @source: http://github.com/nilshoerrmann/calendar
*/

div.dt-calendar {
z-index: 2000;
position: relative;
Expand Down Expand Up @@ -193,7 +193,7 @@ div.dt-calendar table {
div.dt-calendar td {
background: transparent /*#323230*/;
border: 1px solid #41403f;
border-style-bottom: none;
border-bottom-style: none;
color: #fff;
cursor: pointer;
height: 30px;
Expand Down Expand Up @@ -265,18 +265,16 @@ div.dt-calendar tbody td:hover {
@media screen and (min-width: 1000px) {

fieldset.primary div.dt-calendar {
height: 254px;
padding: 18px 38px 18px 18px;
}

fieldset.primary div.dt-calendar div.date:not(:last-child) {
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 50%;
display: inline-block;
padding: 0 0 0 11px;
position: absolute;
top: 10px;
left: 0;
width: 50%;
vertical-align: top;
}

fieldset.primary div.dt-calendar div.date:not(:last-child) nav a:first-of-type {
Expand Down
12 changes: 6 additions & 6 deletions assets/calendar.publish.js
Expand Up @@ -219,15 +219,15 @@
$('<li />', {
'text': month_list[m],
'data-value': id
}).appendTo(months);
}).appendTo(months);
}

// Set year
years.find('li').remove();
for(y = current.year - 5; y <= current.year + 6; y++) {
$('<li />', {
'text': y
}).appendTo(years);
}).appendTo(years);
}

// Set calendar days
Expand Down Expand Up @@ -255,13 +255,13 @@
if((start <= days && days <= end) || start == days || end == days) {
cell.addClass('selected');
}

// Next month
if(month == current.month + 1 || (current.month == 11 && month == 0)) {
cell.addClass('next');
}

// Check and set month context
// Check and set month context
day++;
if(day > length[month]) {
day = 1;
Expand All @@ -274,9 +274,9 @@
month++;
}
}
});
});
};

// Choose date
var choose = function(calendar, selected, key) {
var current = calendar.data('range'),
Expand Down
4 changes: 4 additions & 0 deletions assets/datetime.publish.css
Expand Up @@ -24,6 +24,10 @@ html {
width: 100%;
}

.field-datetime .collapsible .instance:not(.collapsed):not(.js-animate) {
overflow: visible;
}

.field-datetime .frame header {
padding: 4px 10px;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion assets/datetime.publish.js
Expand Up @@ -91,7 +91,7 @@
datetime.find('.focus').removeClass('focus');
input.parent().addClass('focus');

// Expand
// Expand
if(item.is('.collapsed')) {
item.trigger('expand.collapsible');
}
Expand Down
8 changes: 5 additions & 3 deletions assets/timer.publish.css
Expand Up @@ -242,11 +242,13 @@ div.range span.active {
@media screen and (min-width: 1000px) {

fieldset.primary div.timer {
vertical-align: top;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: block;
margin: -17px 1px 0 50%;
padding: 0 0 0 14px;
display: inline-block;
width: 50%;
margin: 0;
padding: 0 0 0 28px;
}

}
Expand Down

0 comments on commit efef3a9

Please sign in to comment.