Skip to content

Commit

Permalink
Fix left/right margin issues with dual-panel calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 3, 2014
1 parent 9a34de2 commit dfe7efd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@
margin-right:1em;
}

[dir="rtl"] .yui3-skin-night .yui3-calendar-left-grid,
.yui3-skin-night [dir="rtl"] .yui3-calendar-left-grid {
margin-right: auto;
margin-left: 1em;
}

.yui3-skin-sam .yui3-calendar-right-grid {
margin-left:1em;
}

[dir="rtl"] .yui3-skin-night .yui3-calendar-right-grid,
.yui3-skin-night [dir="rtl"] .yui3-calendar-right-grid {
margin-left: auto;
margin-right: 1em;
}
12 changes: 12 additions & 0 deletions src/calendar/assets/calendar-base/skins/sam/calendar-base-skin.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,22 @@
margin-right:1em;
}

[dir="rtl"] .yui3-skin-sam .yui3-calendar-left-grid,
.yui3-skin-sam [dir="rtl"] .yui3-calendar-left-grid {
margin-right: auto;
margin-left: 1em;
}

.yui3-skin-sam .yui3-calendar-right-grid {
margin-left:1em;
}

[dir="rtl"] .yui3-skin-sam .yui3-calendar-right-grid,
.yui3-skin-sam [dir="rtl"] .yui3-calendar-right-grid {
margin-left: auto;
margin-right: 1em;
}

.yui3-skin-sam .yui3-calendar-day-highlighted {
background-color: #DCDEF5;
}
Expand Down

0 comments on commit dfe7efd

Please sign in to comment.