kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
246 lines
5.7 KiB
246 lines
5.7 KiB
//-- copyright
|
|
// OpenProject is a project management system.
|
|
// Copyright (C) 2012-2015 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-2013 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 doc/COPYRIGHT.rdoc for more details.
|
|
//++
|
|
|
|
.project-search-results {
|
|
box-sizing: content-box; /* Opera/IE 8+ */
|
|
|
|
/* Fixing select2's positioning errors for results*/
|
|
margin-left: -1px;
|
|
|
|
/* Disabling rounded corners and drop shadow on result list */
|
|
border-radius : 0;
|
|
box-shadow : none;
|
|
|
|
.select2-results {
|
|
max-height: 55vh !important;
|
|
}
|
|
}
|
|
|
|
/* Hide upper half of select2-select widget */
|
|
#project-search-container .select2-choice {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/* Make no results a bit look like results */
|
|
.select2-results .select2-no-results,
|
|
.select2-results .select2-searching,
|
|
.select2-results .select2-more-results
|
|
{
|
|
background-color: #fff;
|
|
margin: 3px 6px 3px 6px;
|
|
}
|
|
.select2-results .select2-searching,
|
|
.select2-results .select2-more-results
|
|
{
|
|
background: image-url('select2/select2-spinner.gif') no-repeat scroll 100% center #fff;
|
|
}
|
|
|
|
|
|
/* Selected elements should be bold, have inverted colors and rounded corners */
|
|
.select2-results .select2-highlighted {
|
|
border-radius: 5px;
|
|
|
|
background-color: $drop-down-selected-bg-color;
|
|
font-weight:bold;
|
|
}
|
|
.select2-results .select2-result-unselectable {
|
|
color: #999;
|
|
background:transparent;
|
|
}
|
|
|
|
|
|
/* Shorten overlong project names */
|
|
.select2-results .select2-result-label {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
-ms-text-overflow: ellipsis;
|
|
-o-text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.controller-work_packages.action-index .select2-drop:not(.project-search-results) .select2-results .select2-result-selectable {
|
|
color: #000;
|
|
}
|
|
|
|
.controller-work_packages.action-index .select2-drop:not(.project-search-results) .select2-results .select2-result-selectable.select2-highlighted {
|
|
color: #fff;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.select2-drop {
|
|
z-index: 30001;
|
|
}
|
|
|
|
.select2-drop-mask {
|
|
z-index: 30000;
|
|
}
|
|
|
|
.select2-display-none {
|
|
display: none;
|
|
}
|
|
|
|
.ui-select-container {
|
|
// HACK. TODO: Remove ul overrides in various places.
|
|
// See: https://community.openproject.org/work_packages/18330
|
|
|
|
ul {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
//$se2- select2 var prefix
|
|
$se2-theme-selectable-color: #f8f8f8;
|
|
//{bgThemeHighlight}
|
|
$se2-theme-selectable-color-highlighted: $drop-down-selected-bg-color;
|
|
$se2-theme-selectable-font-color-highlighted: $drop-down-selected-font-color;
|
|
|
|
$se2-element-height: 33px;
|
|
$se2-input-height: rem-calc(34px);
|
|
$se2-line-height: 30px;
|
|
$se2-button-width: 28px;
|
|
$se2-arrow-button-width: 18px;
|
|
$se2-results-max-height: 200px;
|
|
|
|
$se-multiple-input-line-height: 19px;
|
|
$se-multiple-tags-line-height: 19px;
|
|
|
|
$se2-width: 100%;
|
|
|
|
.select2-container {
|
|
//Indirectly styling size of result list
|
|
width: $se2-width;
|
|
|
|
.select2-choice {
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
background: none;
|
|
height: $se2-element-height;
|
|
line-height: $se2-element-height;
|
|
|
|
.select2-chosen {
|
|
line-height: $se2-line-height;
|
|
}
|
|
|
|
.select2-arrow {
|
|
background: $se2-theme-selectable-color none;
|
|
border-radius: 0;
|
|
line-height: $se2-line-height;
|
|
text-align: center;
|
|
width: $se2-button-width;
|
|
|
|
> b {
|
|
display: inline-block;
|
|
height: $se2-arrow-button-width;
|
|
width: $se2-arrow-button-width;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.select2-container-multi {
|
|
.select2-search-choice {
|
|
margin: 7px 0 0 5px;
|
|
|
|
&:nth-last-of-type(1) {
|
|
margin-bottom: 7px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.ui-select-multiple {
|
|
|
|
.ui-select-search {
|
|
line-height: $se-multiple-input-line-height;
|
|
}
|
|
|
|
.ui-select-match-item {
|
|
line-height: $se-multiple-tags-line-height;
|
|
}
|
|
|
|
}
|
|
|
|
&.select2-dropdown-open {
|
|
|
|
.select2-choice {
|
|
background-color: $se2-theme-selectable-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.select2-drop {
|
|
.select2-search {
|
|
&:before {
|
|
content: "\e0a1";
|
|
font-family: "openproject-icon-font";
|
|
color: #E0E0E0;
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 16px;
|
|
}
|
|
|
|
.select2-input {
|
|
background-image: none !important;
|
|
padding-right: 32px;
|
|
height: $se2-input-height !important;
|
|
}
|
|
}
|
|
|
|
.select2-results {
|
|
max-height: $se2-results-max-height;
|
|
overflow: auto;
|
|
margin: 4px 9px 9px 0;
|
|
padding: 0 0 0 9px;
|
|
|
|
.select2-highlighted {
|
|
background-color: $se2-theme-selectable-color-highlighted;
|
|
color: $se2-theme-selectable-font-color-highlighted;
|
|
}
|
|
}
|
|
}
|
|
|
|
.select2-drop:not(.project-search-results) {
|
|
input[type="text"].select2-input {
|
|
height: $se2-input-height !important;
|
|
}
|
|
|
|
.select2-search {
|
|
margin: 10px 0 6px 0;
|
|
padding: 0 9px;
|
|
|
|
input {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.columns-modal-content {
|
|
.select2-container {
|
|
max-width: calc(100% - 45px);
|
|
}
|
|
}
|
|
|
|
|