ScottKolo/suitesparse-matrix-collection-website

View on GitHub
app/assets/stylesheets/application.scss

Summary

Maintainability
Test Coverage
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any styles
 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
 * file per style scope.
 *
 *= require font_awesome5_webfont
 */

/********** SASS Variable Overrides **********/

$link-color: #125896;
$table-accent-bg: #fafafa;

/********** SASS Imports **********/

@import 'index.scss';
@import 'bootstrap';                 // Bootstrap
@import 'pages.scss';                // Static page styles
@import 'show_matrix.scss';
@import 'groups.scss';


body {
  width: auto;
  padding-top: 70px;
}

/********** Navbar styles **********/

$navbar-bg: rgb(0, 0, 0);

.navbar {
  background-color: $navbar-bg;
  border-color: #090909;
  color: #fff;
  height: 50px;
  padding-top: 0;
  display: block;
}

.navbar .container {
  height: 50px;
  position: relative;
}

.navbar-toggler {
  position: absolute;
  right: 0;
  top: 5px;
}

.navbar-collapse.show, .navbar-collapse.collapsing {
  z-index: 1000;
  position: absolute;
  top: 50px;
  width: 100%;
}

.navbar a {
  color: #fff;
}

.navbar-brand {
  font-family: "cutive";
  overflow: visible;
  padding: 0;
}

.navbar-brand h1 {
  position: absolute;
  top: 12px;
  font-size: 90%;
  color: #fff;
  display: block;
}

.navbar-brand small {
  display: block;
  font-size: 50%;
  color: #fff;
}

.logo {
  margin-left: -300px;
  display:inline-block;
  position: absolute;
  top: -24px;
}

@include media-breakpoint-up(sm) {
  .navbar-brand h1 {
    top: 8px;
    font-size: 100%;
  }

  .navbar-brand small {
    font-size:60%;
  }

  .logo {
    margin-left: -200px;
  }
}

.navbar-dark .navbar-toggler {
  background-color: #222;
}

.nav > li {
  padding: 10px;
}

.nav-pills {
  background-color: $navbar-bg;
  padding: 4px;
}

.nav-pills .nav-link.active, .nav-link:hover, .nav-link:focus {
  color: #fff;
  background-color: #222;
}

li.nav-item {
  padding-left: 8px;
}

/********** Flash/Notice styles **********/

#notice {
  color: green;
}

.alert-info {
  background-color: lighten($link-color, 62%);
  color: $link-color;
}

/********** Button styles **********/

a.btn {
  margin-left: 2px;
  margin-right: 2px;
  font-size: 83%;
}

/********** Footer Styles **********/

footer {
  background-color: $navbar-bg;
  color: #9d9d9d;
  padding: 20px;
  margin-bottom: 0;
  font-size: 9pt;
}

footer a {
  color: #9d9d9d;
}

footer a:active, footer a:hover {
  color: #fff;
}