_button.scss 2.39 KB
Newer Older
Michael Herold's avatar
Michael Herold committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
Copyright (C) 2015 Michael Herold <quabla@hemio.de>

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 3 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, see <http://www.gnu.org/licenses/>.
*/
/* 
    Created on : Jan 20, 2015, 1:19:51 AM
    Author     : Michael Herold <quabla@hemio.de>
*/

22
23
24
25
.link_form {
    display: inline-block;
}

26
27
28
29
30
.selecting .link_form {
    display: block;
}


Michael Herold's avatar
Michael Herold committed
31
32
33
34
35
36
37
38
.button {
    @extend .input_style;
    @extend .input_position;

    width: auto;
    @include button-background($button-color);
    padding-right: 1em;
    padding-left: 1em;
39
    min-width: 7.5em;
40
    transition-property: opacity;
41
    transition-duration: 400ms;
Michael Herold's avatar
Michael Herold committed
42
43
}

Michael Herold's avatar
Michael Herold committed
44
45
46
47
button * {
    float: none !important;
}

Michael Herold's avatar
Michael Herold committed
48
49
50
51
52
53
54
55
56
57
58
59
.button:enabled:hover, span.select:hover, button:focus {
    @include button-background-hover($button-color);
}

.button:enabled:active {
    @include button-background-active($button-color);
}

button {
    @extend .button;
}

60
61
62
63
button:disabled {
    opacity: 0.4;
}

Michael Herold's avatar
Michael Herold committed
64
65
66
button.suggested {
    border-color: $button-suggested-border-color;
    @include button-background($button-suggested-color);
Michael Herold's avatar
Michael Herold committed
67
    color: $button-suggested-text-color;
Michael Herold's avatar
Michael Herold committed
68
69
70
71
72
73
74
75
76
77
78
79
80
81
    text-shadow: 1px 1px rgb(50,50,50);
}

button.suggested:hover, button.suggested:focus {
    @include button-background-hover($button-suggested-color);
}

button.suggested:active {
    @include button-background-active($button-suggested-color);
}

form[method="post"] button:default, button[form]:default {
    @extend button.suggested;
}
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

// delete dialogs

.delete_dialog button.suggested {
    border-color: $button-delete-border-color;
    @include button-background($button-delete-color);
}

.delete_dialog button.suggested:hover, .delete_dialog button.suggested:focus {
    @include button-background-hover($button-delete-color);
}

.delete_dialog button.suggested:active {
    @include button-background-active($button-delete-color);
}

.delete_dialog .delete_perimition:not(:checked) ~ fieldset button.suggested {
99
    opacity: 0.3;
100
}