_document.sass 1.84 KB
Newer Older
arturo's avatar
arturo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
// Every website specialised in scientific articles deals with a column
// container between 760px and 800px
$document-container-width: 780px

///////////////////////////////////////////////////////////

.document-layout
  $label-column-size: 96px

  position: relative
  width: 100%
  max-width: $document-container-width
  margin: 0 auto

  &__controls
    // margin-bottom: space-x(4)

    float: right
    color: $primary

    &__hint
      margin-right: space-x(1)
      font-style: italic
      font-size: 14px

      // delaying hint apparition
      animation-name: fade-in
      animation-delay: 400ms
      animation-duration: 600ms
      animation-timing-function: ease-in-out
      animation-direction: alternate
      animation-iteration-count: infinite
      opacity: 0

    &__spinner
      width: 16px
      height: 16px

    &__icon
      font-size: 20px
      animation: fade-in 200ms ease-in-out


  &__separator-label
    font-weight: bold
    border-bottom: 1px solid $gray-200
    padding-bottom: space-x(0.5)
    margin-bottom: space-x(1.5)

  &__title
    font-size: 26px
    font-weight: bold
    line-height: 1.4
    word-wrap: break-word
    margin-bottom: space-x(3)
    font-family: $headings-font-family

  &__authors
    display: flex
    margin-bottom: space-x(0.5)

    &__label
      font-weight: bold
      flex-basis: $label-column-size
      flex-shrink: 0
      font-size: 15px

    &__content
      line-height: 1.2
      color: $gray-800

  &__source,
  &__date
    display: flex
    margin-bottom: space-x(0.5)

    &__label
      font-weight: bold
      flex-basis: $label-column-size
      flex-shrink: 0
      font-size: 15px

    &__content
      font-size: 15px
      color: $gray-600

  &__abstract
    margin-top: space-x(4)
    margin-bottom: space-x(3)

    &__content
      color: $gray-800
      font-size: 18px
      line-height: 1.4