aboutNetworking.css (4622B)
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/in-content/common.css"); 6 7 html { 8 height: 100%; 9 } 10 11 body { 12 display: flex; 13 align-items: stretch; 14 height: 100%; 15 } 16 17 #sectionTitle { 18 float: left; 19 } 20 21 #refreshDiv { 22 justify-content: flex-end; 23 margin-bottom: 0.5em; 24 } 25 26 #refreshButton { 27 margin-top: 0; 28 } 29 30 /** Categories **/ 31 32 .category { 33 cursor: pointer; 34 /* Center category names */ 35 display: flex; 36 align-items: center; 37 } 38 39 .category .category-name { 40 pointer-events: none; 41 } 42 43 #categories hr { 44 border-top-color: rgb(50,50,50); 45 } 46 47 [id].category::before, 48 .category[value]::before{ 49 background-size: 100%; 50 background-position: center; 51 background-repeat: no-repeat; 52 height: 32px; 53 width: 32px; 54 min-width: 32px; 55 margin-inline-start: 6px; 56 } 57 58 #category-http::before, 59 .category[value="http"]::before{ 60 content: ""; 61 background-image: url(chrome://mozapps/skin/aboutNetworking.svg#http); 62 } 63 #category-sockets::before, 64 .category[value="sockets"]::before{ 65 content: ""; 66 background-image: url(chrome://mozapps/skin/aboutNetworking.svg#sockets); 67 } 68 #category-dns::before, 69 .category[value="dns"]::before{ 70 content: ""; 71 background-image: url(chrome://mozapps/skin/aboutNetworking.svg#dns); 72 } 73 #category-websockets::before, 74 .category[value="websockets"]::before{ 75 content: ""; 76 background-image: url(chrome://mozapps/skin/aboutNetworking.svg#websockets); 77 } 78 #category-dnslookuptool::before, 79 .category[value="dnslookuptool"]::before{ 80 content: ""; 81 background-image: url(chrome://mozapps/skin/aboutNetworking.svg#dnslookup); 82 } 83 #category-logging::before, 84 .category[value="logging"]::before{ 85 content: ""; 86 background-image: url(chrome://mozapps/skin/aboutNetworking.svg#logging); 87 } 88 #category-rcwn::before { 89 content: ""; 90 } 91 92 .header{ 93 border: none; 94 margin: 0; 95 padding: 0; 96 } 97 #sectionTitle{ 98 display: none; 99 } 100 #refreshDiv{ 101 font-size: 1.1rem; 102 margin: 0 0 13px; 103 padding-inline-end: 2px; 104 } 105 #refreshButton{ 106 line-height: unset; 107 font-size: 1.1rem; 108 height: 23px; 109 vertical-align: bottom; 110 margin: 0; 111 margin-inline-end: 8px; 112 padding: 0 2px; 113 } 114 115 .main-content{ 116 padding: 0; 117 border: none; 118 border-radius: 0; 119 overflow: hidden; 120 background: transparent; 121 } 122 123 .main-content > div:not(.header){ 124 padding: 40px 48px; 125 border: 1px solid var(--in-content-main-border-color); 126 border-radius: 5px; 127 overflow: auto; 128 height: calc(100% - 43px); 129 box-sizing: border-box; 130 background-color: var(--in-content-main-background-color); 131 background-image: var(--in-content-main-background-image); 132 } 133 134 .main-content > div:not(.header)> table{ 135 margin-bottom: 40px; 136 } 137 138 #logging > div { 139 max-width: 800px; 140 min-width: 400px; 141 } 142 143 #logging > div ~ div ~ div { 144 text-align-last: justify; 145 margin-top: 12px; 146 } 147 #logging > div > br { 148 display: none; 149 } 150 151 #logging > div > button { 152 padding: 0 8px; 153 } 154 155 #logging > div:nth-of-type(+2) > button { 156 margin: 5px 0; 157 margin-inline-start: 40px; 158 } 159 160 #logging > div > [id^="current-log"] { 161 display: inline-block; 162 margin-inline-start: 20px; 163 min-width: 200px; 164 } 165 166 #logging > div > input { 167 margin: 10px 12px; 168 min-width: 50%; 169 width: calc(100% - 200px); 170 } 171 172 /** Warning container **/ 173 174 /* XXX: a lot of this is duplicated from info-pages.css since that stylesheet 175 is incompatible with this type of layout */ 176 .warningBackground:not([hidden]) { 177 display: flex; 178 } 179 180 .warningBackground { 181 flex-direction: column; 182 box-sizing: border-box; 183 min-height: 100vh; 184 align-items: center; 185 justify-content: center; 186 width: 100%; 187 height: 100%; 188 z-index: 10; 189 top: 0; 190 left: 0; 191 position: fixed; 192 background: var(--in-content-page-background); 193 } 194 195 .title { 196 position: relative; 197 border-bottom: 1px solid var(--in-content-box-border-color); 198 margin-bottom: 1em; 199 padding-bottom: 0.5em; 200 } 201 202 .title::before { 203 content: ""; 204 left: -2.3em; 205 top: 0; 206 position: absolute; 207 display: block; 208 width: 1.6em; 209 height: 1.6em; 210 background: url("chrome://global/skin/icons/warning.svg") no-repeat left center; 211 background-size: 1.6em; 212 } 213 214 .warningBackground button { 215 margin-top: 1em; 216 margin-left: 0; 217 min-width: 100px; 218 } 219 220 /** Content area **/ 221 222 .main-content { 223 flex: 1; 224 } 225 226 .tab { 227 padding: 0.5em 0; 228 } 229 230 .tab table { 231 width: 100%; 232 } 233 234 th, td, table { 235 border-collapse: collapse; 236 border: none; 237 text-align: start; 238 } 239 240 th { 241 padding-bottom: 0.5em; 242 font-size: larger; 243 } 244 245 td { 246 padding-bottom: 0.25em; 247 border-bottom: 1px solid var(--in-content-box-border-color); 248 }