diff --git a/app/stylesheets/g_instructure.sass b/app/stylesheets/g_instructure.sass index a42afe4d90b..e229e408c79 100644 --- a/app/stylesheets/g_instructure.sass +++ b/app/stylesheets/g_instructure.sass @@ -1409,4 +1409,4 @@ form.user_content_post_form margin-top: 6px margin-left: -16px background-color: #06a9ee - +border-radius(4px) + +border-radius(4px) \ No newline at end of file diff --git a/app/stylesheets/jst/calendar/calendarApp.sass b/app/stylesheets/jst/calendar/calendarApp.sass deleted file mode 100644 index 8eec2ac6a39..00000000000 --- a/app/stylesheets/jst/calendar/calendarApp.sass +++ /dev/null @@ -1,225 +0,0 @@ -@import environment - - -#main - background-color: transparent - border: none - -#content - padding-right: 0 - - -#calendar-app - position: relative - -#calendar-header - position: absolute - right: 0 - top: 0 - width: 55% - &.with-scheduler - width: 58% - -#change-calendar-version - float: right - -.calendar - .fc-content - background-color: white - .fc-view-month .fc-widget-header - color: #627382 - font-size: 14px - background-color: #f6f7f9 - line-height: 35px - .fc-widget-header, .fc-widget-content - border-color: #dadada - .fc-header - h2 - font-size: 18px - padding: 0 16px - .fc-other-month - color: #b4b3b3 - background-color: #f8f9f9 - - .fc-state-highlight - background-color: #ecf3f6 - box-shadow: inset 0px 0px 5px rgba(0,0,0,0.3) - .fc-event-inner - border-color: inherit - width: auto - padding-left: 3px - - .fc-event-time - font-weight: bold - .fc-agenda - .fc-agenda-slots .fc-agenda-axis - border-top-color: transparent //get rid of the grey boders on the row in the agenda view - .fc-widget-header - background-color: #f6f7f9 - - .scheduler-reserved - font-weight: bold - .scheduler-full - background-color: #EEE !important - - .agenda-col-wrapper - overflow: hidden - display: inline-block - color: #617582 - font-size: 9px - font-weight: bold - padding: 10px 0 - text-transform: uppercase - text-align: left - .day-num - font-size: 24px - float: left - padding-right: 5px - line-height: 23px - text-shadow: -1px -1px 1px white - - .day-name - float: left - line-height: 13px - .month-name - line-height: 10px - float: left - color: #9da5ab - -.fc-event.assignment, .fc-event.assignment_override - .fc-event-inner div - display: inline - background-color: white - -.counter-badge - +border-radius(8px) - background-color: #3cb5fb - color: white - text-shadow: 1px 0px 1px rgba(0,0,0,0.3) - box-shadow: inset 1px 0px 1px rgba(0,0,0,0.3) - padding: 1px 6px - -#refresh_calendar_link - +hide_text - width: 20px - height: 20px - float: right - background-image: url('/images/ajax-loader-black-on-white-static.gif') - background-position: 50% 50% - margin-left: 10px - &.loading - background-image: url('/images/ajax-loader-black-on-white.gif') - - -.event-details - h3 - margin-bottom: 0 - &.carat-bottom .ui-menu-carat span - border-color: white transparent - - position: absolute - z-index: 1000 - border: 1px solid #b0afaf - box-shadow: 2px 2px 10px rgba(0,0,0, 0.6) - background-color: white - min-width: 250px - max-width: 500px - ul - +reset-list - th - font-weight: bold - padding-bottom: 3px - padding-right: 8px - td,th - vertical-align: top - .delete_event_link - float: right !important -.event-details-timestring - margin: 5px 0 10px - color: #666 - font-size: 14px -.event-details-links - a - padding-right: 6px - line-height: 12px - border-right: 1px solid #333 - a:last-child - border-right: none -.event-details-header, -.event-details-content, -.event-details-footer - +clearfix - padding: 10px 20px - border-bottom: 1px solid #eee - word-wrap: normal - max-height: 225px - &:last-child - border-bottom: none -.event-details-header - max-width: 460px - overflow: auto -.event-details-content table - th[scope=row] - width: 55px -.event-details-actual-context - font-size: 0.8em - font-style: italic - color: #666 -.event-detail-overflow - min-height: 30px - max-height: 160px - max-width: 395px - margin-bottom: 6px - overflow: auto - -.x-close-link - padding-right: 5px - opacity: .5 - -#attendees li - +name_bubbles - -/*replicate button styles to work for fullcalendar */ -.calendar .fc-button - +user-select(none) - padding: $buttonPadding - - //these are just ui-state-default colors - font-size: 12px - border: 1px solid $borderColorDefault - color: $fcDefault - font-weight: normal - @include background-image(linear-gradient(white, #ffffff 25%, #e6e6e6)) - text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75) - border-bottom-color: #bbb - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05) - - & ~ .fc-button - border-left: 0 - margin-left: 0 - &.fc-state-hover - +vertical-gradient(white, #dfdfdf) - &.fc-state-down - +vertical-gradient(#a8a8a8, #c6c6c6) - &.fc-state-disabled - opacity: 0.7 // purposely not handling ie8 because having transparency makes it look weird - .fc-button-content - color: $textColor - text-shadow: #fff 0 1px 1px - &.fc-corner-left - +border-left-radius(4px) - &.fc-corner-right - +border-right-radius(4px) - -#edit_appt_calendar_event_form - p - margin-bottom: .5em - textarea - width: 500px - height: 100px - .max-participants - width: 40px - -.whats-new - float: right - margin-right: 10px diff --git a/app/stylesheets/jst/calendar/calendarApp.scss b/app/stylesheets/jst/calendar/calendarApp.scss new file mode 100644 index 00000000000..c3dd67ca5d5 --- /dev/null +++ b/app/stylesheets/jst/calendar/calendarApp.scss @@ -0,0 +1,288 @@ +@import "environment"; + +#main { + background-color: transparent; + border: none; +} + +#content { + padding-right: 0; +} + +#calendar-app { + position: relative; +} + +#calendar-header { + position: absolute; + right: 0; + top: 0; + width: 55%; + &.with-scheduler { + width: 58%; + } +} + +#change-calendar-version { + float: right; +} + +.calendar { + .fc-content { + background-color: white; + } + .fc-view-month .fc-widget-header { + color: #627382; + font-size: 14px; + background-color: #f6f7f9; + line-height: 35px; + } + .fc-widget-header, .fc-widget-content { + border-color: #dadada; + } + .fc-header { + h2 { + font-size: 18px; + padding: 0 16px; + } + } + .fc-other-month { + color: #b4b3b3; + background-color: #f8f9f9; + } + .fc-state-highlight { + background-color: #ecf3f6; + box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.3); + } + .fc-event-inner { + border-color: inherit; + width: auto; + padding-left: 3px; + } + .fc-event-time { + font-weight: bold; + } + .fc-agenda { + .fc-agenda-slots .fc-agenda-axis { + border-top-color: transparent; + } + .fc-widget-header { + background-color: #f6f7f9; + } + .scheduler-reserved { + font-weight: bold; + } + .scheduler-full { + background-color: #eeeeee !important; + } + } + .agenda-col-wrapper { + overflow: hidden; + display: inline-block; + color: #617582; + font-size: 9px; + font-weight: bold; + padding: 10px 0; + text-transform: uppercase; + text-align: left; + .day-num { + font-size: 24px; + float: left; + padding-right: 5px; + line-height: 23px; + text-shadow: -1px -1px 1px white; + } + .day-name { + float: left; + line-height: 13px; + } + .month-name { + line-height: 10px; + float: left; + color: #9da5ab; + } + } +} + +.fc-event.assignment, .fc-event.assignment_override { + .fc-event-inner div { + display: inline; + } + background-color: white; +} + +.counter-badge { + @include border-radius(8px); + background-color: #3cb5fb; + color: white; + text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.3); + box-shadow: inset 1px 0px 1px rgba(0, 0, 0, 0.3); + padding: 1px 6px; +} + +#refresh_calendar_link { + @include hide_text; + width: 20px; + height: 20px; + float: right; + background-image: url("/images/ajax-loader-black-on-white-static.gif"); + background-position: 50% 50%; + margin-left: 10px; + &.loading { + background-image: url("/images/ajax-loader-black-on-white.gif"); + } +} + +.event-details { + h3 { + margin-bottom: 0; + } + &.carat-bottom .ui-menu-carat span { + border-color: white transparent; + } + position: absolute; + z-index: 1000; + border: 1px solid #b0afaf; + box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); + background-color: white; + min-width: 250px; + max-width: 500px; + ul { + @include reset-list; + } + th { + font-weight: bold; + padding-bottom: 3px; + padding-right: 8px; + } + td,th { + vertical-align: top; + } + .delete_event_link { + float: right !important; + } +} + +.event-details-timestring { + margin: 5px 0 10px; + color: #666666; + font-size: 14px; +} + +.event-details-links { + a { + padding-right: 6px; + line-height: 28px; + border-right: 1px solid #333333; + } + a:last-child { + border-right: none; + } +} + +.event-details-header, +.event-details-content, +.event-details-footer { + @include clearfix; + padding: 10px; + border-bottom: 1px solid #eeeeee; + word-wrap: normal; + max-height: 225px; + &:last-child { + border-bottom: none; + } +} + +.event-details-header { + max-width: 460px; + overflow: auto; +} + +.event-details-content table { + th[scope=row] { + width: 55px; + } +} + +.event-details-actual-context { + font-size: 0.8em; + font-style: italic; + color: #666666; +} + +.event-detail-overflow { + min-height: 30px; + max-height: 160px; + max-width: 395px; + margin-bottom: 6px; + overflow: auto; +} + +.x-close-link { + padding-right: 5px; + opacity: 0.5; +} + +#attendees li { + @include name_bubbles; +} + +/*replicate button styles to work for fullcalendar */ +.calendar .fc-button { + @include user-select(none); + padding: $buttonPadding; + //these are just ui-state-default colors + font-size: 12px; + border: 1px solid $borderColorDefault; + color: $fcDefault; + font-weight: normal; + @include background-image(linear-gradient(white, white 25%, #e6e6e6)); + text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); + border-bottom-color: #bbbbbb; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + & ~ .fc-button { + border-left: 0; + margin-left: 0; + } + &.fc-state-hover { + @include vertical-gradient(white, #dfdfdf); + } + &.fc-state-down { + @include vertical-gradient(#a8a8a8, #c6c6c6); + } + &.fc-state-disabled { + opacity: 0.7; + } + .fc-button-content { + color: $textColor; + text-shadow: white 0 1px 1px; + } + &.fc-corner-left { + @include border-left-radius(4px); + } + &.fc-corner-right { + @include border-right-radius(4px); + } +} + +#edit_appt_calendar_event_form { + p { + margin-bottom: 0.5em; + } + textarea { + width: 500px; + height: 100px; + } + .max-participants { + width: 40px; + } +} + +.whats-new { + float: right; + margin-right: 10px; +} + +.event_button { + margin-left: 3px; +} \ No newline at end of file diff --git a/app/stylesheets/utilities/_alignment.scss b/app/stylesheets/utilities/_alignment.scss index c3bea425d23..410e370350d 100644 --- a/app/stylesheets/utilities/_alignment.scss +++ b/app/stylesheets/utilities/_alignment.scss @@ -1,4 +1,11 @@ -.align-right { +// You should no longer use .align-right and instead use .text-right +// because Bootstrap 2.3 includes these styles by default +.align-right, .text-right { text-align: right; } - +.text-left { + text-align: left; +} +.text-center { + text-align: center; +} diff --git a/app/views/calendars/_calendar.html.erb b/app/views/calendars/_calendar.html.erb index d2d0d07c609..b8befd40d83 100644 --- a/app/views/calendars/_calendar.html.erb +++ b/app/views/calendars/_calendar.html.erb @@ -24,7 +24,7 @@ <%= render :partial => 'calendars/mini_calendar', :locals => {:current => current, :first_day => first_day } %>
-
+
<%= t :calendars_count, { :one => "1 calendar, %{open_count} open", :other => "%{count} calendars, %{open_count} open" }, :count => @contexts.length, :open_count => ''.html_safe %>
@@ -59,7 +59,7 @@ <%= render :partial => 'event', :collection => @undated_events %>
-
+
<%= t 'links.add_event', "Add Event" %>
@@ -95,7 +95,7 @@ - - - - @@ -224,10 +222,8 @@ - - - - diff --git a/app/views/jst/calendar/editAssignment.handlebars b/app/views/jst/calendar/editAssignment.handlebars index 262ba812a74..d5e73754e87 100644 --- a/app/views/jst/calendar/editAssignment.handlebars +++ b/app/views/jst/calendar/editAssignment.handlebars @@ -1,43 +1,40 @@ -
-
+
<%= t 'links.more_options', "more options" %>
+ + <%= t 'links.more_options', "More Options" %>
<%= t 'links.more_options', "more options" %>
+ + <%= t 'links.more_options', "More Options" %>
- - - - - - - - - - - - - - - - - - - - - - - -
{{#t "title"}}Title:{{/t}}
{{#t "due"}}Due:{{/t}} - -
{{#t "calendar"}}Calendar:{{/t}} - -
{{#t "group"}}Group:{{/t}} - -
{{#t "links.more_options"}}more options{{/t}}
- -
+
+ + + + + + + + + + + + + + + + + +
{{#t "title"}}Title:{{/t}}
{{#t "due"}}Due:{{/t}} + +
{{#t "calendar"}}Calendar:{{/t}} + +
{{#t "group"}}Group:{{/t}} + +
+
+ \ No newline at end of file diff --git a/app/views/jst/calendar/editCalendarEvent.handlebars b/app/views/jst/calendar/editCalendarEvent.handlebars index 471ceffa7f6..3d61397bfdc 100644 --- a/app/views/jst/calendar/editCalendarEvent.handlebars +++ b/app/views/jst/calendar/editCalendarEvent.handlebars @@ -1,46 +1,45 @@
- - - - - - - - - - - - - - - - - - - - - - -
{{#t "title"}}Title:{{/t}} - {{#if lockedTitle}} - {{title}} - {{else}} - - {{/if}} -
{{#t "date"}}Date:{{/t}}
{{#t "from"}}From:{{/t}} -
- {{#t "timespan_separator"}}
to
{{/t}} -
-
-
{{#t "calendar"}}Calendar:{{/t}} - -
{{#t "links.more_options"}}more options{{/t}}
- -
+
+ + + + + + + + + + + + + + + + + +
{{#t "title"}}Title:{{/t}} + {{#if lockedTitle}} + {{title}} + {{else}} + + {{/if}} +
{{#t "date"}}Date:{{/t}}
{{#t "from"}}From:{{/t}} +
+ {{#t "timespan_separator"}}
to
{{/t}} +
+
+
{{#t "calendar"}}Calendar:{{/t}} + +
+
+
diff --git a/app/views/jst/calendar/eventDetails.handlebars b/app/views/jst/calendar/eventDetails.handlebars index cd35a188b37..aca0e21156c 100644 --- a/app/views/jst/calendar/eventDetails.handlebars +++ b/app/views/jst/calendar/eventDetails.handlebars @@ -74,8 +74,11 @@ {{/if}}