diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 59f9436e..d81f74af 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -6,4 +6,5 @@ *= require jquery.fileupload-ui *= require jquery-ui-timepicker-addon *= require jquery.dataTables_themeroller + *= require osem-schedule-print */ diff --git a/app/assets/stylesheets/osem-schedule-print.css b/app/assets/stylesheets/osem-schedule-print.css new file mode 100644 index 00000000..54fc3593 --- /dev/null +++ b/app/assets/stylesheets/osem-schedule-print.css @@ -0,0 +1,64 @@ +@media print { + +.navbar { + display: none; +} +.nav li, .tab-pane, #messages, #footer, h2, .text-error, br, .label, .schedule-subtitle, .schedule-track { + display: none; +} +.nav li.active, .tab-pane .active { + display: block; + width: 100%; + text-align: center; + text-size: 12px; + border-style: none; + font-weight: bold; +} +.nav-tabs { + border-bottom-style: none; +} +.nav-tabs > .active > a { + border-style: none; +} +#wrap { + min-height:0px; + height:auto; + margin:0px; + line-height: 12px; + font-size: 10px; +} +#content { + position: absolute; + top: 0px; + left: 0px; + max-width: 210mm !important; + max-height: 297mm !important; + padding: 10px; +} +#schedule td.event { + background-image: none; + border-style:solid; + border-width: 2px; + border-color: black; + line-height: auto; + font-size: 10px; +} +.event img, .img-circle { + display: none; +} +h5 { + font-size: 10px; + line-height: 12px; + margin: 0px; +} +.table th, .table td { + line-height: 12px; + padding: 3px; +} + +.schedule-speaker { + font-weight: normal; + font-style: italic; +} + +} diff --git a/app/assets/stylesheets/osem.css b/app/assets/stylesheets/osem.css index 275ad382..a767ed11 100644 --- a/app/assets/stylesheets/osem.css +++ b/app/assets/stylesheets/osem.css @@ -178,4 +178,13 @@ background-image: -webkit-gradient( left: 0; width: 100%; height: 100%; -} \ No newline at end of file +} + +.schedule-title, .schedule-subtitle, .schedule-speaker, .schedule-track { + clear: none; + display: block; +} + +.schedule-subtitle { + color: rgb(185, 74, 72); +} diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 9b38d0df..69def2b4 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -6,7 +6,7 @@ %title= content_for?(:title) ? yield(:title) : "OSEM" %meta{:content => "", :name => "description"} %meta{:content => "", :name => "author"} - = stylesheet_link_tag "application" + = stylesheet_link_tag "application", :media => "all" = javascript_include_tag "application" = csrf_meta_tags :javascript diff --git a/app/views/schedule/index.html.erb b/app/views/schedule/index.html.erb index fb05a202..4b4e2aee 100644 --- a/app/views/schedule/index.html.erb +++ b/app/views/schedule/index.html.erb @@ -46,16 +46,24 @@