/* This file is part of nginx-fancyindex-flat-theme.
 *
 * nginx-fancyindex-flat-theme is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * nginx-fancyindex-flat-theme is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see
 *
 *  http://www.gnu.org/licenses/
 *
 *
 * Copyright (C)
 *  2018 Alexander Haase <ahaase@alexhaase.de>
 */
/* This theme heavily uses Twitter Bootstrap (v4). That means, bootstrap CSS
 * classes will be used if possible and modified or enhanced by classes defined
 * in this less file (and dependent files). However, the bootstrap sources will
 * not be used and compiled in this theme for simplicity, so one served by a
 * central CDN may be used.
 *
 * Although this code shouldn't be affected by Bootstrap's licensing and/or
 * copyright, we'd like to inform anyone, that Bootstrap is licensed under the
 * MIT license.
 *
 *   Copyright (c) 2011-2018 Twitter, Inc.
 *   Copyright (c) 2011-2018 The Bootstrap Authors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 *
 * NOTE: The following comment will be used as short version of the copyright
 *       notice above to be included in compressed files, too.
 */
/*!
 * This file is part of the nginx-fancyindex-flat-theme (licensed under the GPL
 * license) and uses Twitter Bootstrap (v4) (licensed under the MIT license).
 *
 * Copyright (C)
 *  2018 Alexander Haase <ahaase@alexhaase.de>
 *
 * See the LICENSE file for details.
 */
/* Although imported files will be imported only once by the less compiler by
 * default, the individual files will NOT import any other less files for
 * simplicity, but all files included in this main file. However, as variables
 * and functions are lazy loaded, there shouldn't be any dependency problems. */
/* This file is part of nginx-fancyindex-flat-theme.
 *
 * nginx-fancyindex-flat-theme is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * nginx-fancyindex-flat-theme is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see
 *
 *  http://www.gnu.org/licenses/
 *
 *
 * Copyright (C)
 *  2018 Alexander Haase <ahaase@alexhaase.de>
 */
/**
 * This file includes some general settings for the body of this template, e.g.
 * the background-color and paddings for the footer.
 */
