_footer.scss 3.47 KB
Newer Older
1
.wrapper-footer {
2
  box-shadow: 0 -1px 5px 0 rgba(0,0,0, 0.1);
3
  border-top: 1px solid tint($m-gray,50%);
4
  padding: 25px ($baseline/2) ($baseline*1.5) ($baseline/2);
5
  background: $footer-bg;
6

7 8
  footer {
    @include clearfix();
9 10
    max-width: grid-width(12);
    min-width: 760px;
11
    width: flex-grid(12);
12 13 14 15 16 17 18
    margin: 0 auto;

    p, ol, ul {
      font-family: $sans-serif;
    }

    a {
19
      @include transition(link-color 0.15s ease-in-out 0s, border 0.15s ease-in-out 0s);
20

21
      &:link, &:visited, &:hover, &:focus, &:active {
22
        border-bottom: none;
23
        color: $link-color;
24 25 26 27
        text-decoration: none !important;
        font-family: $sans-serif;
      }

28
      &:hover, &:focus, &:active {
29 30
        border-bottom: 1px dotted $link-color;
        color: $link-color;
31 32 33 34 35
      }
    }

    // colophon
    .colophon {
36
      margin-right: flex-gutter();
37
      width: flex-grid(8,12);
38
      float: left;
39

40 41
      .nav-colophon {
        @include clearfix();
42
        margin: $footer_margin;
43 44

        li {
45 46 47 48 49 50
          float: left;
          margin-right: ($baseline*0.75);

          a {
            color: tint($black, 20%);

51
            &:hover, &:focus, &:active {
52
              color: $link-color;
53
            }
54 55
          }

56 57
          &:last-child {
            margin-right: 0;
58 59 60 61
          }
        }
      }

62
      .colophon-about {
63
        @include clearfix();
64

65 66 67 68 69
        img {
          width: 68px;
          height: 34px;
          margin-right: 0;
          float: left;
70 71
        }

72 73
        p {
          float: left;
74
          width: flex-grid(6,8);
75 76 77 78
          margin-left: $baseline;
          padding-left: $baseline;
          font-size: em(13);
          background: transparent url(/static/images/bg-footer-divider.jpg) 0 0 no-repeat;
79 80
        }
      }
81
    }
82

83 84
    // references
    .references {
85
      margin: -10px 0 0 0;
86
      width: flex-grid(4,12);
87 88
      display: inline-block;
    }
89

90 91
    .wrapper-logo {
      margin: ($baseline*.75) 0;
92

93 94
      a {
        display: inline-block;
95

96 97 98 99 100
        &:hover {
          border-bottom: 0;
        }
      }
    }
101

102 103 104 105 106 107
    .copyright {
      margin: -2px 0 8px 0;
      font-size: em(11);
      color: $gray-l2;
      text-align: left;
    }
108

109 110 111
    .nav-legal {
      @include clearfix();
      text-align: left;
112

113 114 115 116 117 118
      li {
        display: inline-block;
        font-size: em(11);

        a {
          display: block;
119 120 121
        }
      }

122 123 124 125 126 127
      .nav-legal-01 a {

        &:after {
          margin-left: 5px;
          content: "-";
        }
128
      }
129
    }
130

131 132 133
    .nav-social {
      margin: 0;
      text-align: right;
134

135 136
      li {
        display: inline-block;
137

138 139
        &:last-child {
          margin-right: 0;
140 141
        }

142 143
        a {
          display: block;
144

145 146
          &:hover, &:focus, &:active {
            border: none;
147 148
          }
        }
149 150 151 152

        img {
          display: block;
        }
153 154
      }
    }
155

156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
    // platform Open edX logo and link
    .powered-by {
      width: flex-grid(3,12);
      display: inline-block;
      vertical-align: bottom;
      text-align: right;

      a {
        display: inline-block;

        &:hover {
          border-bottom: none;
        }
      }
    }
  }

  // edx theme overrides
  &.edx-footer {

    footer {

      .copyright {
        text-align: right;
      }

      .nav-legal {
        text-align: right;
      }
    }
186
  }
187 188 189
}

// marketing site design syncing
190
.view-register, .view-login, .view-passwordreset {
191 192 193 194 195 196 197 198

  .wrapper-footer footer {
    width: 960px;

    .colophon-about img {
      margin-top: ($baseline*1.5);
    }
  }
199
}