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/_modal.sass

144 lines
3.4 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.
//++
$ng-modal-padding: 3em
$ng-modal-background: $body-background
$ng-modal-close-color: $light-gray
$ng-modal-image-height: 135px
$ng-modal-image-width: $ng-modal-image-height
// Based on code by Kasper Mikiewicz
.ng-modal-open
overflow: hidden
.ng-modal-window
// overlay
+position(fixed, 0 0 0 0)
background: rgba(0, 0, 0, 0.5)
text-align: left
z-index: 10000
.ng-modal-bg
+position(absolute, 0 0 0 0)
cursor: pointer
&.ng-enter
+transition(opacity 0.25s ease)
opacity: 0
visibility: hidden
&.ng-enter.ng-enter-active
opacity: 1
visibility: visible
.ng-modal-inner
top: 0
.ng-modal-inner
+transition(opacity 0.25s ease)
background: $ng-modal-background
margin: auto
max-height: 95%
position: relative
width: 95%
padding: $ng-modal-padding / 2
margin-top: .6em
//+media($medium-screen)
//padding: $ng-modal-padding
//width: 50%
//max-height: 50%
//margin-top: 10em
//+media($large-screen)
width: 40%
margin-top: 10em
.modal-header
padding: 0
i
float: right
cursor: pointer
.select2-container
margin: 0 0 10px 0
#modal-sorting
10 years ago
min-height: 120px
.select2-container
10 years ago
float: left
margin-right: 20px
@media(max-width: 1800px)
width: 280px
@media(max-width: 1400px)
width: 230px
@media(max-width: 1100px)
width: 160px
@media(max-width: 800px)
width: 120px
10 years ago
label.option-label
float: left
margin-right: 20px
.columns-modal-content
margin-bottom: 15px
label
display: inline
padding-right: 30px
ul.export-options
margin: 0
padding: 20px 0
list-style-type: none
li
margin: 0 0 30px 0
text-align: center
display: inline-block
min-width: 32%
a
cursor: pointer
text-decoration: none
color: $body-font-color
font-weight: normal
&:hover, &:active
text-decoration: none
color: $body-font-color
span.export-label
display: block
padding: 10px 0 0 0
// Legacy styles for jQuery UI modal
.ui-dialog.ui-widget
overflow: visible
// remove iframe border explicitly because Firefox does add it for some reason
#modalIframe
border: 0