Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions are |
| 6 | * met: |
| 7 | * |
| 8 | * 1. Redistributions of source code must retain the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer. |
| 10 | * |
| 11 | * 2. Redistributions in binary form must reproduce the above |
| 12 | * copyright notice, this list of conditions and the following disclaimer |
| 13 | * in the documentation and/or other materials provided with the |
| 14 | * distribution. |
| 15 | * |
| 16 | * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. AND ITS CONTRIBUTORS |
| 17 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE INC. |
| 20 | * OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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. |
| 27 | */ |
| 28 | |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 29 | .shadow-split-widget { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 30 | display: flex; |
| 31 | overflow: hidden; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | .shadow-split-widget-contents { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 35 | display: flex; |
| 36 | position: relative; |
| 37 | flex-direction: column; |
| 38 | contain: layout size style; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | .shadow-split-widget-sidebar { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 42 | flex: none; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 43 | } |
| 44 | |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 45 | .shadow-split-widget-main, |
| 46 | .shadow-split-widget-sidebar.maximized { |
| 47 | flex: auto; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | .shadow-split-widget.hbox > .shadow-split-widget-resizer { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 51 | position: absolute; |
| 52 | top: 0; |
| 53 | bottom: 0; |
| 54 | width: 6px; |
| 55 | z-index: 500; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | .shadow-split-widget.vbox > .shadow-split-widget-resizer { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 59 | position: absolute; |
| 60 | left: 0; |
| 61 | right: 0; |
| 62 | height: 6px; |
| 63 | z-index: 500; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 64 | } |
| 65 | |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 66 | .shadow-split-widget.vbox > .shadow-split-widget-sidebar.no-default-splitter { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 67 | border: 0 !important; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | .shadow-split-widget.vbox > .shadow-split-widget-sidebar:not(.maximized) { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 71 | border: 0; |
| 72 | border-top: 1px solid var(--divider-color); |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 73 | } |
| 74 | |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 75 | .shadow-split-widget.hbox > .shadow-split-widget-sidebar:not(.maximized) { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 76 | border: 0; |
| 77 | border-left: 1px solid var(--divider-color); |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 78 | } |
| 79 | |
Jecelyn Yeen | 04d6e3d | 2020-07-03 02:54:21 | [diff] [blame] | 80 | .shadow-split-widget.vbox > .shadow-split-widget-sidebar:first-child:not(.maximized) { |
| 81 | border: 0; |
| 82 | border-bottom: 1px solid var(--divider-color); |
| 83 | } |
| 84 | |
Joel Einbinder | 27131b2 | 2019-03-14 09:29:54 | [diff] [blame] | 85 | .shadow-split-widget.hbox > .shadow-split-widget-sidebar:first-child:not(.maximized) { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 86 | border: 0; |
| 87 | border-right: 1px solid var(--divider-color); |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 88 | } |
Erik Luo | 34400ca | 2019-03-19 18:31:16 | [diff] [blame] | 89 | |
| 90 | :host-context(.disable-resizer-for-elements-hack) .shadow-split-widget-resizer { |
Mathias Bynens | b0c1f4b | 2020-05-15 14:34:41 | [diff] [blame] | 91 | pointer-events: none; |
Erik Luo | 34400ca | 2019-03-19 18:31:16 | [diff] [blame] | 92 | } |