aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/stylesheets/components/_page_header.sass
blob: 30b88f2c14ee48979af089b046eb956adf0ffb3a (plain)
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
.page_header
  background-color: $blue
  color: #fff

  .container-fluid > .row:first-child
    &:last-child
      margin-bottom: 15px

  .page-icon
    display: inline-block
    vertical-align: middle
    width: 49px
    height: 49px
    line-height: 49px
    text-align: center

    margin-right: 15px

    > .sb
      font-size: 3.5em

  .page-title
    display: inline-block
    vertical-align: middle
    width: calc(100% - 65px)

    &:first-child
      width: 100%

    h1
      position: relative
      line-height: 1.1
      max-height: 2.2em
      margin: 0 -1.4em 0 0
      padding: 0 1.4em 0 0
      overflow: hidden

      &:before
        content: '[...]'
        font-size: 0.65em
        position: absolute
        z-index: 5
        right: 0
        bottom: 4px

      &:after
        content: ''
        position: absolute
        z-index: 5
        right: 0
        width: 1.4em
        height: 1em
        margin-top: 0.2em
        background-color: $blue

      .small.fa
        color: #fff
        margin-left: 0.5em

  .page-action
    line-height: 42px
    margin-bottom: 10px
    text-align: right

    > *
      display: inline-block
      vertical-align: middle
      line-height: $line-height

      + .btn
        margin-left: 15px