_document.sass 1.92 KB
Newer Older
arturo's avatar
arturo committed
1 2 3 4 5 6 7 8 9 10 11 12
// 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%

13 14 15 16 17 18
  &__header
    display: flex
    justify-content: space-between
    padding: $card-spacer-y $card-spacer-x
    border-bottom: 1px solid $border-color
    margin-bottom: $card-spacer-y
arturo's avatar
arturo committed
19

20 21 22
  &__side-controls
    display: flex
    align-items: center
arturo's avatar
arturo committed
23

24 25 26
  &__saving
    color: $primary
    display: flex
arturo's avatar
arturo committed
27 28 29 30 31 32 33

    &__spinner
      width: 16px
      height: 16px

    &__icon
      font-size: 20px
34 35 36 37 38 39 40 41
      // fading icon apparition with a little pulse
      // wait a little, then fading icon on hiding
      animation: fade-in 200ms ease-in-out, fade-out 100ms ease-in-out 2000ms 1 normal forwards, pulse 200ms ease-in-out 0ms 1

  &__body
    max-width: $document-container-width
    padding: $card-spacer-x
    margin: 0 auto
arturo's avatar
arturo committed
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

  &__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