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/global/_mixins.sass

180 lines
5.6 KiB

/*-- copyright
* OpenProject is a project management system.
* Copyright (C) 2012-2013 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. ++*/
$vendors: "-webkit-", "-moz-", "-ms-", "-o-", ""
$button_gray_font_color: #222222
@mixin html_body_spacing
margin: 0
padding: 0
height: 100%
@mixin default-transition
@each $vendor in $vendors
#{$vendor}transition: all 200ms ease-in-out 0s
@mixin default-font-normal($color, $font-size: 13px)
color: $color
font-size: $font-size
font-family: $font_family_normal
font-weight: normal
@mixin default-font-bold($color, $font-size: 13px)
color: $color
font-size: $font-size
font-family: $font_family_bold
font-weight: normal
@mixin main-menu-font
font-style: normal
font-family: $font_family_normal
@mixin header-fonts($color, $font-size: $header_item_font_size)
@include default-font-normal($color, $font-size)
@mixin breadcrumb-font($color)
@include default-font-normal($color, $breadcrumb_font_size)
@mixin breadcrumb-font-bold($color)
@include default-font-bold($color, $breadcrumb_font_size)
@mixin border-radius($radius)
-webkit-border-radius: $radius
-moz-border-radius: $radius
border-radius: $radius
@mixin button-highlight-background
border: 1px solid #06799F
background: #0b8db8
background: -moz-linear-gradient(top, #0b8db8 0%, #06799f 100%)
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0b8db8), color-stop(100%,#06799f))
background: -webkit-linear-gradient(top, #0b8db8 0%,#06799f 100%)
background: -o-linear-gradient(top, #0b8db8 0%,#06799f 100%)
background: -ms-linear-gradient(top, #0b8db8 0%,#06799f 100%)
background: linear-gradient(to bottom, #0b8db8 0%,#06799f 100%)
&:hover
border: 1px solid #3493B3
background: #3493B3
@mixin button-background
border: 1px solid #ccc
background: #ffffff
background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee 74%, #eeeeee 100%)
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(74%,#eeeeee), color-stop(100%,#eeeeee))
background: -webkit-linear-gradient(top, #ffffff 0%,#eeeeee 74%,#eeeeee 100%)
background: -o-linear-gradient(top, #ffffff 0%,#eeeeee 74%,#eeeeee 100%)
background: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 74%,#eeeeee 100%)
background: linear-gradient(to bottom, #ffffff 0%,#eeeeee 74%,#eeeeee 100%)
&:hover
border: 1px solid #777777
background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee 40%, #ddd 100%)
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(40%,#eeeeee), color-stop(100%,#ddd))
background: -webkit-linear-gradient(top, #ffffff 0%,#eeeeee 74%,#ddd 100%)
background: -o-linear-gradient(top, #ffffff 0%,#eeeeee 40%,#ddd 100%)
background: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 40%,#ddd 100%)
background: linear-gradient(to bottom, #ffffff 0%,#eeeeee 40%,#ddd 100%)
@mixin button-common
@include border-radius($button_border_radius)
margin: 10px 10px 0 0
line-height: 23px
font-size: $global_font_size
font-weight: normal
cursor: pointer
@mixin button-normal-size
padding: 4px 10px
@mixin button-big-size
padding: 7px 16px 5px
@mixin button-highlight
color: $button_highlight_font_color
@include button-common
@include button-normal-size
@include button-highlight-background
color: $button_highlight_font_hover_color
&:hover
text-decoration: none
@mixin button
color: $button_font_color
@include button-common
@include button-normal-size
@include button-background
color: $button_font_hover_color
&:hover
text-decoration: none
@mixin content-box
margin-top: 20px
padding: 25px
border: $content_box_border
background-color: $content_box_bg_color
min-height: 65px
zoom: 1
overflow-x: auto
h3, h2
border-bottom: 1px solid #EAEAEA
color: #444444
font-size: 17px
font-weight: normal
margin: 0 0 20px
padding: 5px 0 10px
table
padding: 10px
margin-top: 15px
margin-bottom: 15px
table
&.issues td, &.list, th
border: none
padding: 0
width: auto
padding-right: 30px
padding-bottom: 5px
th
border: none
background: transparent
font-weight: bold
tr.even
background-color: white
ul
margin-bottom: 20px
@mixin text-shortener
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
-o-text-overflow: ellipsis
-ms-text-overflow: ellipsis