OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * | 10 * |
11 * 2. Redistributions in binary form must reproduce the above | 11 * 2. Redistributions in binary form must reproduce the above |
12 * copyright notice, this list of conditions and the following disclaimer | 12 * copyright notice, this list of conditions and the following disclaimer |
13 * in the documentation and/or other materials provided with the | 13 * in the documentation and/or other materials provided with the |
14 * distribution. | 14 * distribution. |
15 * | 15 * |
16 * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. AND ITS CONTRIBUTORS | 16 * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. AND ITS CONTRIBUTORS |
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE INC. | 19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE INC. |
20 * OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 20 * OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 .split-view { | 29 .split-view { |
30 position: absolute; | |
31 top: 0; | |
32 bottom: 0; | |
33 left: 0; | |
34 right: 0; | |
35 overflow: hidden; | 30 overflow: hidden; |
36 } | 31 } |
37 | 32 |
38 .split-view-contents { | 33 .split-view-contents { |
39 position: absolute; | |
40 overflow: auto; | 34 overflow: auto; |
41 cursor: default; | 35 cursor: default; |
| 36 position: relative; |
42 } | 37 } |
43 | 38 |
44 .split-view-contents.maximized { | 39 .split-view-sidebar { |
45 width: 100%; | 40 flex: none; |
46 height: 100%; | |
47 } | 41 } |
48 | 42 |
49 .split-view-vertical > .split-view-contents { | 43 .split-view-main, .split-view-sidebar.maximized { |
50 top: 0; | 44 flex: auto; |
51 bottom: 0; | |
52 } | 45 } |
53 | 46 |
54 .split-view-vertical > .split-view-contents-first { | 47 .split-view.hbox > .split-view-sidebar.split-view-contents-first:not(.maximized)
{ |
55 left: 0; | |
56 } | |
57 | |
58 .split-view-vertical > .split-view-contents-first.maximized { | |
59 right: 0; | |
60 } | |
61 | |
62 .split-view-vertical > .split-view-contents-second { | |
63 right: 0; | |
64 } | |
65 | |
66 .split-view-vertical > .split-view-contents-second.maximized { | |
67 left: 0; | |
68 } | |
69 | |
70 .split-view-horizontal > .split-view-contents { | |
71 left: 0; | |
72 right: 0; | |
73 } | |
74 | |
75 .split-view-horizontal > .split-view-contents-first { | |
76 top: 0; | |
77 } | |
78 | |
79 .split-view-horizontal > .split-view-contents-first.maximized { | |
80 bottom: 0; | |
81 } | |
82 | |
83 .split-view-horizontal > .split-view-contents-second { | |
84 bottom: 0; | |
85 } | |
86 | |
87 .split-view-horizontal > .split-view-contents-second.maximized { | |
88 top: 0; | |
89 } | |
90 | |
91 .split-view-vertical > .split-view-sidebar.split-view-contents-first:not(.maximi
zed) { | |
92 border-right: 1px solid rgb(64%, 64%, 64%); | 48 border-right: 1px solid rgb(64%, 64%, 64%); |
93 } | 49 } |
94 | 50 |
95 .split-view-vertical > .split-view-sidebar.split-view-contents-second:not(.maxim
ized) { | 51 .split-view.hbox > .split-view-sidebar.split-view-contents-second:not(.maximized
) { |
96 border-left: 1px solid rgb(64%, 64%, 64%); | 52 border-left: 1px solid rgb(64%, 64%, 64%); |
97 } | 53 } |
98 | 54 |
99 .split-view-horizontal > .split-view-sidebar.split-view-contents-first:not(.maxi
mized) { | 55 .split-view.vbox > .split-view-sidebar.split-view-contents-first:not(.maximized)
{ |
100 border-bottom: 1px solid rgb(64%, 64%, 64%); | 56 border-bottom: 1px solid rgb(64%, 64%, 64%); |
101 } | 57 } |
102 | 58 |
103 .split-view-horizontal > .split-view-sidebar.split-view-contents-second:not(.max
imized) { | 59 .split-view.vbox > .split-view-sidebar.split-view-contents-second:not(.maximized
) { |
104 border-top: 1px solid rgb(64%, 64%, 64%); | 60 border-top: 1px solid rgb(64%, 64%, 64%); |
105 } | 61 } |
106 | 62 |
107 .split-view-vertical > .split-view-resizer { | 63 .split-view.hbox > .split-view-resizer { |
108 position: absolute; | 64 position: absolute; |
109 top: 0; | 65 top: 0; |
110 bottom: 0; | 66 bottom: 0; |
111 width: 5px; | 67 width: 5px; |
112 z-index: 1500; | 68 z-index: 1500; |
113 cursor: ew-resize; | 69 cursor: ew-resize; |
114 } | 70 } |
115 | 71 |
116 .split-view-horizontal > .split-view-resizer { | 72 .split-view.vbox > .split-view-resizer { |
117 position: absolute; | 73 position: absolute; |
118 left: 0; | 74 left: 0; |
119 right: 0; | 75 right: 0; |
120 height: 5px; | 76 height: 5px; |
121 z-index: 1500; | 77 z-index: 1500; |
122 cursor: ns-resize; | 78 cursor: ns-resize; |
123 } | 79 } |
124 | 80 |
125 .sidebar-overlay { | 81 .sidebar-overlay { |
126 position: absolute; | 82 position: absolute; |
127 top: 0; | 83 top: 0; |
128 bottom: 0; | 84 bottom: 0; |
129 left: 0; | 85 left: 0; |
130 z-index: 12; | 86 z-index: 12; |
131 background-color: white; | 87 background-color: white; |
132 border-right: 1px solid gray; | 88 border-right: 1px solid gray; |
133 box-shadow: rgb(90,90,90) 20px 0 50px -25px; | 89 box-shadow: rgb(90,90,90) 20px 0 50px -25px; |
134 display: -webkit-flex; | 90 display: -webkit-flex; |
135 -webkit-flex-direction: column; | 91 -webkit-flex-direction: column; |
136 } | 92 } |
137 | 93 |
138 .sidebar-overlay-resizer { | 94 .sidebar-overlay-resizer { |
139 position: absolute; | 95 position: absolute; |
140 top: 0; | 96 top: 0; |
141 bottom: 0; | 97 bottom: 0; |
142 width: 5px; | 98 width: 5px; |
143 z-index: 500; | 99 z-index: 500; |
144 cursor: ew-resize; | 100 cursor: ew-resize; |
145 } | 101 } |
OLD | NEW |