/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


.resource-main {
    padding: 0;
    margin: 0;
}

.image-resource-view {
    border: solid thin black;
}

.resource-image-box {
    padding: 8px;
    margin: 8px;
    vertical-align: top;
    display: inline-block;
    width: 100px;
    height: 120px;
    border: solid thin black;
    text-align: center;
    overflow: hidden;
}

.resource-image-box img {
    max-width: 70px;
    max-height: 70px;
}

.resource-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(../ui-images/type_other.png);
}

.resource-type-markup {
    background-image: url(../ui-images/type_markup.png);
}

.resource-type-css {
    background-image: url(../ui-images/type_style.png);
}

.resource-type-script {
    background-image: url(../ui-images/type_script.png);
}

.resource-type-flash {
    background-image: url(../ui-images/type_flash.png);
}

.resource-type-image {
    background-image: url(../ui-images/type_picture.png);
}

.resource-detail-container {
    display: block;
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
    border-top: 100px solid #ccc;
    /* is currently needed due to a bug. otherwise the scroll height is bigger than the height. */
    position: relative;
}

.line-numbered-resource {
  position: relative;
}

.line-numbered-resource pre {
    padding-top: 0;
    margin-top: 0;
    margin-left: 10ex;
}

.resource-line-numbers {
  position: absolute;
  left: 0;
  top: 0;
  width: 7ex;
  padding-right: 1ex;
  text-align: right;
  background-color: hsl(0, 0%, 96%);
  color: hsl(0, 0%, 70%);
  border-right: 1px solid hsl(0, 0%, 70%);
  white-space: pre;
}

.resource-image {
  display: block;
  max-height: 100%;
  max-width: 100%;
  margin: 10px auto;
  background: #fff url("../ui-images/grid_checkers_black.png");
  box-shadow: 0 0 10px rgba(0, 0, 0, .4);
}

.font-preview {
  font-size: 400%;
  text-align: center;
}
