/
index.styl
101 lines (92 loc) · 2.14 KB
/
index.styl
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
@import "../variables";
.workspace {
.dropzone-overlay {
position: fixed;
top: $navbar-height;
bottom: 0;
left: $sidebar-width;
right: 0;
z-index: 100;
background-color: rgba(255, 255, 255, .5);
border: 4px dashed #286090;
text-align: center;
pointer-events: none;
&.hidden {
display: none;
}
.text-block {
position: absolute;
top: 25%;
left: 50%;
transform: translate(-50%, -50%);
color: #666;
font-size: 32px;
}
}
.dropzone {
height: 100%;
}
.workspace-table {
display: table;
width: 100%;
}
.workspace-table-row {
display: table-row;
}
.primary-container,
.secondary-container,
.primary-toggler,
.secondary-toggler,
.default-container {
display: table-cell;
position: relative;
}
.primary-container {
border-right: 1px solid #ccc;
}
.secondary-container {
border-left: 1px solid #ccc;
}
.primary-container,
.secondary-container {
vertical-align: top;
background-color: #f6f7f8;
width: 360px;
max-width: 360px;
min-width: 360px;
padding: 0 10px;
&.hidden {
display: none;
}
.toolbar {
clearfix();
margin-top: 5px;
margin-bottom: 5px;
}
}
.primary-toggler,
.secondary-toggler {
background-color: #f6f7f8;
padding-top: 5px;
text-align: center;
width: 32px;
// http://stackoverflow.com/questions/32272158/how-to-use-a-stylus-variable-in-calc
height: 'calc(100vh - %s)' % ($navbar-height);
}
.primary-toggler {
border-right: 1px solid #ccc;
}
.secondary-toggler {
border-left: 1px solid #ccc;
}
.default-container {
min-width: 360px;
&.fixed {
position: fixed;
left: 360px;
right: 360px;
top: ($navbar-height + 1);
bottom: 0;
}
}
}