//-- copyright // OpenProject is a project management system. // Copyright (C) 2012-2018 the OpenProject Foundation (OPF) // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License version 3. // // OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: // Copyright (C) 2006-2017 Jean-Philippe Lang // Copyright (C) 2010-2013 the ChiliProject Team // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // See docs/COPYRIGHT.rdoc for more details. //++ .controller-work_packages.action-index, .controller-work_packages.action-show, .controller-work_packages.full-create @extend %absolute-layout-mode #content-wrapper, #content padding: 0 .in_modal & #main top: 12px // Ensure correct height applied to child elements. // The dom looks like this: // flash (generated from rails - if it was generated when rendering the page) // div[ui-view] (main content we want to adjust the height for) // div style="clear:both;" (is pushed to overflow - of no relevance) // // This makes use of more specific rules overwriting less specific ones. // Per default, the height is always 100% .work-packages-page--ui-view height: 100% .work-packages-list-view--container // Set padding on left side padding-left: 20px // Flexbox for the toolbar, filters and work package split view display: flex flex-direction: column height: 100% > .toolbar-container margin-top: 0.5rem // not flex-item padding-right: 15px .work-packages--filters-optional-container // not flex-item height: auto flex-shrink: 0 // Filters are hidden when not expanded // When expanded, add some padding to the table padding-bottom: 20px // Outer Flex container for (table+timeline)|details .work-packages-split-view flex: 1 1 auto display: flex // Required for correctly scrolling the inner containers overflow: hidden .row-hovered background: rgba( $table-row-highlighting-color, 0.6) z-index: 100 // Left part of the split view // == flex container for (table|timeline) .work-packages-split-view--tabletimeline-side flex: 2 display: flex flex-direction: column // Required for any absolute positioned elements within the viewport // (e.g., timeline controls) position: relative // Required for correctly scrolling the inner containers overflow: hidden // Content of the left side // == flex container for (table+timeline) .work-packages-split-view--tabletimeline-content flex: 1 display: flex overflow: hidden // Footer of the left side .work-packages-split-view--tabletimeline-footer flex: 0 0 55px // Only add padding to lower/right corner // to override default margins .pagination margin: 0 padding: 15px 10px 5px 0 .pagination--pages, .pagination--options margin: 0 // TABLE half of the tabletimeline flexbox .work-packages-tabletimeline--table-side // Same flex as timeline flex: 1 1 // Show scrollbars for inner content overflow: auto // relative for loading indicator position: relative // Hint browser that this will inner-scroll will-change: transform // Hinter browser that the content of the flex is contained contain: strict &.-timeline-visible // Show the horizontal scrollbar _always_ (same as timeline) overflow-x: scroll // Hide the vertical scrollbar overflow-y: hidden // TIMELINE half of the tabletimeline flexbox .work-packages-tabletimeline--timeline-side @include varprop(border-left, timeline--separator) flex-basis: 50% // Show the horizontal scrollbar _always_ (same as table) overflow-x: scroll // Show the vertical scrollbar when necessary overflow-y: auto // Hidden by default display: none // Hint browser that this will inner-scroll will-change: transform // Hinter browser that the content of the flex is contained contain: strict .work-package--attachments--files margin-bottom: 1rem > h4 margin-top: 5px .inplace-edit--read-value padding: 0.375rem 0.6rem i display: inline-block &:before vertical-align: middle padding-top: 0 .work-package--attachments--filename display: inline-block line-height: 1.4 // FF & IE word-break: break-all // Chrome & Safari word-break: break-word width: 90% vertical-align: middle .work-package--attachments--info display: inline-block margin-left: 5px font-size: 12px @include varprop(color, body-font-color) font-style: italic &:hover text-decoration: none .controller-work_packages .icon-button, .sort-header, .action-icon cursor: pointer #attributes .form--field-container max-width: 400px // Workaround to make the toolbar menu accessible even on very small screens @media screen and (max-height: 25em) .controller-work_packages.action-show, .controller-work_packages.action-details, .controller-work_packages.action-index #main overflow: overlay #content-wrapper, #content overflow-y: auto