1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/layoutview/view.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,196 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +body, html { 1.9 + height: 100%; 1.10 + width: 100%; 1.11 + overflow: hidden; 1.12 +} 1.13 + 1.14 +body { 1.15 + margin: 0; 1.16 + padding: 0; 1.17 +} 1.18 + 1.19 +#header { 1.20 + box-sizing: border-box; 1.21 + width: 100%; 1.22 + padding: 6px 9px; 1.23 + display: -moz-box; 1.24 + vertical-align: top; 1.25 +} 1.26 + 1.27 +#header:-moz-dir(rtl) { 1.28 + -moz-box-direction: reverse; 1.29 +} 1.30 + 1.31 +#header > span { 1.32 + display: -moz-box; 1.33 +} 1.34 + 1.35 +#element-size { 1.36 + -moz-box-flex: 1; 1.37 +} 1.38 + 1.39 +#element-size:-moz-dir(rtl) { 1.40 + -moz-box-pack: end; 1.41 +} 1.42 + 1.43 +#main { 1.44 + margin: 0 10px 10px 10px; 1.45 + box-sizing: border-box; 1.46 + width: calc(100% - 2 * 10px); 1.47 + position: absolute; 1.48 + border-width: 1px; 1.49 +} 1.50 + 1.51 +@media (min-width: 320px) { 1.52 + body { 1.53 + position: absolute; 1.54 + width: 320px; 1.55 + left: -160px; 1.56 + margin-left: 50%; 1.57 + } 1.58 +} 1.59 + 1.60 +#content, 1.61 +#borders { 1.62 + border-width: 1px; 1.63 +} 1.64 + 1.65 +#content { 1.66 + height: 25px; 1.67 +} 1.68 + 1.69 +#margins, 1.70 +#padding { 1.71 + border-style: solid; 1.72 + border-width: 25px; 1.73 +} 1.74 + 1.75 +#borders { 1.76 + padding: 25px; 1.77 +} 1.78 + 1.79 +#main > p { 1.80 + position: absolute; 1.81 + pointer-events: none; 1.82 +} 1.83 + 1.84 +#main > p { 1.85 + margin: 0; 1.86 + text-align: center; 1.87 +} 1.88 + 1.89 +#main > p > span { 1.90 + vertical-align: middle; 1.91 + pointer-events: auto; 1.92 +} 1.93 + 1.94 +.size > span { 1.95 + cursor: default; 1.96 +} 1.97 + 1.98 +.editable { 1.99 + -moz-user-select: text; 1.100 +} 1.101 + 1.102 +.top, 1.103 +.bottom { 1.104 + width: calc(100% - 2px); 1.105 + text-align: center; 1.106 +} 1.107 + 1.108 +.padding.top { 1.109 + top: 55px; 1.110 +} 1.111 + 1.112 +.padding.bottom { 1.113 + bottom: 57px; 1.114 +} 1.115 + 1.116 +.border.top { 1.117 + top: 30px; 1.118 +} 1.119 + 1.120 +.border.bottom { 1.121 + bottom: 31px; 1.122 +} 1.123 + 1.124 +.margin.top { 1.125 + top: 5px; 1.126 +} 1.127 + 1.128 +.margin.bottom { 1.129 + bottom: 6px; 1.130 +} 1.131 + 1.132 +.size, 1.133 +.margin.left, 1.134 +.margin.right, 1.135 +.border.left, 1.136 +.border.right, 1.137 +.padding.left, 1.138 +.padding.right { 1.139 + top: 22px; 1.140 + line-height: 132px; 1.141 +} 1.142 + 1.143 +.size { 1.144 + width: calc(100% - 2px); 1.145 +} 1.146 + 1.147 +.margin.right, 1.148 +.margin.left, 1.149 +.border.left, 1.150 +.border.right, 1.151 +.padding.right, 1.152 +.padding.left { 1.153 + width: 25px; 1.154 +} 1.155 + 1.156 +.padding.left { 1.157 + left: 52px; 1.158 +} 1.159 + 1.160 +.padding.right { 1.161 + right: 51px; 1.162 +} 1.163 + 1.164 +.border.left { 1.165 + left: 26px; 1.166 +} 1.167 + 1.168 +.border.right { 1.169 + right: 26px; 1.170 +} 1.171 + 1.172 +.margin.right { 1.173 + right: 0; 1.174 +} 1.175 + 1.176 +.margin.left { 1.177 + left: 0; 1.178 +} 1.179 + 1.180 +.rotate.left:not(.editing) { 1.181 + transform: rotate(-90deg); 1.182 +} 1.183 + 1.184 +.rotate.right:not(.editing) { 1.185 + transform: rotate(90deg); 1.186 +} 1.187 + 1.188 +.tooltip { 1.189 + position: absolute; 1.190 + bottom: 0; 1.191 + right: 2px; 1.192 + pointer-events: none; 1.193 +} 1.194 + 1.195 +body.dim > #header > #element-position, 1.196 +body.dim > #main > p, 1.197 +body.dim > #main > .tooltip { 1.198 + visibility: hidden; 1.199 +}