images
10 years ago
admin.css
11 years ago
admin.less
11 years ago
inspector.css
11 years ago
inspector.less
11 years ago
mixins.css
11 years ago
mixins.less
11 years ago
inspector.less
252 lines
| 1 | #socss-inspector-interface { |
| 2 | display: none; |
| 3 | position: fixed; |
| 4 | bottom: 0; |
| 5 | left: 0; |
| 6 | right: 0; |
| 7 | height: 220px; |
| 8 | background: #ffffff; |
| 9 | box-shadow: 0 -2px 2px rgba(0,0,0,0.05); |
| 10 | z-index: 99999 + 1; |
| 11 | |
| 12 | font-family: "Arial", sans-serif; |
| 13 | font-size: 14px; |
| 14 | border-top: 1px solid #a3a3a3; |
| 15 | |
| 16 | .socss-link { |
| 17 | box-sizing: border-box; |
| 18 | background: #f3f3f3; |
| 19 | box-shadow: 0 -2px 2px rgba(0,0,0,0.05); |
| 20 | border-top: 1px solid #a3a3a3; |
| 21 | position: absolute; |
| 22 | top: -29px; |
| 23 | height: 28px; |
| 24 | padding: 6px 15px; |
| 25 | width: 100%; |
| 26 | font-size: 13px; |
| 27 | text-align: right; |
| 28 | line-height: 1em; |
| 29 | display: none; |
| 30 | } |
| 31 | |
| 32 | .socss-toolbar { |
| 33 | box-sizing: border-box; |
| 34 | background: #e6e6e6; |
| 35 | padding: 0 4px; |
| 36 | user-select: none; |
| 37 | position: absolute; |
| 38 | top: 0; |
| 39 | left: 0; |
| 40 | right: 0; |
| 41 | height: 30px; |
| 42 | overflow: hidden; |
| 43 | |
| 44 | .socss-enable-inspector { |
| 45 | font-size: 20px; |
| 46 | display: inline-block; |
| 47 | padding: 5px; |
| 48 | color: #777; |
| 49 | border-left: 1px solid transparent; |
| 50 | border-right: 1px solid transparent; |
| 51 | position: absolute; |
| 52 | top: 0; |
| 53 | left: 5px; |
| 54 | bottom: 0; |
| 55 | |
| 56 | height: 30px; |
| 57 | width: 30px; |
| 58 | |
| 59 | box-sizing: border-box; |
| 60 | |
| 61 | &:hover { |
| 62 | cursor: pointer; |
| 63 | background-color: #f3f3f3; |
| 64 | color: #596872; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | .socss-hierarchy { |
| 69 | position: absolute; |
| 70 | top: 0; |
| 71 | right: 20px; |
| 72 | left: 40px; |
| 73 | bottom: 0; |
| 74 | display: block; |
| 75 | padding-left: 10px; |
| 76 | overflow: hidden; |
| 77 | white-space: nowrap; |
| 78 | background: #e6e6e6; |
| 79 | |
| 80 | .socss-selector { |
| 81 | font-size: 12px; |
| 82 | line-height: 1em; |
| 83 | padding: 9px 20px 9px 9px; |
| 84 | display: inline-block; |
| 85 | background: url(./images/separator.png) top right no-repeat; |
| 86 | background-size: contain; |
| 87 | cursor: pointer; |
| 88 | |
| 89 | &:last-child { |
| 90 | background: none; |
| 91 | padding-right: 9px; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | .socss-selectors-window, |
| 99 | .socss-properties-window { |
| 100 | overflow-y: scroll; |
| 101 | font-family: "Courier New", "Lucida Console", Courier, monospace; |
| 102 | font-size: 13px; |
| 103 | border-top: 1px solid #a3a3a3; |
| 104 | |
| 105 | > div { |
| 106 | line-height: 1.2em; |
| 107 | padding: 4px 10px; |
| 108 | white-space: nowrap; |
| 109 | |
| 110 | &:hover { |
| 111 | background: #f6f6f6; |
| 112 | cursor: pointer; |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | strong{ |
| 117 | font-weight: bold; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | .socss-selectors-window { |
| 122 | position: absolute; |
| 123 | top: 29px; |
| 124 | left: 0; |
| 125 | right: 50%; |
| 126 | bottom: 0; |
| 127 | |
| 128 | background: #fff; |
| 129 | border-right: 1px solid #aaa; |
| 130 | } |
| 131 | |
| 132 | .socss-properties-window { |
| 133 | position: absolute; |
| 134 | top: 29px; |
| 135 | right: 0; |
| 136 | left: 50%; |
| 137 | bottom: 0; |
| 138 | |
| 139 | background: #fff; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | body.socss-active { |
| 144 | padding-bottom: 200px !important; |
| 145 | |
| 146 | #socss-inspector-interface { |
| 147 | display: block; |
| 148 | height: 200px; |
| 149 | |
| 150 | .socss-toolbar .socss-enable-inspector { |
| 151 | border-left: 1px solid #aaa; |
| 152 | border-right: 1px solid #aaa; |
| 153 | background-color: #f3f3f3; |
| 154 | color: #005a67; |
| 155 | } |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | body.socss-inactive { |
| 160 | padding-bottom: 29px !important; |
| 161 | |
| 162 | #socss-inspector-interface { |
| 163 | display: block; |
| 164 | height: 29px; |
| 165 | |
| 166 | .socss-selectors-window, |
| 167 | .socss-attributes-window { |
| 168 | display: none; |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | .socss-inspector-hover { |
| 174 | pointer-events: none; |
| 175 | position: absolute; |
| 176 | |
| 177 | /* Same index as the admin bar */ |
| 178 | z-index: 99999; |
| 179 | |
| 180 | border: 1px dashed rgba(0,117,203,1); |
| 181 | background: rgba(0,117,203,0.15); |
| 182 | |
| 183 | box-sizing: border-box; |
| 184 | |
| 185 | .socss-guide { |
| 186 | display: none; |
| 187 | } |
| 188 | |
| 189 | .socss-guide-margin, |
| 190 | .socss-guide-padding { |
| 191 | position: absolute; |
| 192 | |
| 193 | &.socss-guide-top, |
| 194 | &.socss-guide-bottom { |
| 195 | right: 0; |
| 196 | left: 0; |
| 197 | } |
| 198 | |
| 199 | &.socss-guide-left, |
| 200 | &.socss-guide-right { |
| 201 | top: 0; |
| 202 | bottom: 0; |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | .socss-guide-margin { |
| 207 | |
| 208 | background: rgba(20,126,74,0.25); |
| 209 | |
| 210 | &.socss-guide-top { |
| 211 | bottom: 100%; |
| 212 | } |
| 213 | |
| 214 | &.socss-guide-bottom { |
| 215 | top: 100%; |
| 216 | } |
| 217 | |
| 218 | &.socss-guide-left { |
| 219 | right: 100%; |
| 220 | } |
| 221 | |
| 222 | &.socss-guide-right { |
| 223 | left: 100%; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | .socss-guide-padding { |
| 228 | |
| 229 | background: rgba(0,117,203,0.25); |
| 230 | |
| 231 | &.socss-guide-top { |
| 232 | top: 0; |
| 233 | } |
| 234 | |
| 235 | &.socss-guide-bottom { |
| 236 | bottom: 0; |
| 237 | } |
| 238 | |
| 239 | &.socss-guide-left { |
| 240 | left: 0; |
| 241 | } |
| 242 | |
| 243 | &.socss-guide-right { |
| 244 | right: 0; |
| 245 | } |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | body, html { |
| 250 | max-width: 100% !important; |
| 251 | overflow-x: hidden !important; |
| 252 | } |