html,
body {
  background: url(background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #9ee8fe;
}
body {
  /* If the body fits the entire page, there should be a little spacer between
     * the content and the footer. */
  padding-bottom: 20px;
}
/* This file is part of nginx-fancyindex-flat-theme.
 *
 * nginx-fancyindex-flat-theme is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * nginx-fancyindex-flat-theme is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see
 *
 *  http://www.gnu.org/licenses/
 *
 *
 * Copyright (C)
 *  2018 Alexander Haase <ahaase@alexhaase.de>
 */
/**
 * This file includes tweaks for the breadcrumbs.
 *
 * Breadcrumbs of this template should have no background (i.e. transparent
 * background) and its crumbs should have the primary color of this theme.
 */
.breadcrumb {
  /* Override the default colors of bootstrap breadcrumbs, so there is no
     * background anymore and links are colorized with the theme's default green
     * tone. */
  background-color: transparent;
  /* Breadcrumbs should be aligned with the text in the navbar-branding and
     * the directory index table. Therefore a left-padding is required. */
  padding-left: 35px;
}
.breadcrumb .breadcrumb-item a {
  color: #4caf50;
}
/* This file is part of nginx-fancyindex-flat-theme.
 *
 * nginx-fancyindex-flat-theme is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * nginx-fancyindex-flat-theme is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see
 *
 *  http://www.gnu.org/licenses/
 *
 *
 * Copyright (C)
 *  2018 Alexander Haase <ahaase@alexhaase.de>
 */
/**
 * Color definitions.
 *
 * As this theme doesn't use bootstrap source files, the following color
 * definitions are required for classes setting colors for elements. If the
 * color is taken from the original Bootstrap source, the name is identical to
 * the one in Bootstrap for compatibility.
 */
/**
 * Grayscale colors.
 *
 * NOTE: Although not all colors of the grayscale palette will be used, all
 *       colors have been copied for simlicity when fixing color issues in
 *       future commits.
 */
/**
 * Colors from Google's material design.
 *
 * The application's primary color is a green-tone taken from Google's material
 * design, licensed under the MIT license.
 */
/* This file is part of nginx-fancyindex-flat-theme.
 *
 * nginx-fancyindex-flat-theme is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * nginx-fancyindex-flat-theme is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see
 *
 *  http://www.gnu.org/licenses/
 *
 *
 * Copyright (C)
 *  2018 Alexander Haase <ahaase@alexhaase.de>
 */
/**
 * This file configures the footer navbar. The navbar will be transparent with
 * muted text. If the content doesn't fill the whole brwoser window, the footer
 * will stick to the bottom of it, otherwise it will reside at the bottom of the
 * page.
 *
 * The following classes will extend the 'navbar' and 'navbar-bottom' classes of
 * bootstrap, so the footer tag should use these classes in addition to the
 * 'footer' class defined below.
 */
/**
 * The height of the footer navbar.
 *
 * The height of the footer is required for calculating paddings and margins for
 * the body. Although it won't be set for the footer (the default value from
 * bootstrap will be used), it will be defined here to be used in other files.
 */
/* If the content doesn't fill the entire browser window, the footer should
 * still fit to the bottom of the page - in this case the bottom of the browser
 * window. The following snippet will expand the content of the page, so the
 * footer will be displayed at the bottom of the page or the window, depending
 * on the size of the content.
 *
 * This snippet is based on an answer (https://stackoverflow.com/a/27635568)
 * of abmmhasan (https://stackoverflow.com/users/3300834) at
 * stackoverlow.com, licensed under CC-BY-SA 3.0. */
html {
  position: relative;
  min-height: 100%;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-bottom: 0;
}
.footer a,
.footer a:hover,
.footer a:focus {
  color: #4caf50;
}
/* This file is part of nginx-fancyindex-flat-theme.
 *
 * nginx-fancyindex-flat-theme is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * nginx-fancyindex-flat-theme is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see
 *
 *  http://www.gnu.org/licenses/
 *
 *
 * Copyright (C)
 *  2018 Alexander Haase <ahaase@alexhaase.de>
 */
/**
 * This file configures the header navbar. There will be only slight differences
 * from bootstrap's default navbar: the background is green with white text.
 *
 * NOTE: This class should be used together with the `navbar` class.
 */
/**
 * The height of the header navbar.
 */
.header {
  background-color: #000;
  color: #fff;
  /* The default bootstrap navbar is higher than we'd like to have it. The
     * following snippet will minimize it to the configured height above.
     *
     * This snippet is based on an answer (https://stackoverflow.com/a/25093300)
     * of Hoang Vu Tgtt (https://stackoverflow.com/users/1804068) at
     * stackoverlow.com, licensed under CC-BY-SA 3.0. */
  min-height: 24px;
}
.header .navbar-brand {
  padding: 0 24px / 3;
  font-size: 48px/3;
  line-height: 24px;
  height: 24px;
}
/* This file is part of nginx-fancyindex-flat-theme.
 *
 * nginx-fancyindex-flat-theme is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * nginx-fancyindex-flat-theme is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see
 *
 *  http://www.gnu.org/licenses/
 *
 *
 * Copyright (C)
 *  2018 Alexander Haase <ahaase@alexhaase.de>
 */
/**
 * This file configures anything related to the directory index, that is not
 * handled by the general classes, e.g. the handling of filenames.
 */
#list {
  /* Filenames and the table headings may link to the relating file or sort
     * the table. However, these links shoul NOT be highlighted. Decorations
     * will be kept enabled for underlineing the link when hovering. */
  /* The colgroup needs to be hidden to stop the default fancyindex table to
     * set the width of the columns. */
}
#list a,
#list a:hover,
#list a:focus {
  color: #000;
}
#list colgroup {
  display: none;
}
#list .filename {
  /* As the filenames could take more space than available, allow the
         * browser to break it if needed. */
  word-break: break-all;
  white-space: normal;
}
