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

115 lines
4.1 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.
//++
$button-font-color: #222222 !default
$button-background-color: $gray-light !default
$button-background-hover-color: darken($button-background-color, 4.5%) !default
$button-border-color: darken($button-background-color, 10.5%) !default
$button-active-font-color: darken($button-background-color, 24%) !default
$button-active-background-color: darken($button-background-color, 4%) !default
$button-active-border-color: darken($button-background-color, 18%) !default
$button-highlight-font-color: white !default
$button-highlight-background-color: $primary-color !default
$button-highlight-background-hover-color: $primary-color-dark !default
$button-success-font-color: white !default
$button-success-background-color: $success-color !default
$button-success-background-hover-color: darken($success-color, 18%) !default
$button-border-radius: 2px !default
.button,
a.button
@extend %button
@include button-size(medium)
@include button-expand(false)
@include button-style($button-background-color, $button-background-hover-color, $button-font-color, $button-style)
border: 1px solid $button-border-color
transition-property: background, border
transition-duration: 0.25s
transition-timing-function: ease-out
&:disabled
@include button-disabled
&:hover
text-decoration: none
&.-highlight
@include button-style($button-highlight-background-color, $button-highlight-background-hover-color, $button-highlight-font-color, $button-style)
border-color: $button-highlight-background-color
&:hover, &:focus
border-color: $button-highlight-background-hover-color
&.-success
@include button-style($button-success-background-color, $button-success-background-hover-color, $button-success-font-color, $button-style)
border-color: $button-success-background-color
&:hover, &:focus
border-color: $button-success-background-hover-color
&.-active
@include button-style($button-active-background-color, $button-active-background-color, $button-active-font-color, $button-style)
border-color: $button-active-border-color
box-shadow: 0 0 3px $button-active-border-color inset
&.-transparent
@include button-style($background: $button-font-color, $style: hollow)
border-color: transparent
&:hover, &:focus
border-color: $button-border-color
&.-active
background: $button-active-background-color
&:hover, &:focus
border-color: $button-active-border-color
&.-tiny
@include button-size(tiny)
&.-small
@include button-size(small)
&.-large
@include button-size(large)
&.-expand
@include button-expand
&.-round
border-radius: 2em