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

122 lines
3.5 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. ++*/
@mixin html_body_spacing
margin: 0
padding: 0
height: 100%
@mixin default-transition
-webkit-transition: all 200ms ease-in-out 0s
-moz-transition: all 200ms ease-in-out 0s
-ms-transition: all 200ms ease-in-out 0s
-o-transition: all 200ms ease-in-out 0s
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
background-color: $button_bg_color
color: $button_font_color
@include default-transition
@include border-radius($button_border_radius)
margin: 10px 10px 0 0
padding: 5px 13px
line-height: 23px
font-size: 12px
font-weight: normal
&:hover
background-color: $button_bg_hover_color
color: $button_font_hover_color
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