sidebar.css (2666B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 @import url("chrome://global/skin/global.css"); 6 @import url("chrome://browser/skin/browser-colors.css"); 7 8 :root { 9 --sidebar-box-border-color: light-dark(color-mix(in srgb, currentColor 10%, transparent), var(--border-color-deemphasized)); 10 --sidebar-box-border-width: 0.5px; 11 --sidebar-box-border: var(--sidebar-box-border-width) solid var(--sidebar-box-border-color); 12 --sidebar-box-background: light-dark(rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.05)); 13 --sidebar-box-color: currentColor; 14 background-color: transparent; 15 color: var(--sidebar-text-color); 16 height: 100%; 17 18 &[lwt-sidebar="light"] { 19 color-scheme: light; 20 } 21 22 &[lwt-sidebar="dark"] { 23 color-scheme: dark; 24 } 25 } 26 27 body { 28 margin: 0; 29 height: 100%; 30 } 31 32 moz-card { 33 --card-gap: var(--space-small); 34 --card-padding: 8px; 35 --card-heading-padding-inline: 12px; 36 37 margin-block-start: var(--space-medium); 38 box-shadow: none; 39 background-color: var(--sidebar-box-background); 40 color: var(--sidebar-box-color); 41 border: var(--sidebar-box-border); 42 border-radius: var(--border-radius-medium); 43 44 &::part(summary) { 45 padding-block: var(--space-medium); 46 } 47 48 &::part(heading) { 49 overflow: hidden; 50 text-overflow: ellipsis; 51 white-space: nowrap; 52 } 53 54 &:first-of-type { 55 margin-block-start: 0; 56 } 57 } 58 59 .sidebar-panel { 60 display: flex; 61 flex-direction: column; 62 padding: var(--space-large); 63 box-sizing: border-box; 64 border-radius: var(--border-radius-medium); 65 width: 100%; 66 height: 100%; 67 68 moz-input-search { 69 display: block; 70 } 71 72 .sidebar-panel-scrollable-content { 73 overflow-y: auto; 74 height: 100%; 75 padding: var(--space-xsmall); 76 } 77 } 78 79 fxview-empty-state { 80 &::part(container) { 81 margin-block-start: var(--space-medium); 82 padding-block: 83px; 83 padding-inline: var(--space-medium); 84 background-color: var(--sidebar-box-background); 85 color: var(--sidebar-box-color); 86 border: var(--sidebar-box-border); 87 border-radius: var(--border-radius-medium); 88 } 89 90 &::part(header) { 91 font-size: var(--font-size-large); 92 } 93 94 &::part(image-container) { 95 min-width: auto; 96 width: 100%; 97 max-width: 250px; 98 } 99 100 &.synced-tabs { 101 &::part(container) { 102 margin-block-start: 0; 103 } 104 105 /* these illustrations need a larger width otherwise they look too small */ 106 &::part(image-container) { 107 min-width: auto; 108 width: 100%; 109 max-width: 350px; 110 } 111 } 112 } 113 114 moz-input-search { 115 width: 100%; 116 }