kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
133 lines
4.5 KiB
133 lines
4.5 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: $font-color-on-primary !default
|
|
$button--highlight-background-color: $primary-color !default
|
|
$button--highlight-background-hover-color: $primary-color-dark !default
|
|
|
|
$button--alt-highlight-font-color: $font-color-on-alternative !default
|
|
$button--alt-highlight-background-color: $alternative-color !default
|
|
$button--alt-highlight-background-hover-color: darken($alternative-color, 18%) !default
|
|
|
|
$button--text-icon-spacing: 0.65em !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
|
|
|
|
&.-with-icon
|
|
&::before
|
|
padding: 0 $button--text-icon-spacing 0 0
|
|
|
|
&.-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
|
|
|
|
|
|
&.-alt-highlight
|
|
@include button-style($button--alt-highlight-background-color, $button--alt-highlight-background-hover-color, $button--alt-highlight-font-color, $button-style)
|
|
border-color: $button--alt-highlight-background-color
|
|
|
|
&:hover, &:focus
|
|
border-color: $button--alt-highlight-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
|
|
|
|
.button--icon
|
|
@include icon-common
|
|
|
|
.button--icon + .button--text,
|
|
.button--text + .button--icon
|
|
margin: 0 0 0 $button--text-icon-spacing
|
|
|
|
.button--dropdown-indicator
|
|
@include icon-common
|
|
padding: 0 0 0 3px
|
|
font-size: rem-calc(13px)
|
|
|
|
&:before
|
|
@extend .icon-pulldown-arrow1:before
|
|
|