_shared_header.scss 6.02 KB
Newer Older
Matthew Mongeau committed
1 2 3 4 5 6
header.app {
  border-bottom: 1px solid rgb(200,200,200);
  @include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(230,230,230)));
  height: 55px;
  width: 100%;

7
  .wrapper {
Matthew Mongeau committed
8 9 10 11 12 13 14 15 16 17 18 19 20
    @include clearfix;
    @include box-sizing(border-box);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 10px;
    width: flex-grid(12);
  }

  a.logo {
    @include box-sizing(border-box);
    display: block;
    float: left;
    height: 100%;
21
    margin: 16px 15px 0px 0px;
22 23 24 25 26 27
    position: relative;

    img {
      position: relative;
      z-index: 2;
    }
Matthew Mongeau committed
28 29
  }

30 31 32 33 34
  .divider {
    @extend .vertical-divider;
    @include inline-block;
    height: 40px;
    vertical-align: middle;
Matthew Mongeau committed
35 36
  }

37 38 39 40 41 42 43 44 45 46 47 48

  nav {
    height: 40px;
    margin-top: 8px;

    &.find-courses {
      float: left;
    }

    &.guest {
      float: right;
    }
Matthew Mongeau committed
49

50 51
    ol {
      font-size: 0em;
Matthew Mongeau committed
52

53 54
      li {
        @include inline-block;
55 56
        vertical-align: top;
      }
Matthew Mongeau committed
57

58 59
      li.secondary {
        margin: 0px 15px;
Matthew Mongeau committed
60 61

        a {
62 63
          @include border-radius(3px);
          border: 1px solid transparent;
64 65
          @include box-sizing(border-box);
          color: $lighter-base-font-color;
66
          display: block;
67 68 69 70 71
          font: normal italic 1.2rem/1.4rem $serif;
          height: 30px;
          @include inline-block;
          margin: 5px 15px 5px 0px;
          padding: 7px 2px;
72
          text-decoration: none;
Matthew Mongeau committed
73
          text-transform: lowercase;
74
          text-shadow: 0 1px rgba(255,255,255, 0.6);
75 76 77 78 79 80 81 82 83 84 85 86 87
          vertical-align: middle;

          &:last-child {
            margin-right: 0px;
          }

          &:hover {
            color: $base-font-color;
          }
        }
      }

      li.primary {
88 89
        position: relative;

90 91 92 93 94 95 96
        a {
          border: 1px solid transparent;
          @include border-radius(3px);
          @include box-sizing(border-box);
          color: $base-font-color;
          display: block;
          font: normal 1.2rem/1.4rem $sans-serif;
97
          height: 38px;
98
          @include inline-block;
99 100
          margin: 1px 5px;
          padding: 10px 8px;
101 102 103 104
          text-decoration: none;
          text-transform: uppercase;
          text-shadow: 0 1px rgba(255,255,255, 0.6);
          vertical-align: middle;
105

106
          &:hover, &.active {
107 108 109 110
            @include background-image(linear-gradient(-90deg, rgb(245,245,245) 0%, rgb(243,243,243) 50%, rgb(237,237,237) 50%, rgb(235,235,235) 100%));
            border-color: rgb(200,200,200);
            @include box-shadow(0 1px 0 0 rgba(255,255,255, 0.6));
          }
Matthew Mongeau committed
111 112 113
        }
      }
    }
114

115 116
    &.user {
      float: right;
Matthew Mongeau committed
117

118 119
      a.user-link {
        padding: 9px 8px 11px 40px;
120
        position: relative;
121
        text-transform: none;
Matthew Mongeau committed
122

123 124 125 126 127
        @media screen and (max-width: 768px) {
          font-size: 0em;
          padding: 10px 0px;
          width: 38px;
        }
Matthew Mongeau committed
128

129 130 131 132 133 134 135 136 137 138 139 140
        .avatar {
          background: rgb(220,220,220);
          @include border-radius(3px);
          border: 1px solid rgb(180,180,180);
          @include box-shadow(0 1px 0 0 rgba(255,255,255, 0.6));
          height: 22px;
          @include inline-block;
          left: 8px;
          overflow: hidden;
          position: absolute;
          top: 6px;
          width: 22px;
Matthew Mongeau committed
141

142 143 144 145 146 147 148 149 150
          &::after {
            @include background-image(linear-gradient((-60deg), rgba(0,0,0, 0) 0%, rgba(0,0,0, 0.1) 50%, rgba(0,0,0, 0.2) 50%, rgba(0,0,0, 0.3) 100%));
            content: "";
            display: block;
            height: 100%;
            position: absolute;
            right: 0px;
            top: 0px;
            width: 100%;
151
          }
Matthew Mongeau committed
152

153 154 155 156 157 158
          img {
            @include border-radius(4px);
            display: block;
            min-height: 100%;
            min-width: 100%;
            height: 100%;
Matthew Mongeau committed
159
          }
160 161
        }
      }
Matthew Mongeau committed
162

163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
      ol.user-options {
        @include border-radius(4px);
        @include box-shadow(0 1px 6px 0 rgba(0,0,0, 0.3));
        border: 1px solid rgb(0,0,0);
        @include background-image(linear-gradient(-90deg, rgba(0,0,0, 0.9) 0%,
                                                          rgba(0,0,0, 0.7) 100%));
        display: none;
        right: 0px;
        padding: 5px 10px;
        position: absolute;
        top: 52px;
        width: 150px;
        z-index: 3;

        &.expanded {
          display: block;
        }
Matthew Mongeau committed
180

181 182 183 184 185 186 187
        &::before {
          background: transparent;
          border: {
            top: 6px solid rgba(0,0,0, 1);
            right: 6px solid rgba(0,0,0, 1);
            bottom: 6px solid transparent;
            left: 6px solid transparent;
Matthew Mongeau committed
188
          }
189 190 191 192 193 194 195 196 197
          @include box-shadow(1px 0 0 0 rgb(0,0,0), 0 -1px 0 0 rgb(0,0,0));
          content: "";
          display: block;
          height: 0px;
          position: absolute;
          @include transform(rotate(-45deg));
          right: 12px;
          top: -6px;
          width: 0px;
Matthew Mongeau committed
198 199
        }

200 201 202 203
        li {
          display: block;
          border-top: 1px solid rgba(0,0,0, 0.4);
          @include box-shadow(inset 0 1px 0 0 rgba(255,255,255, 0.05));
Matthew Mongeau committed
204

205 206 207
          &:first-child {
            border: none;
            @include box-shadow(none);
Matthew Mongeau committed
208 209
          }

210 211 212
          > a {
            @include box-sizing(border-box);
            color: rgba(255,255,255, 0.9);
Matthew Mongeau committed
213
            display: block;
214 215 216 217 218 219 220 221 222 223
            font: normal italic 1.2rem/1.4rem $serif;
            height: auto;
            margin: 5px 0px;
            overflow: hidden;
            padding: 3px 5px 4px;
            text-shadow: none;
            text-overflow: ellipsis;
            text-transform: none;
            @include transition(padding, 0.1s, linear);
            white-space: nowrap;
Matthew Mongeau committed
224 225
            width: 100%;

226 227 228 229 230 231 232 233
            &:hover {
              background: $blue;
              @include background-image(linear-gradient(-90deg, lighten($blue, 15%) 0%,
                                                                rgba($blue, 1) 100%));
              border-color: rgba(0,0,0, 1);
              @include box-shadow(none);
              padding-left: 8px;
              text-shadow: 0 -1px rgba(0,0,0, 0.2);
Matthew Mongeau committed
234 235 236 237 238 239 240
            }
          }
        }
      }
    }
  }
}