_layout.scss 2.88 KB
Newer Older
1 2 3 4
body {
  @include clearfix();
  height: 100%;
  font: 14px $body-font-family;
5 6
  background-color: lighten($dark-blue, 62%);
  background-image: url('/static/img/noise.png');
7 8 9

  > section {
    display: table;
10
    table-layout: fixed;
11 12 13 14
    width: 100%;
  }

  > header {
15
    background: $dark-blue;
16 17 18 19
    @include background-image(url('/static/img/noise.png'), linear-gradient(lighten($dark-blue, 10%), $dark-blue));
    border-bottom: 1px solid darken($dark-blue, 15%);
    @include box-shadow(inset 0 -1px 0 lighten($dark-blue, 10%));
    @include box-sizing(border-box);
20 21 22
    color: #fff;
    display: block;
    float: none;
23
    padding: 0 20px;
24
    text-shadow: 0 -1px 0 darken($dark-blue, 15%);
25 26 27 28 29
    width: 100%;

    nav {
      @include clearfix;

30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
      > a {
        @include hide-text;
        background: url('/static/img/menu.png') 0 center no-repeat;
        border-right: 1px solid darken($dark-blue, 10%);
        @include box-shadow(1px 0 0 lighten($dark-blue, 10%));
        display: block;
        float: left;
        height: 19px;
        padding: 8px 10px 8px 0;
        width: 14px;

        &:hover, &:focus {
          opacity: .7;
        }
      }

46
      h2 {
47 48 49
        border-right: 1px solid darken($dark-blue, 10%);
        @include box-shadow(1px 0 0 lighten($dark-blue, 10%));
        float: left;
50
        font-size: 14px;
51
        margin: 0;
52
        text-transform: uppercase;
53
        -webkit-font-smoothing: antialiased;
54 55 56

        a {
          color: #fff;
57 58
          padding: 8px 20px;
          display: block;
59 60

          &:hover {
61 62
            background-color: rgba(darken($dark-blue, 15%), .5);
            color: $yellow;
63 64 65 66 67 68 69 70 71 72
          }
        }
      }

      a {
        color: rgba(#fff, .8);

        &:hover {
          color: rgba(#fff, .6);
        }
73 74 75 76
      }

      ul {
        float: left;
77
        margin: 0;
78 79
        padding: 0;
        @include clearfix;
80 81 82

        &.user-nav {
          float: right;
83
          border-left: 1px solid darken($dark-blue, 10%);
84 85 86
        }

        li {
87 88 89
          border-right: 1px solid darken($dark-blue, 10%);
          float: left;
          @include box-shadow(1px 0 0 lighten($dark-blue, 10%));
90 91

          a {
92
            padding: 8px 20px;
93 94 95
            display: block;

            &:hover {
96 97 98 99 100 101 102 103 104 105 106
              background-color: rgba(darken($dark-blue, 15%), .5);
              color: $yellow;
            }

            &.new-module {
              &:before {
                @include inline-block;
                content: "+";
                font-weight: bold;
                margin-right: 10px;
              }
107 108
            }
          }
109 110 111 112 113 114 115
        }
      }
    }
  }

  &.content {
    section.main-content {
116
      border-left: 2px solid $dark-blue;
117
      @include box-sizing(border-box);
118
      width: flex-grid(9) + flex-gutter();
119
      float: left;
120
      @include box-shadow( -2px 0 0 lighten($dark-blue, 55%));
121
      @include transition();
122
      background: #FFF;
123 124 125
    }
  }
}