indentlabs/notebook

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

Summary

Maintainability
Test Coverage
ul li.collection-item:hover .secondary-content {
  display: block !important;
}

table.content-table tr .secondary-content {
   visibility: hidden;
}

table.content-table tr:hover .secondary-content {
   visibility: visible;
}

p.long-form {
  margin-bottom: 16px;
}

.grey-text {
  /*
  i {
    font-size: 90%;
  }
  */

  a {
    color: grey;
  }
}

.content-tabs {

  li.tab, li.fake-tab {
    margin: 0;
    padding: 0 !important;

    a {
      display: block;
      padding: 10px;
      padding-right: 0;
    }
  }

  li:hover {
    a {
      color: red;
    }
  }
}

.slides .caption h3 {
  position: relative;
  top: -0.25em;
  left: -1em;

  p {
    margin: 0;
    padding: 0;
  }
}

.content-field {
  min-height: 60px;

  textarea.materialize-textarea {
    height: 80px;
  }

  &.link {
    padding-bottom: 2em;
  }

  .field-actions {
    position: relative;
    top: -0.4em;
  }
}

.content-field.focused {
  padding: 5px;
  margin-left: -5px;
  margin-right: -5px;
  margin-bottom: 20px;
  position: relative;

  background: rgba(255, 255, 255, 0.15);
  background-blend-mode: darken;

  z-index: 1;

  textarea {
    min-height: 140px;
    font-size: 130%;
  }
}

.formatted-text {
  p {
    margin-bottom: 20px !important;
  }

  ul {
    list-style: initial;

    li {
      list-style-type: initial !important;
    }
  }

  ol {
    padding: 0;
  }
}

.markdownable {
  margin-top: 9px !important;

  ul {
    padding-left: 40px !important;
    li {
      list-style-type: disc !important;
    }
  }

  p:not(:first-child) {
    margin-bottom: 18px !important;
  }
}

.spaced-paragraphs {
  p {
    margin-bottom: 18px !important;
  }
}

.changelog {
  td {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  margin-bottom: 30px;
}

.parallax-header {
  height: 1px; 
  position: relative; 
  top: -1px;
  width: 100%;

  img {

    width: 100%;
    height: 300px;
  }
}

#documents_panel {
  ul li {
    margin-bottom: 10px;
  }
}

.spoiler {
  background: black;
  color: black;
  padding-left: 1em;
  padding-right: 1em;

  &:hover {
    background: white;
    color: black;
  }
}

.favorite-button {
  position: relative;
  top: 20px;
  right: 20px;
  z-index: 20;

  &:hover {
    color: orange !important;
    cursor: pointer;
  }
}

.spaced-paragraphs p {
  margin-bottom: 1em;
}

.section-title {
  font-size: 1.5em;
  border-bottom: 1px dashed lightgrey;
  margin-bottom: 0rem;
  padding-left: 1em;
  padding-right: 0.75em;
  padding-top: 0.25em;

  i.left, i.right {
    font-size: 1.5em;
  }
}

.sticky-below-navbar {
  position: -webkit-sticky; 
  position: sticky;
  top: 72px;
  z-index: 500;
}

.panel-field {
  margin-bottom: 2em;
}