346 lines
5.2 KiB
SCSS
346 lines
5.2 KiB
SCSS
// header
|
|
.wrapper-header {
|
|
margin: 0 0 ($baseline*1.5) 0;
|
|
padding: $baseline;
|
|
border-bottom: 1px solid tint($m-gray, 50%);
|
|
@include box-shadow(0 1px 5px 0 rgba(0,0,0, 0.1));
|
|
background: $white;
|
|
height: 76px;
|
|
position: relative;
|
|
width: 100%;
|
|
z-index: 10;
|
|
|
|
a {
|
|
color: $baseFontColor;
|
|
display: block;
|
|
|
|
&:hover, &:active {
|
|
color: $blue;
|
|
}
|
|
}
|
|
}
|
|
|
|
.header {
|
|
@include clearfix();
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
color: $lightGrey;
|
|
}
|
|
|
|
.branding, .info-course, .nav-course, .nav-account {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.branding, .info-course, .nav-course {
|
|
margin: 0 ($baseline*0.75) 0 0;
|
|
}
|
|
|
|
.branding {
|
|
position: relative;
|
|
padding-right: 15px;
|
|
|
|
a {
|
|
@include text-hide();
|
|
display: block;
|
|
width: 164px;
|
|
height: 32px;
|
|
background: transparent url('../img/logo-edx-studio.png') 0 0 no-repeat;
|
|
}
|
|
|
|
&:before {
|
|
@extend .faded-vertical-divider;
|
|
content: "";
|
|
display: block;
|
|
height: 50px;
|
|
position: absolute;
|
|
right: 1px;
|
|
top: -8px;
|
|
width: 1px;
|
|
}
|
|
|
|
&:after {
|
|
@extend .faded-vertical-divider-light;
|
|
content: "";
|
|
display: block;
|
|
height: 50px;
|
|
position: absolute;
|
|
right: 0px;
|
|
top: -12px;
|
|
width: 1px;
|
|
}
|
|
}
|
|
|
|
.info-course {
|
|
position: relative;
|
|
max-width: 200px;
|
|
padding-right: 15px;
|
|
font-size: 14px;
|
|
|
|
&:before {
|
|
@extend .faded-vertical-divider;
|
|
content: "";
|
|
display: block;
|
|
height: 50px;
|
|
position: absolute;
|
|
right: 1px;
|
|
top: -8px;
|
|
width: 1px;
|
|
}
|
|
|
|
&:after {
|
|
@extend .faded-vertical-divider-light;
|
|
content: "";
|
|
display: block;
|
|
height: 50px;
|
|
position: absolute;
|
|
right: 0px;
|
|
top: -12px;
|
|
width: 1px;
|
|
}
|
|
|
|
.course-number, .course-title {
|
|
display: block;
|
|
}
|
|
|
|
.course-number {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.course-title {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
|
|
}
|
|
}
|
|
|
|
.nav-course {
|
|
width: 275px;
|
|
margin-top: -($baseline/4);
|
|
font-size: 14px;
|
|
|
|
ol {
|
|
@include clearfix();
|
|
}
|
|
|
|
.nav-item {
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
margin: 0 ($baseline/2) 0 0;
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.title {
|
|
display: block;
|
|
padding: 5px;
|
|
text-transform: uppercase;
|
|
|
|
&:hover, &:active {
|
|
color: $blue;
|
|
}
|
|
|
|
.label-prefix {
|
|
display: block;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.ss-icon {
|
|
|
|
}
|
|
|
|
&.is-selected {
|
|
color: $blue;
|
|
}
|
|
}
|
|
|
|
// current state
|
|
&.is-current {
|
|
|
|
.title {
|
|
color: $blue;
|
|
}
|
|
}
|
|
|
|
// specific nav items
|
|
&.nav-course-courseware {
|
|
}
|
|
|
|
&.nav-course-settings {
|
|
}
|
|
|
|
&.nav-course-tools {
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-account {
|
|
float: right;
|
|
max-width: 300px;
|
|
min-width: 175px;
|
|
width: 20%;
|
|
margin-top: 10px;
|
|
font-size: 14px;
|
|
text-align: right;
|
|
|
|
.nav-account-username {
|
|
.ss-icon {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin-right: 3px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.account-username {
|
|
display: inline-block;
|
|
width: 80%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
}
|
|
|
|
// dropdown UI
|
|
.nav-dropdown {
|
|
|
|
.nav-item {
|
|
position: relative;
|
|
}
|
|
|
|
.nav-sub {
|
|
@include border-radius(2px);
|
|
position: absolute;
|
|
top: 30px;
|
|
width: 125px;
|
|
border: 1px solid tint($m-gray, 50%);
|
|
padding: ($baseline/4) ($baseline/2);
|
|
@include box-shadow(0 1px 5px 0 rgba(0,0,0, 0.1));
|
|
background: $white;
|
|
|
|
li {
|
|
margin: 0 0 ($baseline/4) 0;
|
|
border-bottom: 1px solid tint($m-gray, 75%);
|
|
padding: 0 0($baseline/4) 0;
|
|
font-size: 13px;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
// arrows
|
|
&:after, &:before {
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
}
|
|
}
|
|
|
|
// vendor
|
|
.arrow_box {
|
|
position: relative;
|
|
background: #fff;
|
|
border: 1px solid #a1a1a1;
|
|
}
|
|
.arrow_box:after, .arrow_box:before {
|
|
bottom: 100%;
|
|
border: solid transparent;
|
|
content: " ";
|
|
height: 0;
|
|
width: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.arrow_box:after {
|
|
border-color: rgba(255, 255, 255, 0);
|
|
border-bottom-color: #fff;
|
|
border-width: 10px;
|
|
left: 50%;
|
|
margin-left: -10px;
|
|
}
|
|
.arrow_box:before {
|
|
border-color: rgba(161, 161, 161, 0);
|
|
border-bottom-color: #a1a1a1;
|
|
border-width: 11px;
|
|
left: 50%;
|
|
margin-left: -11px;
|
|
}
|
|
|
|
// specific navs
|
|
&.nav-account {
|
|
|
|
.nav-sub {
|
|
right: 0;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
&.nav-course {
|
|
|
|
.nav-sub {
|
|
left: -5px;
|
|
}
|
|
|
|
.nav-course-courseware {
|
|
|
|
.nav-sub {
|
|
top: 50px;
|
|
}
|
|
}
|
|
|
|
.nav-course-settings {
|
|
|
|
.nav-sub {
|
|
top: 50px;
|
|
}
|
|
}
|
|
|
|
.nav-course-tools {
|
|
|
|
.nav-sub {
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// js enabled
|
|
.js {
|
|
|
|
.nav-dropdown {
|
|
|
|
.nav-item .title {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.nav-sub {
|
|
@include transition (opacity 1.0s ease-in-out 0s);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
|
|
&.is-shown {
|
|
opacity: 1.0;
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
} |