Skip to content

Commit

Permalink
Adjust tooltip sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
davec committed Jun 5, 2009
1 parent 318d01a commit c42e82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/helpers/calendars_helper.rb
Expand Up @@ -44,7 +44,7 @@ def make_calendar(this_month, rjs = false)
block << %Q{<div id="#{div_id}">}
block << calendar(calendar_options) do |d|
if days_with_events.has_key?(d)
event_list = %Q{<div id="events-#{d.jd}" class="calendar-data">\n<dl class="events">\n}
event_list = %Q{<div id="events-#{d.jd}" class="calendar-data tooltip">\n<dl class="events">\n}
eod = d + 1.day - 1.second
# Sort events by start time, with full-day events being placed
# at the end, followed by a secondary sort on the event name.
Expand Down
8 changes: 1 addition & 7 deletions public/stylesheets/events_calendar.css
Expand Up @@ -59,17 +59,11 @@
font-weight: bold;
}

.calendar-data {
position: absolute;
top: 0;
left: 0;
visibility: hidden;
}
.tooltip {
background-color: #99f;
border: solid 1px #333;
font: normal 10px sans-serif;
padding: 4px;
padding: 0.5ex 0.75em;
width: 200px;
z-index: 1000;
position: absolute;
Expand Down

0 comments on commit c42e82a

Please sign in to comment.