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 display: flex; |
30 overflow: hidden; | 31 overflow: hidden; |
31 } | 32 } |
32 | 33 |
33 .split-view-contents { | 34 .split-view-contents { |
34 overflow: auto; | 35 overflow: auto; |
35 cursor: default; | 36 display: flex; |
36 position: relative; | 37 position: relative; |
| 38 flex-direction: column; |
37 } | 39 } |
38 | 40 |
39 .split-view-sidebar { | 41 .split-view-sidebar { |
40 flex: none; | 42 flex: none; |
41 } | 43 } |
42 | 44 |
43 .split-view-main, .split-view-sidebar.maximized { | 45 .split-view-main, .split-view-sidebar.maximized { |
44 flex: auto; | 46 flex: auto; |
45 } | 47 } |
46 | 48 |
47 .split-view.hbox > .split-view-sidebar.split-view-contents-first:not(.maximized)
{ | |
48 border-right: 1px solid rgb(64%, 64%, 64%); | |
49 } | |
50 | |
51 .split-view.hbox > .split-view-sidebar.split-view-contents-second:not(.maximized
) { | |
52 border-left: 1px solid rgb(64%, 64%, 64%); | |
53 } | |
54 | |
55 .split-view.vbox > .split-view-sidebar.split-view-contents-first:not(.maximized)
{ | |
56 border-bottom: 1px solid rgb(64%, 64%, 64%); | |
57 } | |
58 | |
59 .split-view.vbox > .split-view-sidebar.split-view-contents-second:not(.maximized
) { | |
60 border-top: 1px solid rgb(64%, 64%, 64%); | |
61 } | |
62 | |
63 .split-view.hbox > .split-view-resizer { | 49 .split-view.hbox > .split-view-resizer { |
64 position: absolute; | 50 position: absolute; |
65 top: 0; | 51 top: 0; |
66 bottom: 0; | 52 bottom: 0; |
67 width: 5px; | 53 width: 6px; |
68 z-index: 1500; | 54 z-index: 500; |
69 } | 55 } |
70 | 56 |
71 .split-view.vbox > .split-view-resizer { | 57 .split-view.vbox > .split-view-resizer { |
72 position: absolute; | 58 position: absolute; |
73 left: 0; | 59 left: 0; |
74 right: 0; | 60 right: 0; |
75 height: 5px; | 61 height: 6px; |
76 z-index: 1500; | 62 z-index: 500; |
77 } | 63 } |
78 | 64 |
79 .sidebar-overlay { | 65 .split-view-resizer-border { |
80 position: absolute; | 66 pointer-events: none; |
81 top: 0; | |
82 bottom: 0; | |
83 left: 0; | |
84 z-index: 12; | |
85 background-color: white; | |
86 border-right: 1px solid gray; | |
87 box-shadow: rgb(90,90,90) 20px 0 50px -25px; | |
88 display: -webkit-flex; | |
89 -webkit-flex-direction: column; | |
90 } | 67 } |
91 | 68 |
92 .sidebar-overlay-resizer { | 69 .split-view.vbox > .split-view-resizer > .split-view-resizer-border { |
| 70 width: 100%; |
| 71 margin-top: 3px; |
| 72 height: 1px; |
| 73 border-top: 1px solid rgb(64%, 64%, 64%); |
| 74 } |
| 75 |
| 76 .split-view.hbox > .split-view-resizer > .split-view-resizer-border { |
| 77 height: 100%; |
| 78 margin-left: 3px; |
| 79 width: 1px; |
| 80 border-left: 1px solid rgb(64%, 64%, 64%); |
| 81 } |
| 82 |
| 83 .split-view button.sidebar-show-hide-button { |
93 position: absolute; | 84 position: absolute; |
94 top: 0; | 85 background-image: none; |
| 86 height: 16px; |
| 87 width: 16px; |
| 88 border: none; |
| 89 z-index: 10; |
| 90 } |
| 91 |
| 92 .split-view button.left-sidebar-show-hide-button, |
| 93 .split-view button.top-sidebar-show-hide-button { |
| 94 top: 4px; |
| 95 left: 4px; |
| 96 } |
| 97 |
| 98 .split-view button.left-sidebar-show-hide-button:active, |
| 99 .split-view button.top-sidebar-show-hide-button:active { |
| 100 top: 5px; |
| 101 left: 3px; |
| 102 } |
| 103 |
| 104 .split-view button.right-sidebar-show-hide-button { |
| 105 top: 4px; |
| 106 right:2px; |
| 107 } |
| 108 |
| 109 .split-view button.right-sidebar-show-hide-button:active { |
| 110 top: 5px; |
| 111 right: 1px; |
| 112 } |
| 113 |
| 114 .split-view button.bottom-sidebar-show-hide-button { |
| 115 bottom: 0px; |
| 116 right: 1px; |
| 117 } |
| 118 |
| 119 .split-view button.bottom-sidebar-show-hide-button:active { |
95 bottom: 0; | 120 bottom: 0; |
96 width: 5px; | 121 right: 0; |
97 z-index: 500; | |
98 } | 122 } |
| 123 |
| 124 .split-view button.left-sidebar-show-hide-button.toggled-show > .glyph { |
| 125 -webkit-mask-position: -168px -76px; /* |> */ |
| 126 } |
| 127 |
| 128 .split-view button.left-sidebar-show-hide-button.toggled-hide > .glyph { |
| 129 -webkit-mask-position: -199px -76px; /* |< */ |
| 130 } |
| 131 |
| 132 .split-view button.right-sidebar-show-hide-button.toggled-show > .glyph { |
| 133 -webkit-mask-position: -296px -76px; /* <| */ |
| 134 } |
| 135 |
| 136 .split-view button.right-sidebar-show-hide-button.toggled-hide > .glyph { |
| 137 -webkit-mask-position: -264px -76px; /* >| */ |
| 138 } |
| 139 |
| 140 .split-view button.top-sidebar-show-hide-button.toggled-show > .glyph { |
| 141 -webkit-mask-position: -168px -76px; /* |> */ |
| 142 -webkit-transform: rotate(90deg); |
| 143 } |
| 144 |
| 145 .split-view button.top-sidebar-show-hide-button.toggled-hide > .glyph { |
| 146 -webkit-mask-position: -199px -76px; /* |< */ |
| 147 -webkit-transform: rotate(90deg); |
| 148 } |
| 149 |
| 150 .split-view button.bottom-sidebar-show-hide-button.toggled-show > .glyph { |
| 151 -webkit-mask-position: -296px -76px; /* <| */ |
| 152 -webkit-transform: rotate(90deg); |
| 153 } |
| 154 |
| 155 .split-view button.bottom-sidebar-show-hide-button.toggled-hide > .glyph { |
| 156 -webkit-mask-position: -264px -76px; /* >| */ |
| 157 -webkit-transform: rotate(90deg); |
| 158 } |
OLD | NEW |