/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html {
  color: #222;
  font-size: 14px;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */
.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html,
body {
  margin: 0;
  height: 100%;
  padding: 0;
}

#app {
  height: 100%;
}

.toast-top-right {
  top: 120px;
  left: 0;
  right: 0;
  width: 100%;
}

#toast-container > div {
  margin: 0 auto 6px;
}

.tag-list {
  margin-bottom: 10px;
  height: 44px;
  line-height: 41px;
  color: #969696;
  background-color: #fff;
  border-bottom: 1px solid #e3e3e9;
  overflow: hidden;
}

.tag-list .tag-item {
  float: left;
  margin: 0 16px;
  cursor: pointer;
}

.tag-list .tag-item.active {
  color: #ea5947;
  border-bottom: 2px solid #ea5947;
}

.search-block {
  position: relative;
  width: 160px;
  padding: 0 14px;
  line-height: 28px;
  border-radius: 16px;
  background-color: #fff;
}

.search-block .glyphicon {
  position: absolute;
  top: 0;
  left: 8px;
  line-height: 28px;
  font-size: 14px;
  color: #969696;
}

.search-block .search-input {
  width: 100%;
  padding: 0 16px 0 16px;
  border: none;
  outline: none;
  background-color: transparent;
}

.search-block .iconfont {
  position: absolute;
  top: 0;
  right: 8px;
  line-height: 28px;
  font-size: 14px;
  color: #969696;
}

.search-block .search-btn {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid #e3e3e9;
  border-radius: 15px;
  white-space: nowrap;
}

.resource-list {
  background-color: #fff;
}

.resource-item {
  position: relative;
  height: 70px;
  padding: 0 16px;
  border-bottom: 1px solid #e3e3e9;
  overflow: hidden;
}

.resource-item .resource-type {
  position: absolute;
  left: 16px;
  line-height: 70px;
}

.resource-item .resource-type .iconfont {
  font-size: 36px;
}

.resource-item .resource-type .icon-fujianleixingshipin {
  color: #efc756;
}

.resource-item .resource-type .icon-fujianleixingwendang {
  color: #529fff;
}

.resource-item .resource-type .icon-fujianleixinghtml {
  color: #71d0ff;
}

.resource-item .resource-type .icon-fujianleixingtuwen {
  color: #d1469c;
}

.resource-item .resource-type .icon-fujianleixingppt {
  color: #f36666;
}

.resource-item .resource-type .icon-fujianleixingword {
  color: #529fff;
}

.resource-item .resource-type .icon-fujianleixingexcel {
  color: #7dccac;
}

.resource-item .resource-type .icon-fujianleixingpdf {
  color: #f36666;
}

.resource-item .resource-type .icon-fujianleixingtxt {
  color: #ae9ae2;
}

.resource-item .resource-type .icon-fujianleixingqita1 {
  color: #c97943;
}

.resource-item .resource-type .icon-fujianleixingzhibo {
  color: #fc0;
}

.resource-item .resource-type .icon-fujianleixingtupian {
  color: #d1469c;
}

.resource-item .resource-type .icon-fujianleixingyinpin {
  color: #859dd5;
}

.resource-item .resource-info {
  height: 100%;
  padding: 13px 0 13px 46px;
}

.resource-item .resource-name {
  font-size: 15px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-item .resource-other-info {
  margin-top: 8px;
  font-size: 14px;
  color: #969696;
}

.resource-item .resource-other-info .iconfont {
  margin-right: 4px;
  font-size: 14px;
  color: #cbcbd1;
}

.resource-item .resource-views {
  min-width: 60px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Hide visually and from screen readers
 */
.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
  /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */
.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print, (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

a {
  text-decoration: none;
}

a:hover, a:focus, a:active {
  text-decoration: none;
}

td {
  word-break: break-all;
}
