OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/assets/stylesheets/layout/work_packages/_table.sass

194 lines
5.5 KiB

//-- 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.
//++
.router--work-packages-list-view,
.router--work-packages-full-view,
.router--work-packages-full-create
.in_modal &
#main
top: 12px
.router--work-packages-list-view:not(.router--work-packages-full-create)
@include extended-content--bottom
@include extended-content--right
// 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
.openproject-base--ui-view,
.work-packages-page--ui-view
height: 100%
.work-packages-list-view--container
// Flexbox for the toolbar, filters and work package split view
display: flex
flex-direction: column
height: 100%
> .toolbar-container
margin-top: 5px
[27828] Feature: Query menu in sidenav (#6429) * in main menu add gantt as extra work package child item * Satisfy spec and code climate * Add gantt chart icon behin default gantt query name. * WIP Query menu in left sidebar * Shift query dropdown in left sidenav * Reload menu or load query on click from every project location * WIP set correct label for default queries * Query menu listens on all changes of queries (delete, create, rename, toggle starred) and updates immediatly * WIP: Inline edit, field validation * Inline Edit validation and comfirm * Inline edit: validation of duplicate name * Set default columns and sorting for static queries * Codeclimate issues fixed * WIP Inline edit validation not working perfectly in all error states * Inline edit working * Autocompleter hover disabled and hovering over categories fixed * Category hover and toggle fixed; tested in Chrome, Firefox and Opera * Placeholder cut off fixed and text wrap added * English and german wording adjusted * Styles of inline edit and menu adjusted; matching wiki page styles * prevent menus to be displayed to often * application menu only displayed on work package * specify using no_menu layout more often * adapt tests to altered production implementation * Hamburger icon only in project; on global wp page: default queries shown correctly and summary removed * searching for undefined leads to error * Accessible click fixed (listen on escape) * Gantt in top menu deleted (gantt chart is part of default queries on wp page) * load menu on wp summary page * reduce times queries are loaded * lowercase on second word * remove menu from search and home * Styles fixed (category toggle and correct highlighting) * reflect static query in url * fix autocomplete handling in specs * Open all global menus on default and hide hamburger icon on global pages; Rebuild changes that have been ovrwritten after merge" * Correct highlighting of default queries after reload * Replace summary cuke with spec * WIP * Clear up selectors * Avoid actively setting promises and instead use $state.go to load links [ci skip] * Make editable title component a little simpler We can reuse the component I built for the wiki, that wasn't present in the frontend beforehand. * Fix moving through the menu and selecting items [ci skip] * Add save button to query title when query changed * Improve static names lookup by comparing query_props * Adapt and fix specs * Allow inner scrolling of wp query results Also, style the webkit scrollbar to make it pretty where supported * Allow renaming the query through setting menu, but simply focus on field [ci skip]
6 years ago
input[type="text"].toolbar--editable-toolbar
font-size: 24px
.work-packages--filters-optional-container
// not flex-item
height: auto
overflow: auto
flex-shrink: 0
// 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
// Match both rows and timeline specifically
tr.row-hovered,
div.row-hovered
// Use important to override the background styles from __hl classes
// That also have to be important (cf. 30863)
background: #E5F2FA !important
z-index: 1
// 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
// Only add padding to lower/right corner
// to override default margins
.pagination
margin: 0
padding: 15px 10px 10px 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
@include styled-scroll-bar
// 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 except for size
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
@include styled-scroll-bar
// 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 except for size
contain: strict
.work-package--attachments--files
margin-bottom: 1rem
> h4
margin-top: 5px
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
.router--work-packages-base
#content
height: 100%
.icon-button, .sort-header, .action-icon
cursor: pointer
#attributes
.form--field-container
max-width: 400px