-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.scss
More file actions
executable file
·132 lines (107 loc) · 2.22 KB
/
layout.scss
File metadata and controls
executable file
·132 lines (107 loc) · 2.22 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// @questions it seems stupid to have ipt-wrap, flex-line, simple-flex and input-control
// I have the feeling we maybe only need 1 or 2 of these (input-control has nice behavior)
.ipt-wrap {
display: table;
vertical-align: top;
box-sizing: border-box;
.ipt-start, .ipt-second, .ipt-first {
display: table-cell;
vertical-align: inherit;
}
.ipt-first {
width: 100%;
}
.ipt-second {
padding-left: .75rem;
}
}
.simple-flex {
display: flex;
flex-direction: row;
align-content: center;
align-items: center;
}
// @question consider to replace with input-control which has better behavior
.flex-line {
display: flex;
flex-direction: row;
& + * {
margin-top: .75rem;
}
> div {
flex: 1;
&:nth-child(n+2) {
padding-left: .75rem;
}
}
> div.fixed {
flex: 0;
flex-basis: auto;
}
}
div.sticky, section.sticky {
position: sticky;
top: 1rem;
}
.inline {
display: inline;
}
.form-group {
display: flex;
flex-direction: row;
flex-wrap: wrap;
> *:not(label) {
flex: 0 1 auto;
}
& + * {
margin-top: .75rem;
}
label {
font-size: .9rem;
flex: 0 0 100%;
display: inline-flex;
align-items: center;
padding-bottom: 5px;
&> i {
margin-right: .5rem;
}
}
span.checkbox+span.checkbox {
margin-left: 1.5rem;
}
.input-control {
flex: 1;
display: flex;
flex-direction: row;
flex-wrap: wrap;
& +.input-control {
margin-left: 1rem;
}
}
textarea, .contenteditable {
height: 8rem;
}
}
@media (max-width: 768px) {
.form-group, .flex-line {
flex-direction: column;
}
.form-group .input-control+.input-control {
margin-top: 1rem;
margin-left: 0;
}
}
@each $tuple in
'wf-100' 100%, 'wf-80' 80%, 'wf-20' 20%, 'wf-66' 66.66%,
'wf-50' 50%, 'wf-33' 33.33%, 'wf-25' 25%, 'wf-75' 75% {
.#{nth($tuple, 1)} {
width: #{nth($tuple, 2)};
}
}
.spacer {
padding: 5px;
}
.resizable {
resize: both;
overflow: auto;
}