_header.scss 3.53 KB
Newer Older
1 2 3
// LMS header styles

.header-global {
4
    @extend %ui-depth1;
5
    box-sizing: border-box;
6
    position: relative;
7
    width: 100%;
8
    border-bottom: 1px solid $header-border-color;
9 10
    box-shadow: 0 1px 5px 0 $shadow-l1;
    background: $header-bg;
11

12
    .logo-header {
13
        display: inline;
14 15
    }

16 17 18 19 20 21
    .wrapper-header {
        @include clearfix();
        box-sizing: border-box;
        margin: 0 auto;
        padding: 10px 10px 0;
        width: 100%;
22
        max-width: $lms-max-width;
23

24 25 26
        .left {
            @include float(left);
        }
27

28 29 30
        .right {
            @include float(right);
        }
31

32 33 34 35 36 37 38 39 40 41 42 43
        .logo {
            @include float(left);
            @include margin-right(10px);
            margin-top: 4px;
            margin-bottom: 0;
            position: relative;
        }

        .course-header {
            @include float(left);
            @include margin(12px, 10px, 0px, 10px);
            color: $lms-label-color;
44
            .provider {
45
                font-weight: bold;
46
            }
47 48 49 50 51 52 53
        }

        .wrapper-user-menu {
            @include float(right);
            margin-top: 4px;
            width: auto;
        }
54

55 56 57 58 59
        .dropdown-menu {
            @include text-align(left);
            top: inherit;
        }

Jareer Ahsan committed
60 61 62 63
        .user-menu {
            display: inline;
        }

64 65
        .list-inline {
            &.nav-global {
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
                @include margin(0, 0, 0, $baseline/2);

                .btn {
                    text-transform: uppercase;
                    border: none;
                    padding: 0;
                    color: $lms-active-color;
                    background: transparent;

                    &:hover {
                        background: transparent;
                        color: $link-hover;
                        text-decoration: underline;
                    }
                }
81
            }
82

83 84
            .item {
                font-weight: font-weight(semi-bold);
Andy Armstrong committed
85

86 87 88 89 90 91 92
                &.active {
                    a {
                        text-decoration: none;
                        color: $link-color;
                    }
                }
            }
93
        }
94

95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
        .tab-nav-item{
            @include float(left);
            display: flex;
            margin: 0;
            justify-content: center;

            .tab-nav-link{
                font-size: font-size(base);
                font-weight: font-weight(semi-bold);
                color: palette(grayscale, dark);
                padding: 5px 25px 23px;
                display: inline-block;

                &:active,
                &:focus,
                &:hover {
                    border-bottom: 4px solid $lms-border-color;
                }
            }

            .active{
                border-bottom: 4px solid $black-t3 !important;
            }
118
        }
119 120 121 122 123 124 125 126 127 128 129
    }

    // Style the courseware's slim version of the header
    &.slim {
        .wrapper-header {
            height: 60px;

            .logo img {
                margin-top: 4px;
                height: 30px;
            }
130

131 132 133 134 135 136 137 138 139 140 141 142
            .course-header {
                margin-top: 10px;
            }

            .list-inline.nav-global {
                margin-top: 10px;
            }

            .wrapper-user-menu {
                margin-top: 0;
            }
        }
143 144
    }
}
145 146 147 148 149 150 151 152 153

.doc-link {
    @include float(right);
    @include margin(($baseline*0.75), ($baseline*0.75), ($baseline*0.75), ($baseline*0.75));
    font-size: 14px;
    font-weight: bold;
    color: $base-font-color;

    &:visited {
154
        color: $base-font-color;
155 156
    }
}