browser/themes/shared/devtools/responsivedesign.inc.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 %if 0
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5 %endif
michael@0 6
michael@0 7 /* Responsive Mode */
michael@0 8
michael@0 9 .browserContainer[responsivemode] {
michael@0 10 background: #222 url("chrome://browser/skin/devtools/responsive-background.png");
michael@0 11 padding: 0 20px 20px 20px;
michael@0 12 }
michael@0 13
michael@0 14 .browserStack[responsivemode] {
michael@0 15 box-shadow: 0 0 7px black;
michael@0 16 }
michael@0 17
michael@0 18 .devtools-responsiveui-toolbar {
michael@0 19 -moz-appearance: none;
michael@0 20 background: transparent;
michael@0 21 /* text color is textColor from dark theme, since no theme is applied to
michael@0 22 * the responsive toolbar.
michael@0 23 */
michael@0 24 color: hsl(210,30%,85%);
michael@0 25 margin: 10px 0;
michael@0 26 padding: 0;
michael@0 27 box-shadow: none;
michael@0 28 border-bottom-width: 0;
michael@0 29 }
michael@0 30
michael@0 31 .devtools-responsiveui-menulist,
michael@0 32 .devtools-responsiveui-toolbarbutton {
michael@0 33 -moz-appearance: none;
michael@0 34 -moz-box-align: center;
michael@0 35 min-width: 32px;
michael@0 36 min-height: 22px;
michael@0 37 text-shadow: 0 -1px 0 hsla(210,8%,5%,.45);
michael@0 38 border: 1px solid hsla(210,8%,5%,.45);
michael@0 39 border-radius: 0;
michael@0 40 background: linear-gradient(hsla(212,7%,57%,.35), hsla(212,7%,57%,.1)) padding-box;
michael@0 41 box-shadow: 0 1px 0 hsla(210,16%,76%,.15) inset, 0 0 0 1px hsla(210,16%,76%,.15) inset, 0 1px 0 hsla(210,16%,76%,.15);
michael@0 42 margin: 0 3px;
michael@0 43 color: inherit;
michael@0 44 }
michael@0 45
michael@0 46 .devtools-responsiveui-toolbarbutton > .toolbarbutton-menubutton-button {
michael@0 47 -moz-box-orient: horizontal;
michael@0 48 }
michael@0 49
michael@0 50 .devtools-responsiveui-menulist:-moz-focusring,
michael@0 51 .devtools-responsiveui-toolbarbutton:-moz-focusring {
michael@0 52 outline: 1px dotted hsla(210,30%,85%,0.7);
michael@0 53 outline-offset: -4px;
michael@0 54 }
michael@0 55
michael@0 56 .devtools-responsiveui-toolbarbutton:not([label]) > .toolbarbutton-text {
michael@0 57 display: none;
michael@0 58 }
michael@0 59
michael@0 60 .devtools-responsiveui-toolbarbutton:not([checked=true]):hover:active {
michael@0 61 border-color: hsla(210,8%,5%,.6);
michael@0 62 background: linear-gradient(hsla(220,6%,10%,.3), hsla(212,7%,57%,.15) 65%, hsla(212,7%,57%,.3));
michael@0 63 box-shadow: 0 0 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15);
michael@0 64 }
michael@0 65
michael@0 66 .devtools-responsiveui-menulist[open=true],
michael@0 67 .devtools-responsiveui-toolbarbutton[open=true],
michael@0 68 .devtools-responsiveui-toolbarbutton[checked=true] {
michael@0 69 border-color: hsla(210,8%,5%,.6) !important;
michael@0 70 background: linear-gradient(hsla(220,6%,10%,.6), hsla(210,11%,18%,.45) 75%, hsla(210,11%,30%,.4));
michael@0 71 box-shadow: 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15);
michael@0 72 }
michael@0 73
michael@0 74 .devtools-responsiveui-toolbarbutton[checked=true] {
michael@0 75 color: hsl(208,100%,60%);
michael@0 76 }
michael@0 77
michael@0 78 .devtools-responsiveui-toolbarbutton[checked=true]:hover {
michael@0 79 background-color: transparent !important;
michael@0 80 }
michael@0 81
michael@0 82 .devtools-responsiveui-toolbarbutton[checked=true]:hover:active {
michael@0 83 background-color: hsla(210,8%,5%,.2) !important;
michael@0 84 }
michael@0 85
michael@0 86 .devtools-responsiveui-menulist > .menulist-label-box {
michael@0 87 text-align: center;
michael@0 88 }
michael@0 89
michael@0 90 .devtools-responsiveui-menulist > .menulist-dropmarker {
michael@0 91 -moz-appearance: none;
michael@0 92 display: -moz-box;
michael@0 93 background-color: transparent;
michael@0 94 list-style-image: url("chrome://browser/skin/devtools/dropmarker.png");
michael@0 95 -moz-box-align: center;
michael@0 96 border-width: 0;
michael@0 97 min-width: 16px;
michael@0 98 }
michael@0 99
michael@0 100 .devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
michael@0 101 -moz-appearance: none;
michael@0 102 color: inherit;
michael@0 103 border-width: 0;
michael@0 104 -moz-border-end: 1px solid hsla(210,8%,5%,.45);
michael@0 105 box-shadow: -1px 0 0 hsla(210,16%,76%,.15) inset, 1px 0 0 hsla(210,16%,76%,.15);
michael@0 106 }
michael@0 107
michael@0 108 .devtools-responsiveui-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button {
michael@0 109 box-shadow: 1px 0 0 hsla(210,16%,76%,.15) inset, -1px 0 0 hsla(210,16%,76%,.15);
michael@0 110 }
michael@0 111
michael@0 112 .devtools-responsiveui-toolbarbutton[type=menu-button] {
michael@0 113 padding: 0 1px;
michael@0 114 -moz-box-align: stretch;
michael@0 115 }
michael@0 116
michael@0 117 .devtools-responsiveui-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
michael@0 118 .devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
michael@0 119 -moz-appearance: none !important;
michael@0 120 list-style-image: url("chrome://browser/skin/devtools/dropmarker.png");
michael@0 121 -moz-box-align: center;
michael@0 122 padding: 0 3px;
michael@0 123 }
michael@0 124
michael@0 125 .devtools-responsiveui-toolbar:-moz-locale-dir(ltr) > *:first-child,
michael@0 126 .devtools-responsiveui-toolbar:-moz-locale-dir(rtl) > *:last-child {
michael@0 127 margin-left: 0;
michael@0 128 }
michael@0 129
michael@0 130 .devtools-responsiveui-close {
michael@0 131 list-style-image: url("chrome://browser/skin/devtools/close.png");
michael@0 132 }
michael@0 133
michael@0 134 .devtools-responsiveui-rotate {
michael@0 135 list-style-image: url("chrome://browser/skin/devtools/responsiveui-rotate.png");
michael@0 136 }
michael@0 137
michael@0 138 .devtools-responsiveui-touch {
michael@0 139 list-style-image: url("chrome://browser/skin/devtools/responsiveui-touch.png");
michael@0 140 -moz-image-region: rect(0px,16px,16px,0px);
michael@0 141 }
michael@0 142
michael@0 143 .devtools-responsiveui-touch[checked] {
michael@0 144 -moz-image-region: rect(0px,32px,16px,16px);
michael@0 145 }
michael@0 146
michael@0 147 .devtools-responsiveui-screenshot {
michael@0 148 list-style-image: url("chrome://browser/skin/devtools/responsiveui-screenshot.png");
michael@0 149 }
michael@0 150
michael@0 151 .devtools-responsiveui-resizebarV {
michael@0 152 width: 7px;
michael@0 153 height: 24px;
michael@0 154 cursor: ew-resize;
michael@0 155 transform: translate(12px, -12px);
michael@0 156 background-image: url("chrome://browser/skin/devtools/responsive-vertical-resizer.png");
michael@0 157 }
michael@0 158
michael@0 159 .devtools-responsiveui-resizebarH {
michael@0 160 width: 24px;
michael@0 161 height: 7px;
michael@0 162 cursor: ns-resize;
michael@0 163 transform: translate(-12px, 12px);
michael@0 164 background-image: url("chrome://browser/skin/devtools/responsive-horizontal-resizer.png");
michael@0 165 }
michael@0 166
michael@0 167 .devtools-responsiveui-resizehandle {
michael@0 168 width: 16px;
michael@0 169 height: 16px;
michael@0 170 cursor: se-resize;
michael@0 171 transform: translate(12px, 12px);
michael@0 172 background-image: url("chrome://browser/skin/devtools/responsive-se-resizer.png");
michael@0 173 }

mercurial