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/content/menus/_project_autocompletion.sass

97 lines
2.6 KiB

7 years ago
#project-search-container
position: relative
project-menu-autocomplete
display: block
max-height: inherit
.project-menu-autocomplete--wrapper
display: flex
flex-direction: column
max-height: inherit
#project-search-container:nth-child(3)
// Substract header height and the two project menu items ("view all", "create new")
max-height: calc(100vh - #{$header-height} - 2 * 42px)
#project-search-container:nth-child(2)
// Substract header height and the project menu item ("view all")
max-height: calc(100vh - #{$header-height} - 42px)
7 years ago
.project-search-results
position: relative
overflow: hidden
max-height: inherit
width: 400px
background: white
// Avoid scrolling body when autocompleter is at bottom
// (May not be supported by all browsers yet, but soonish)
overscroll-behavior: contain
@include default-font($header-drop-down-projects-search-font-color, 13px)
li
padding: 0 10px
font-size: 14px
.select2-search
margin: 1px 0 0 0
color: #b3b3b3
border-top: 1px solid #D9D9D9
border-bottom: 1px solid #D9D9D9
&:before
color: #b3b3b3
top: 21px
right: 25px
font-size: 14px
7 years ago
// Search input wrapper
.project-menu-autocomplete--input-container
padding: 12px 0
border-width: 1px 1px 0px 1px
7 years ago
border-style: solid
border-color: $header-drop-down-border-color
7 years ago
// Search input
input.project-menu-autocomplete--input
7 years ago
margin: 0 10px
padding: 0px 32px 0px 10px
border: 1px solid #D9D9D9
border-radius: 3px
box-shadow: inset 0px 1px 3px 0px rgba(0,0,0,0.1)
box-sizing: border-box
width: calc(100% - 20px)
height: 2.125rem
background: $header-drop-down-projects-search-input-bg-color
// Lens icon on the right
.project-menu-autocomplete--search-icon
position: absolute
color: #b3b3b3
top: 20px
right: 20px
font-size: 14px
// Override top menu height
ul.project-menu-autocomplete--results
max-height: 55vh
overflow-y: auto
7 years ago
// Override the computed width of the input, but span the entire width
// of the dropdown
width: 398px !important
padding-top: 0px
7 years ago
// Borders to complete the menu look
border-right: 1px solid $header-drop-down-border-color
border-left: 1px solid $header-drop-down-border-color
@include styled-scroll-bar
7 years ago
// Cut off result element width
.ui-menu-item-wrapper
@include text-shortener
7 years ago
// Indent the no results pane
.project-menu-autocomplete--no-results
7 years ago
// Mirror border from ui results
border: 2px solid $header-drop-down-border-color
border-top: none
padding: 12px