_pile.scss 2.62 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
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:18:57 AM
    Author     : Michael Herold <quabla@hemio.de>
*/

article {
    @extend .window;
}

nav {
    @extend .window;
}

/*** label and input basics ***/

form p {
    margin: 1em 1.5em;
}

fieldset {
    margin: 1.7em 1.5em 1em 1.5em;
}

form p, fieldset.buttons {
    sline-height: $control-height;
}

.input_row {
    display: flex;
    min-height: 2.4em;
    align-items: center;
}

form p {
    @extend .input_row;
}

.input_label {
    width: $label-width;
    margin-right: 1.5em;
    display: inline-block;
    text-align: right;
    order: 1;
}

label {
    @extend .input_label;
}

.input_text_style {
    font-family: inherit;
    font-size: 1em;
    color: inherit;
    text-shadow: inherit;

    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: $control-height;

    padding: 0 0.5em;
    text-overflow: ellipsis;
}

.input_style {
    @extend .input_text_style;

Michael Herold's avatar
Michael Herold committed
84
    background-color: lighten($control-background-color, $control-background-color-lighten-1);
Michael Herold's avatar
Michael Herold committed
85
    background: linear-gradient(
Michael Herold's avatar
Michael Herold committed
86
87
88
        $control-background-color 0%, 
        lighten($control-background-color, $control-background-color-lighten-1) 0.25em,
        lighten($control-background-color, $control-background-color-lighten-2) 100%
Michael Herold's avatar
Michael Herold committed
89
        );
Michael Herold's avatar
Michael Herold committed
90
91
    
    box-shadow: 0 1px $control-shadow-color;
Michael Herold's avatar
Michael Herold committed
92
93
94
95
96
97
98
99
100
101
102
103

    width: $control-width;

    border: 1px solid $control-border-color;
    border-radius: 3px;

    transition-property: border-color;
    transition-duration: 200ms;
}

.input_style:focus {
    border-color: $button-suggested-color;
Michael Herold's avatar
Michael Herold committed
104
105
106
107
108
109
    border-width: 2px;
}

.input_style:-moz-ui-invalid {
    color: $control-invalid-color;
    border-color: $control-invalid-color;
Michael Herold's avatar
Michael Herold committed
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
}

input, textarea {
    @extend .input_style;
}

.input_position {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    min-height: $control-height;
    order: 2;
}

input, textarea {
    @extend .input_position;
}

::-moz-focus-inner { 
    border: 0;
    padding: 0;
}