_footer-edx.scss 3.19 KB
Newer Older
1 2 3 4 5 6
// edX theme: LMS Footer
// ====================
@import '../base/grid-settings';
@import 'neat/neat'; // lib - Neat


7
$edx-footer-link-color: $link-color;
8 9 10 11 12 13 14 15 16 17 18
$edx-footer-bg-color: rgb(252,252,252);


// Aggressively scoped for Drupal
// ==============================
// These styles are being loaded on Drupal, LMS and WordPress
// sites so the scope has to be aggressive to override default
// CMS styles
footer#footer-edx-v3 {
  background: $edx-footer-bg-color;
  padding: 20px;
19
  border-top: 1px solid $courseware-button-border-color;
20

21 22 23 24 25
  .footer-content-wrapper {
    @include outer-container;
    @include box-sizing(border-box);
  }

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
  p {
    @include font-size(14);
    @include line-height(14);
    font-family: $sans-serif;
  }

  .site-nav,
  .legal-notices {
    a {
      @include font-size(14);
      @include line-height(14);
      @include margin-right(20px);
      color: $edx-footer-link-color;

      &:last-of-type {
        @include margin-right(0);
      }
43 44 45 46 47

      &:hover,
      &:focus {
        border: none;
      }
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
    }
  }

  .footer-logo,
  .site-details,
  .external-links {
    @include span-columns(12);
  }

  .site-details,
  .external-links {
    margin-top: 5px;
  }

  .footer-logo {
    margin-bottom: 30px;
  }

  .legal-notices {
    margin: 20px 0 30px;
  }

  .openedx-link {
71
    @include margin(10px, 0, 30px, -8px);
72 73 74 75 76 77 78 79 80 81 82 83 84
    width: 141px;

    a {
      display: inline-block;
    }

    img {
      width: 100%;
    }
  }

  .mobile-app-links {
    @include clearfix();
85 86 87
    position: relative;
    width: 260px;
    height: 42px;
88 89 90
  }

  .social-media-links {
91
    @include clearfix();
92 93 94
    margin-bottom: 30px;
  }

95
  a.sm-link {
96
    @include float(left);
97
    @include margin(0, 0, 10px, 10px);
98 99
    @include font-size(28);
    @include line-height(28);
100
    width: 35px;
101 102 103 104 105
    height: 30px;
    line-height: 1;
    position: relative;
    display: inline;
    background: none;
106
    text-align: left;
107 108 109 110 111

    &:first-of-type {
      @include margin-left(0);
    }

112 113
    &:hover,
    &:focus {
114
      opacity: 0.7;
115
      border: none;
116 117 118 119 120 121 122 123 124
    }

    .icon {
      font-family: 'FontAwesome';
      color: $edx-footer-link-color;
    }
  }

  .app-link {
125 126 127 128 129 130
    position: absolute;
    top: 0;

    &:first-of-type {
      @include left(0);
    }
131 132

    &:last-of-type {
133
      @include right(0);
134 135 136 137
    }

    img {
      height: 40px;
138
      max-width: 200px;
139 140 141
    }
  }

142 143 144 145 146 147 148 149 150
  .site-nav,
  .legal-notices,
  .footer-logo,
  .external-links {
    @extend %ui-print-excluded;
  }

  @media print {
    .site-details p {
151
      @include float(left);
152 153 154 155
    }

    .openedx-link {
      margin: 0;
156
      @include float(right);
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 186 187 188 189 190 191 192 193 194 195 196 197 198 199
  @include media( $edx-bp-large ) {
    padding: 20px 10px;

    .site-details {
      @include span-columns(7);
    }

    .external-links {
      @include span-columns(5);
    }

    .social-media-links,
    .mobile-app-links {
      @include float(right);
    }

    .social-media-links {
      width: calc();
      margin-bottom: 40px;
    }
  }

  @include media( $edx-bp-huge ) {
    .footer-logo {
      @include span-columns(2);
    }

    .site-details {
      @include span-columns(6);
    }

    .external-links {
      @include span-columns(4);
    }

    .social-media-links {
      margin-bottom: 50px;
    }
  }
}